LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-18-2014, 12:26 AM   #1
moreroz
LQ Newbie
 
Registered: Jan 2013
Posts: 28

Rep: Reputation: 0
ns2 on ubuntu 14.04 64 bit


What is appropriate gcc and g++ in order to install Ns2 on Ubuntu 14.04 64 bit?
 
Old 04-18-2014, 01:59 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
`ns-2.35' : You don't have to build anything → $ sudo apt-get install ns2
Using: Unpack an ns-allinone-2.35 in /home/name/ to run the most default examples.
* The most examples should work with a 64bits OS.

* If you want to use all ns2 versions 2.26-2.34 + added protocols / do changes :
Use a 32bits OS : 99.x% simulations will work (better).

Installing gcc/g++ : $ sudo apt-get install g++ g++-4.4 g++-4.6 g++-4.7
* Building ns-2.35 : gcc-4.4 / g++-4.4 , or -4.6
* ns-2.33 : Probably gcc-4.4 / g++-4.4 for a stock ns-2.33 .
* ns-2.34 : Maybe gcc-4.4 / g++-4.4 .
... We will find out when Ubuntu 14.04 has been tested with ns-2.xx,
... over the next weeks.

-

Last edited by knudfl; 04-18-2014 at 03:30 AM.
 
1 members found this post helpful.
Old 04-18-2014, 12:47 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Ubuntu 14.04 - 64bits.

* ns-allinone-2.34 and ns-allione-2.33 will build OK with :
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install
 
1 members found this post helpful.
Old 04-19-2014, 05:10 AM   #4
moreroz
LQ Newbie
 
Registered: Jan 2013
Posts: 28

Original Poster
Rep: Reputation: 0
thanks, what about installing Ubuntu 14.04 32 bits and NS 2.35 from source please tell the command like below
Quote:
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install

Last edited by moreroz; 04-19-2014 at 05:38 AM.
 
Old 04-19-2014, 06:14 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 4 : Ubuntu 14.04 - 32bits.

Test builds with ns-allinone-2.35 .

$ export CC=gcc-4.6 CXX=g++-4.6 && ./install : The file 'ns' is 8.5 MB.
Remake ns-2.35/ with g++-4.4 : The file 'ns' is 8.2 MB.
That's the only difference at compile time : Same warnings in the 'make' text.

The stripped file sizes are ( $ strip ns ) :
'ns' from g++-4.6 : 6.5 MB.
'ns' from g++-4.4 : 6.4 MB.

Conclusion : Use any of '-4.6' or '-4.4'.

-
 
1 members found this post helpful.
  


Reply

Tags
g++, gcc, ns2, ubuntu 14.04


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
64 bit cpu-64 bit Ubuntu-are there 32 bit app issues? sofasurfer Ubuntu 7 04-09-2014 03:02 PM
how to install both ns2.28 and ns2.34 versions on ubuntu 10.04? popoaung Linux - Software 3 06-10-2013 05:52 PM
Validation failed in NS2.34 in ubuntu 10.04 64-bit jackachan Linux - Newbie 2 05-11-2011 03:18 PM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 02:44 AM
LXer: Ubuntu 32-bit, 32-bit PAE, 64-bit Benchmarks LXer Syndicated Linux News 0 12-30-2009 12:00 PM

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

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