LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 02: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, 03:36 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 03:46 AM.
 
Old 03-24-2012, 03: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, 03:56 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 08:39 AM.
 
Old 03-24-2012, 04: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, 04:18 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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, 09:38 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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, 12: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, 03:32 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:59 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
Open Source Consulting | Domain Registration