LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-10-2011, 04:41 AM   #16
maneshmotts
LQ Newbie
 
Registered: Sep 2011
Posts: 16

Rep: Reputation: Disabled

nope the gcc34 show up the same tcl error message .

Hey how do we check whether it is an 64bi or 32 bit version ?
 
Old 09-10-2011, 04:44 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The command 'uname -a' will show.

If any x86_64 (amd64) appears, it is a 64bits OS.


To use gcc34, g++34 : Please reboot.
 
Old 09-10-2011, 04:47 AM   #18
maneshmotts
LQ Newbie
 
Registered: Sep 2011
Posts: 16

Rep: Reputation: Disabled
'uname-a' cmd give the following output

Linux mwk 2.6.38-11-generic-pae #48-Ubuntu SMP Fri Jul 29 20:51:21 UTC 2011 i686 i686 i386 GNU/Linux


how to you find it as 32 or 64 bit


ok will reboot and try to use the gcc34 and will post it here

thanks
 
Old 09-10-2011, 04:54 AM   #19
maneshmotts
LQ Newbie
 
Registered: Sep 2011
Posts: 16

Rep: Reputation: Disabled
i got the same tcl error even after the reboot too .
 
Old 09-10-2011, 04:54 AM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
i686 i686 i386
That's 32bits. ( No 'x86_64' was displayed.)
 
Old 09-10-2011, 04:58 AM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
I got the same tcl error even after the reboot too.
May be Ubuntu 11.04 got even worse since last time I made a build
of ns-allinone-2.34 ? ?

Suggest : Start from scratch in a new folder, like /home/<name>/ns/

.
 
Old 09-10-2011, 05:03 AM   #22
maneshmotts
LQ Newbie
 
Registered: Sep 2011
Posts: 16

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
May be Ubuntu 11.04 got even worse since last time I made a build
of ns-allinone-2.34 ? ?

Suggest : Start from scratch in a new folder, like /home/<name>/ns/

.
ok will try to install in new folder and if you have any link where the steps need to be followed that would be a great help !!
 
Old 09-10-2011, 05:47 AM   #23
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
All important tips : Post # 15.

About :
cd ns-allinone-2.34/ && export CC=gcc34 CXX=g++34 && ./install
! The export command is temporary. Will reset to gcc(-4.5)
when you exit the terminal.

LQ Search : Keyword = ns-allinone

Some 11.04 examples ..
http://www.linuxquestions.org/questi...1-04-a-899963/

http://www.linuxquestions.org/questi...-patch-898571/

..
 
Old 11-07-2011, 06:19 PM   #24
maneshmotts
LQ Newbie
 
Registered: Sep 2011
Posts: 16

Rep: Reputation: Disabled
Hi Now I am using the Ubunutu 11.10 it has gcc of 4.6 does ns 2 simulator support gcc 4.6 i am using a 32bit os ??
 
Old 11-10-2011, 10:45 AM   #25
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post # 24, @ maneshmotts.

Sorry, Ubuntu 11.10 is not usable for ns2.
And by the way, Ubuntu 11.10 has 3 different gcc / g++ versions :
4.4 , 4.5 , 4.6 , all can be installed at the same time.


Suggest : Use Ubuntu 10.04 for ns2. ( Or any other Linux OS.)
Avoid Ubuntu 11.xx.
(Ubuntu 11.04 is usable with a special "g++42-compat-4.2.4_i386.deb".)

..
 
1 members found this post helpful.
Old 02-24-2012, 02:39 AM   #26
maneshmotts
LQ Newbie
 
Registered: Sep 2011
Posts: 16

Rep: Reputation: Disabled
HI I while trying to install ns2 I am getting following error.

Quote:
In file included from mpls/classifier-addr-mpls.cc:75:
mpls/classifier-addr-mpls.h: At global scope:
mpls/classifier-addr-mpls.h:1: error: expected unqualified-id before ‘/’ token
mpls/classifier-addr-mpls.h:1: error: expected constructor, destructor, or type conversion before ‘-’ token
mpls/classifier-addr-mpls.h:1: error: expected constructor, destructor, or type conversion before ‘-’ token
mpls/classifier-addr-mpls.h:1: error: expected constructor, destructor, or type conversion before ‘-’ token
make: *** [mpls/classifier-addr-mpls.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
This was fresh installation in ns 2.35 in ubuntu 10.04. Kindly help
Thanks
 
Old 02-24-2012, 03:15 AM   #27
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 26.

A corrupt package ? Suggest : Use a new ns-allinone-2.35.tar.gz
http://sourceforge.net/projects/nsnam/files/

The default g++ 4.4.3 works OK with ns-2.35 in Ubuntu 10.04 32bits.

'g++ -version' : g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3
'g++ -v' : Target: i486-linux-gnu

.
 
Old 02-24-2012, 04:36 AM   #28
maneshmotts
LQ Newbie
 
Registered: Sep 2011
Posts: 16

Rep: Reputation: Disabled
Thanks for the reply.ya the new packet made my installation successful I have set the environmental variable and validate all the test was successful. when I try to run the NS2 file it says. "ns command not found" .
 
Old 02-24-2012, 06:50 AM   #29
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 28.
Quote:
I have set the environmental variable ..
Not required. 'ns' is hard coded to find the libraries.


Installing ns and nam to a system path :
cd ns-allinone-2.35/ns-2.35/ && sudo make install
cd ../nam-1.15/ && sudo make install


'make install' will copy ns and nam to /usr/local/bin/

.
 
Old 03-03-2012, 01:18 PM   #30
lucky89
LQ Newbie
 
Registered: Mar 2012
Posts: 19

Rep: Reputation: Disabled
hi

I need your help regarding installation of NS2.34 in Ubuntu 11.10
I have Ubunut11.10 32 bit version.



could anyone please help me ? I thank you in advance !
 
  


Reply

Tags
g++34-compat, ns2, ns234, wave-ns2


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
Problems in Installation of NS2.27 on Ubuntu 9.10 Scofield Linux - General 7 03-15-2013 03:47 AM
ns2.29 installation in ubuntu bolmeteus Ubuntu 4 02-08-2011 01:46 PM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM
NS2 installation eby83 Linux - Newbie 2 06-11-2007 01:08 AM
ns2 installation pranoti Linux - Software 2 06-11-2007 12:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:28 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