LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-29-2013, 05:19 AM   #1
farfattou
Member
 
Registered: Oct 2011
Posts: 66

Rep: Reputation: Disabled
install ns-allinone-2.26 on ubuntu 11.04


hi,
IS it possible to install ns-2.26 on ubuntu 11.04?
if so, are steps same those for ns-2.33 install?
tkx
 
Old 06-29-2013, 07:58 AM   #2
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
1) tar xvf ns-allinone-2.26.tar.gz
2) patch -p0 < ns-2.26-gcc410.patch
3) cd ns-allinone-2.26/
4) export CC=gcc41 CXX=g++41 && ./install
 
1 members found this post helpful.
Old 06-29-2013, 09:18 AM   #3
farfattou
Member
 
Registered: Oct 2011
Posts: 66

Original Poster
Rep: Reputation: Disabled
can I get the ns-allinone-2.26.tar.gz plz, I'm short of downloading links.
thkx
 
Old 06-29-2013, 10:45 AM   #4
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
'ns-allinone-2.26.tar.gz' → → Index of /nsnam/dist :
... The link(s) seem to be down today.
You can get a copy from my "warehouse" :
https://docs.google.com/file/d/0B7S2...it?usp=sharing

And the patch : “ns-2.26-gcc410.patch” is here ...
http://cfile5.uf.tistory.com/attach/...4A4B1083D91E3A

-
 
1 members found this post helpful.
Old 06-29-2013, 11:31 AM   #5
farfattou
Member
 
Registered: Oct 2011
Posts: 66

Original Poster
Rep: Reputation: Disabled
thkx a lot
best regards
 
Old 01-20-2016, 12:00 AM   #6
ershiprashukla88
LQ Newbie
 
Registered: Feb 2015
Location: INDIA
Posts: 8

Rep: Reputation: Disabled
Problem in installation of ns-2.26 in ubuntu 10.04

i want to install ns-2.26 in ubuntu 10.04. I have tried above procedure but failed to install.Please suggest
 
Old 01-20-2016, 06:53 AM   #7
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
Re post #6, @ershiprashukla88.

Probably use a 32bits OS. Which is yours ?
This command will show : $ uname -m
 
Old 01-20-2016, 08:01 AM   #8
ershiprashukla88
LQ Newbie
 
Registered: Feb 2015
Location: INDIA
Posts: 8

Rep: Reputation: Disabled
its i686.

I got following error..



==========================================================
* Build OTcl-1.0a8
============================================================
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc...
checking for C compiler default output... configure: error: C compiler cannot create executables
otcl-1.0a8 configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.




Please suggest something

Last edited by ershiprashukla88; 01-20-2016 at 12:35 PM.
 
Old 01-20-2016, 03:29 PM   #9
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
Re #8.

OK, a 32bits (i686) Ubuntu 10.04 .


Quote:
I got following error..
Please do not show errors without also showing the command causing the errors.
The ns-2.26 build better be like :
$ tar xvf ns-allinone-2.26.tar.gz
$ cd ns-allinone-2.26/
$ patch -p1 < ns-2.26-gcc410.patch
$ export CC=gcc34 CXX=g++34 && ./install

The compilers ...
compat-gcc34 https://drive.google.com/file/d/0B7S...ew?usp=sharing
compat-gcc https://drive.google.com/file/d/0B7S...ew?usp=sharing
* Installing the compilers : 1) $ cd Downloads/
2) $ sudo dpkg -i compat-gcc34_3.4.6-ubuntu10_i386.deb compat-g++34_3.4.6-ubuntu10_i386.deb


-
 
1 members found this post helpful.
Old 06-19-2016, 02:38 AM   #10
chandraseptian
LQ Newbie
 
Registered: Jun 2016
Posts: 6

Rep: Reputation: Disabled
how can i install ns 2.26 in ubuntu 12.04(32bit)??
what is the step? i have download the ns 2.26 allinone and its' patch

thank you
 
Old 06-19-2016, 04:22 AM   #11
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 #10, @chandraseptian : Welcome to LQ.

Please download the compilers for ns226 , and nam ...
compat-gcc34 https://drive.google.com/file/d/0B7S...ew?usp=sharing
compat-g++34 https://drive.google.com/file/d/0B7S...ew?usp=sharing
nam https://drive.google.com/file/d/0B7S...ew?usp=sharing
>> compat-gcc34_3.4.6-ubuntu15_i386.deb, compat-g++34_3.4.6-ubuntu10_i386.deb, nam* >>
... Click the packages, and they will be installed.

Code:
tar xvf ns-allinone-2.26.tar.gz
cd ns-allinone-2.26/
patch -p1 < ns-2.26-gcc410.patch
export CC=gcc34 CXX=g++34/ && ./install
cd ns-2.26/
sudo make install ( 'make install' will copy 'ns' to /usr/local/bin/ )
cp ns ns226-back ( This is your important backup )
sudo cp ns226-back /usr/local/bin/
... That's it, please do not add any *PATH* text to bashrc. Not required.


-

Last edited by knudfl; 06-19-2016 at 04:27 AM.
 
Old 06-21-2016, 11:07 PM   #12
chandraseptian
LQ Newbie
 
Registered: Jun 2016
Posts: 6

Rep: Reputation: Disabled
Re post #11, @knudfl

Quote:
Originally Posted by knudfl View Post

Please download the compilers for ns226 , and nam ...
thank you.. i have done your suggestion
Code:
creating ./config.status
creating Makefile
creating tkConfig.sh
gcc -pipe -c -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -Wall -Wconversion -Wno-implicit-int -fPIC -I/home/chandrasl/tugasakhir/ns-allinone-2.26/tk8.3.2/unix -I/home/chandrasl/tugasakhir/ns-allinone-2.26/tk8.3.2/unix/../generic -I/home/chandrasl/tugasakhir/ns-allinone-2.26/tk8.3.2/unix/../bitmaps -I/home/chandrasl/tugasakhir/ns-allinone-2.26/tcl8.3.2/generic  -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1 -DSTATIC_BUILD=1      -DTCL_NO_DEPRECATED   /home/chandrasl/tugasakhir/ns-allinone-2.26/tk8.3.2/unix/../generic/tk3d.c
In file included from /home/chandrasl/tugasakhir/ns-allinone-2.26/tk8.3.2/unix/../generic/tkInt.h:21:0,
                 from /home/chandrasl/tugasakhir/ns-allinone-2.26/tk8.3.2/unix/../generic/tk3d.h:18,
                 from /home/chandrasl/tugasakhir/ns-allinone-2.26/tk8.3.2/unix/../generic/tk3d.c:16:
/home/chandrasl/tugasakhir/ns-allinone-2.26/tk8.3.2/unix/../generic/tk.h:83:23: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [tk3d.o] Error 1
tk8.3.2 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com
root@chandrasl-VirtualBox:/home/chandrasl/tugasakhir/ns-allinone-2.26# cd ns-2.26/
root@chandrasl-VirtualBox:/home/chandrasl/tugasakhir/ns-allinone-2.26/ns-2.26# sudo make install
make: *** No rule to make target `install'.  Stop.
but i got a problem when installed it. how to solve it?

Last edited by chandraseptian; 06-22-2016 at 07:26 AM.
 
Old 06-22-2016, 03:47 AM   #13
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
Re #12 : Please do not quote entire posts. A "one word reference" will do !
Quote:
X11/Xlib.h: No such file or directory
You will of course have to install the ns2 build requirements before you build any ns2 :
Code:
sudo apt-get update && sudo apt-get install g++ autoconf libtool libxmu-dev
 
Old 06-22-2016, 07:32 AM   #14
chandraseptian
LQ Newbie
 
Registered: Jun 2016
Posts: 6

Rep: Reputation: Disabled
Re #13 : Thank you for your explaination about that, sorry i am newbie.. hhe
Quote:
Originally Posted by knudfl View Post
You will of course have to install the ns2 build requirements before you build any ns2 :
okayy i will try first
 
Old 04-22-2017, 07:28 AM   #15
ammal
LQ Newbie
 
Registered: Apr 2017
Posts: 7

Rep: Reputation: Disabled
Trying to install ns-2.26 on ubuntu 16.04

Hi,

I am trying to install ns-2.26 on ubuntu-16.04 (32-bit) and followed the instructions given in Reply#10 but after I execute this command:

export CC=gcc34 CXX=g++34/ && ./install

the installation ends with error:

============================================================
* Build OTcl-1.0a8
============================================================
No .configure file found in current directory
Continuing with default options...
checking build system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
configure: error: /bin/sh ./config.sub x86_64-unknown-linux-gnu failed.
otcl-1.0a8 configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.


I have already installed the g++34 and gcc34 compilers and have the patch file mentioned in the instructions. I already have ns-2.35 installed, and is working well, but need ns-2.26 version for W-pan based project.

Please suggest what I may be missing. Please let me know if any other detail is required regarding the error.

Thanks!
 
  


Reply

Tags
ns2, ns226, ubuntu 11.04



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
how to install NS allinone 2.33 in Ubuntu 10 helok Linux - Newbie 16 05-17-2015 09:55 AM
How to install ns-allinone-2.1b9a in Ubuntu 10.10 andolby Linux - Software 1 03-28-2011 07:21 AM
ns-allinone on ubuntu offline kuberninad Linux - Newbie 5 01-25-2010 12:15 AM
install ns-allinone-2.34 on ubuntu 8.04 beringinraya Linux - Newbie 2 07-27-2009 09:30 AM
NS2 2.33 allinone on Ubuntu Liz Mwaniki Linux - Newbie 1 01-26-2009 04:24 AM

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

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