LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-24-2012, 03:59 AM   #1
avi2936
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Rep: Reputation: Disabled
NS-2.29 Make error (make: g++34: Command not found)


Hi,
I was compiling NS2.29 on Ubuntu, I am encountering an error:-

make: g++34: Command not found
make: *** [tools/random.o] Error 127

Can anybody help me on this, Please?
 
Old 03-24-2012, 04:36 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ. .. ..

Which Ubuntu is it about ? Version please.

Example Ubuntu 10.04 :
Synaptic :
Settings > Repositories > Other Software
... Tick the 3 Hardy entries, and then "Reload".
Now the package g++-3.4 can be installed.

( The original Ubuntu binary is g++-3.4 , not g++34 ).

.

Last edited by knudfl; 03-24-2012 at 04:46 AM.
 
Old 03-24-2012, 04:41 AM   #3
avi2936
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
I have 11.10 version.
 
Old 03-24-2012, 04:56 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Ubuntu 11.10 : Sorry, not usable.

Ubuntu 10.04 and Ubuntu 10.10 can be used : 32 bits.
Ubuntu 10.10 must use gcc / g++ version 4.1 for ns-2.29.
Ubuntu 10.04 : g++ version 4.1 for best result, ns-2.29.
( g++-3.4 : Lots of failed tests with 'validate'.)
Some ns2 versions : A poor test result with Ubuntu.

For best result, 32bits : CentOS 6 / Scientific Linux SL6

.

Last edited by knudfl; 03-24-2012 at 09:39 AM.
 
Old 03-24-2012, 05:12 AM   #5
avi2936
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks....
I am now able to resolve this error,
I have modified the make file for g++-4.4 and gcc-4.4
Next error I am getting is :-

In file included from tools/random.cc:40:
./config.h:60: fatal error: tclcl.h: No such file or directory
compilation terminated.
make: *** [tools/random.o] Error 1


I have installed "sudo apt-get install tcl8.5-dev tk8.5-dev"
Now I don't know what to do next.
 
Old 03-24-2012, 05:18 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Short : Ubuntu 11.10 is completely unusable for ns-2.29.

And : ns-2.29 cannot use tcl8.5 / tk8.5 .
 
Old 03-24-2012, 10:38 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Test results for ns-2.29 ( validate ) :
Ubuntu 10.10 :
Code:
validate overall report: some tests failed:
     ./test-all-red
Ubuntu 10.04 : The same perfect result.
The g++41-compat compiler were used for both.
May be even Ubuntu 11.04 will do for ns-2.29 ?

The compiler install :
sudo dpkg -i gcc41-compat-4.1.2_i386.deb g++41-compat-4.1.2_i386.deb
#6 http://www.linuxquestions.org/questi...asim-932264/#6

.
 
Old 09-17-2012, 01:11 PM   #8
nirvruti
LQ Newbie
 
Registered: Sep 2012
Posts: 14

Rep: Reputation: Disabled
getting error when compile ns2.33

I got error when i compile ns2.33 on ubantu 12.04 plese help me

./config.h:60:19: fatal error: tclcl.h: No such file or directory
compilation terminated.
 
Old 09-17-2012, 04:32 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Post #8, @nirvruti : Please use "ns-allinone-2.33".
You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But: Do not add any of them to a *PATH.


.
 
  


Reply


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
make: CC: Command not found make: *** [main.o] Error 127 on opensuse 11.3 Leo89 Linux - Newbie 6 11-30-2012 06:13 PM
make: ifort: command not found ERROR 127 alismu Linux - Newbie 1 02-27-2010 03:04 AM
make: Command not found, Error 127. I'm on Redhat Arild2 Linux - Newbie 3 10-30-2004 02:27 PM
make error : gtkdoc-scan: command not found Kanaflloric Linux - Software 1 08-25-2004 03:42 PM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 10:58 AM


All times are GMT -5. The time now is 11:07 AM.

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