LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 08-05-2013, 05:02 PM   #1
pratikjoshi
LQ Newbie
 
Registered: Feb 2009
Location: Kathmandu, Nepal
Posts: 18

Rep: Reputation: 0
Angry 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!!!
 
Old 08-05-2013, 05:25 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,400

Rep: Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584
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
 
Old 08-05-2013, 06:36 PM   #3
pratikjoshi
LQ Newbie
 
Registered: Feb 2009
Location: Kathmandu, Nepal
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
Old 08-05-2013, 07:19 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,400

Rep: Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584
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

Quote:
gcc4-4.7.3-1.tar.bz2
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.
 
Old 08-05-2013, 07:32 PM   #5
pratikjoshi
LQ Newbie
 
Registered: Feb 2009
Location: Kathmandu, Nepal
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
Old 09-10-2013, 01:39 PM   #6
ghada
LQ Newbie
 
Registered: Sep 2013
Posts: 4

Rep: Reputation: Disabled
hello pratikjoshi

I am facing the exact same problem,,, how did you resolve it?
please, i need help, thanks.
 
Old 09-11-2013, 07:33 AM   #7
pratikjoshi
LQ Newbie
 
Registered: Feb 2009
Location: Kathmandu, Nepal
Posts: 18

Original Poster
Rep: Reputation: 0
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
 
Old 09-13-2013, 08:31 AM   #8
ghada
LQ Newbie
 
Registered: Sep 2013
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 09-22-2013, 10:37 AM   #9
ghada
LQ Newbie
 
Registered: Sep 2013
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 09-22-2013, 11:10 AM   #10
pratikjoshi
LQ Newbie
 
Registered: Feb 2009
Location: Kathmandu, Nepal
Posts: 18

Original Poster
Rep: Reputation: 0
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/
 
Old 10-02-2013, 04:37 PM   #11
ghada
LQ Newbie
 
Registered: Sep 2013
Posts: 4

Rep: Reputation: Disabled
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
 
Old 02-06-2014, 08:01 AM   #12
wafa9280
LQ Newbie
 
Registered: Feb 2014
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 02-06-2014, 09:54 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,126

Rep: Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491
Post #12, @wafa9280 : Welcome to LQ.

The suggestion is to install a genuine Linux OS into a "Virtual Machine",
e.g. `Virtual Box' : https://www.virtualbox.org/

The suggested OS is the 32bits (i386/i686) CentOS 6.5 → →
http://wiki.centos.org/Download
http://isoredirect.centos.org/centos/6/isos/i386/

The default compiler is "4.4.7" : # yum install gcc-c++

-
 
  


Reply

Tags
ns2 ns-allinone


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fail to install SendIP on Cygwin due to failed dependencies Alexanderok Linux - Newbie 2 02-23-2011 02:59 PM
[SOLVED] Error on make install when compiling tcl8.5.7 EricTRA Linux From Scratch 1 10-01-2009 02:27 PM
TCL8.6.4 strstr.c make error Cynric Linux From Scratch 0 08-21-2004 10:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration