Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-05-2013, 05:02 PM
|
#1
|
LQ Newbie
Registered: Feb 2009
Location: Kathmandu, Nepal
Posts: 18
Rep:
|
tcl8.5.10 make fail error, Network Simulator2 v2.35 (Cygwin v1.7.22) in Windows 7
during installation of NS2 v2.35 (Cygwin v1.7.22) in Windows 7 i keep getting this error message:
Package gcc4 is not present on your system.
Please install it using Cygwin's setup.exe
before trying to install the ns-2 distribution.
I tried downloading the gcc4 package from the setup but it does not show that it has a gcc4 package. So, i downloaded it from internet but the file was empty!!! If i ignore the warning for gcc4 and continue with the installation then i got the following error.
/usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../x86_64-pc-cygwin/bin/ld: final l ink failed: Invalid operation
collect2: error: ld returned 1 exit status
Makefile:569: recipe for target `tclsh.exe' failed
make: *** [tclsh.exe] Error 1
tcl8.5.10 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com
Somebody please help me!!!
|
|
|
08-05-2013, 05:25 PM
|
#2
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,664
|
why not install it from the cygwin.exe installer
why use some random web site and random program
Quote:
So, i downloaded it from internet but the file was empty!!!
|
empty?????????
what was empty
mind you windows CAN NOT open a tarball
you need to install software to do that
|
|
|
08-05-2013, 06:36 PM
|
#3
|
LQ Newbie
Registered: Feb 2009
Location: Kathmandu, Nepal
Posts: 18
Original Poster
Rep:
|
John W, when trying to install from cygwin.exe it did not show a gcc4 package when searched in the package list. In http://cygwin.com/packages/ there is gcc4 packages but they are obsolete and empty (not tar files). So i searched the package in internet. I found one somewhere (i don't have the link) but it was empty as well (i tried both linux and 7zip (in windows) to check the file content. it was just a gcc4-4.7.3-1.tar.bz2 with nothing inside.
|
|
|
08-05-2013, 07:19 PM
|
#4
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,664
|
you will need to install about 10 to 30 other programs
things like
autoconf
autobuild
automake
gcc-tools-autoconf
and what do you know Gcc is on the link you posted
http://cygwin.com/packages/gcc
MS windows CAN NOT open a tarbal !
they NEVER have been able to !
now 7zip can ??? sort of it will open that bzip2 tarbal
and output a "gcc4-4.7.3-1.tar"
then reopen with 7zip
and you will have a folder called"gcc4-4.7.3-1.tar" with files inside
now the gnuwin32 project dose have two terminal programs called "tar" and "bzip"
http://gnuwin32.sourceforge.net/packages/gtar.htm
but the tar and bzip2 programs should be installed in CygWin
also to build a working compiler from that tarbal you will NEED to have a working compiler already installed
Last edited by John VV; 08-05-2013 at 07:22 PM.
|
|
|
08-05-2013, 07:32 PM
|
#5
|
LQ Newbie
Registered: Feb 2009
Location: Kathmandu, Nepal
Posts: 18
Original Poster
Rep:
|
JohnW: I have the gcc package
$ cygcheck -c cygwin gcc-core gcc-g++ gcc-java gcc make Cygwin Package Information
Package Version Status
cygwin 1.7.22-1 OK
gcc-core 4.8.1-3 OK
gcc-g++ 4.8.1-3 OK
make 3.82.90-1 OK
but i think cygwin wants me to install gcc4 package which is in http://cygwin.com/packages/gcc4/gcc4-4.7.3-1. But the problem is there is no list of installed binaries and support files data (e.g. http://cygwin.com/packages/gcc-g++/gcc-g++-4.7.3-1). List of gcc4 packages are:
gcc4 Obsolete package
gcc4-ada Obsolete package
gcc4-core Obsolete package
gcc4-debuginfo Obsolete package
gcc4-fortran Obsolete package
gcc4-g++ Obsolete package
gcc4-java Obsolete package
gcc4-objc Obsolete package
all of them are empty!
This may sound stupid but I will report this to the dev team. Hopefully, i'll get some response.
|
|
|
09-10-2013, 01:39 PM
|
#6
|
LQ Newbie
Registered: Sep 2013
Posts: 4
Rep:
|
hello pratikjoshi
I am facing the exact same problem,,, how did you resolve it?
please, i need help, thanks.
|
|
|
09-11-2013, 07:33 AM
|
#7
|
LQ Newbie
Registered: Feb 2009
Location: Kathmandu, Nepal
Posts: 18
Original Poster
Rep:
|
Hi Ghada,
I downloaded the gcc4 packages from internet separately. I downloaded gcc4, gcc4-ada, gcc4-core, gcc4-fortran, gcc4-g++, gcc4-java, gcc4-objc, and other gcc4 packages. I selected the install from directory option in the Cygwin setup and gave the location of the packages. Installation was successful. I can send you the files if you can't find them just send me your email id.
However, there were lots of other errors during installation e.g. http://www.linuxquestions.org/questi...c8-4175473002/
So, i just installed virtualbox with extension pack which is free to use (Yay Opensource ) and installed fedora 18. Installation was successful in the first attempt. I spent almost 2 weeks trying to install NS2 in Cygwin in windows 7. Everyone suggested me to use virtualbox.
Regards,
Pratik Joshi
|
|
|
09-13-2013, 08:31 AM
|
#8
|
LQ Newbie
Registered: Sep 2013
Posts: 4
Rep:
|
Pratik , thanks so much for replying, it would be great if you can email me those needed files: ghadax at hotmail.
Also, did you face any further problems in regards to installing ns-2 on Windows 7!?
Thanks so much again =)
Last edited by ghada; 09-13-2013 at 08:35 AM.
|
|
|
09-22-2013, 10:37 AM
|
#9
|
LQ Newbie
Registered: Sep 2013
Posts: 4
Rep:
|
HELLO , i also ended up installing Fedora 19 on top of VirtualBox, installation was successful, however, I was only able to install ns2 version 2.34. Version 2.35 just didn't work, installation kept giving me a compilation error. I think it has to do with the C compiler version.
|
|
|
09-22-2013, 11:10 AM
|
#10
|
LQ Newbie
Registered: Feb 2009
Location: Kathmandu, Nepal
Posts: 18
Original Poster
Rep:
|
Remark 1: → → gcc-core 4.8.1-3 , gcc-g++ 4.8.1-3 .
** ns-allinone-2.35 cannot be compiled with gcc / g++ version 4.8.x .
** The suggested version is 4.4 ( or 4.6 ).
Remark 2: are you sure you are using "2.35" ns-allinone-2.35.tar.gz, and not the RC version which is a release candidate. http://sourceforge.net/projects/nsnam/
|
|
|
10-02-2013, 04:37 PM
|
#11
|
LQ Newbie
Registered: Sep 2013
Posts: 4
Rep:
|
just in case someone is having the same problems i was having, i was finally able to install ns-2.35 on Fedora 19 (installed on a Virtualmachine). The solution to the compilation error can be found in the following link: http://milanjainblog.wordpress.com/2...-in-fedora-17/
Error encountered by me:-
In file included from linkstate/ls.cc:67:0:
linkstate/ls.h: In instantiation of ‘void LsMap::eraseAll() [with Key = int; T = LsIdSeq]’:
linkstate/ls.cc:396:28: required from here
linkstate/ls.h:137:20: error: ‘erase’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
linkstate/ls.h:137:20: note: declarations in dependent base ‘std::map, std::allocator > >’ are not found by unqualified lookup
linkstate/ls.h:137:20: note: use ‘this->erase’ instead
make: *** [linkstate/ls.o] Error 1
Ns make failed!
Solution:
1. Go to ns-allinone-2.35/ns-2.35/linkstate/
2. Now edit ls.h
In line number 137, in place of void eraseAll() { erase(baseMap::begin(), baseMap::end()); }
make it void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); }
3. Save the file and again run ./install
|
|
|
02-06-2014, 08:01 AM
|
#12
|
LQ Newbie
Registered: Feb 2014
Posts: 1
Rep:
|
prb with install gcc4 and ns2
hi pratikjoshi
please can u help me?
I am facing the same problem,,, i can't install gcc4 neitther ns2 on my windows 7, i spent 10 days without resolved the prb
can u tell me and descripe me the solution slowly and step by step cause i'm a newbie in ns2 and gcc4.
if u need this my email: wafa.masghouni@gmail.com
i tried to do what u said to ghada but i didn't succeed
how did you resolve it?
please, i need help, thanks.
|
|
|
All times are GMT -5. The time now is 07:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|