LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Closed Thread
 
Search this Thread
Old 07-20-2010, 10:18 AM   #1
abc
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Rep: Reputation: 0
NS2 2.34 Ubuntu


Hi Guys I am trying to install NS2 2.34 in Ubuntu and I am getting following error, Please help


Installing and cross-linking C API (.3) docs
Installing and cross-linking command (.n) docs
tcl8.4.18 installation succeeded.
============================================================
* Build Tk8.4.18
============================================================
make: *** No rule to make target `/home/robbert/Downloads/ns-allinone-2.34/tk8.4.18/unix/Makefile.in', needed by `Makefile'. Stop.
./install: 460: autoconf: not found
loading cache ./config.cache
checking for Tcl configuration... (cached) found /home/robbert/Downloads/ns-allinone-2.34/tcl8.4.18/unix/tclConfig.sh
checking for existence of /home/robbert/Downloads/ns-allinone-2.34/tcl8.4.18/unix/tclConfig.sh... could not find /home/robbert/Downloads/ns-allinone-2.34/tcl8.4.18/unix/tclConfig.sh
checking for tclsh... (cached) No tclsh found on PATH
checking for tclsh in Tcl build directory... /home/robbert/Downloads/ns-allinone-2.34/tcl8.4.18/unix/tclsh
configure: error: /home/robbert/Downloads/ns-allinone-2.34/tcl8.4.18/unix/tclConfig.sh is for Tcl .
Tk 8.4.18 needs Tcl 8.4.
Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.4.
tk8.4.18 configuration failed! Exiting ...
Tk is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
robbert@ubuntu:~/ns-allinone-2.34$
 
Old 07-20-2010, 11:59 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Welcome to LQ. . .. And please do not double post.
Read this : How to use LQ.
Ubuntu : Which Ubuntu ?

Forgot to install autoconf ? General for Ubuntu / ns2 :
sudo apt-get install \
libx11-dev libxmu-dev libxmu-headers libxt-dev libtool \
make automake autoconf g++

ns2 threads are tagged ns2 : LQ Search >> 'Tag Name' = ns2
........
 
Old 07-21-2010, 02:55 AM   #3
abc
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks KNUDFL for ur quick reply,

I am using Ubuntu 10.04 LTS and I have very little knowledge about Linux,Unix and NS2.

I didn't understand what you have mentioned above.
Please give me some simple instructions to sort out my problem,

Thanks for your valuable time.
 
Old 07-21-2010, 05:11 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Please open a terminal window and type :
Code:
sudo apt-get install libx11-dev libxmu-dev libxmu-headers libxt-dev libtool make automake autoconf g++
.. Or use 'synaptic' to install all the packages ..
( or >> Menu : Applications → Ubuntu Software Center ).
.
 
Old 07-21-2010, 06:25 AM   #5
abc
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Dear KNUDFL

You are very help full, I got following result. What should I do now?


robbert@ubuntu:~$ sudo apt-get install libx11-dev libxmu-dev libxmu-headers libxt-dev libtool make automake autoconf g++
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libx11-dev
robbert@ubuntu:~$


Thanks again
 
Old 07-21-2010, 06:59 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
Probably : sudo apt-get update

... to refresh the package lists / files : if you never did a refresh
in Synaptic or with 'sudo apt-get update', the package managing
tools / files will only know the already installed packages.
( May be the "Ubuntu Software Center" function would do that
automatically ? )
.

Last edited by knudfl; 07-21-2010 at 08:38 AM.
 
Old 08-30-2010, 08:32 AM   #7
Wonu
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Rep: Reputation: 0
Unhappy

I am having the same problem installing ns-2.34 on Ubuntu !0.04, but i have tried the above suggestions and i still get the same error
 
Old 08-30-2010, 11:03 AM   #8
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
See:
http://www.zimbio.com/Ubuntu+Linux/a...in+ubuntu+9+10
 
Old 08-30-2010, 11:18 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
@ Wonu, post 7 : Welcome to LQ.

NS-allinone-2.34 :
Actually, there shouldn't be any problems at all with 10.04 Lucid.
I made a new test install yesterday (ns-allinone-2.35-RC6: OK too)
http://www.linuxquestions.org/questi...emix-829082/#2
.... No errors.
....
 
Old 09-14-2010, 11:26 PM   #10
phoenix.58
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Rep: Reputation: 0
can't we install ns 2.32 on ubuntu 10.4???
i tried installion it but i keep getting errors
 
Old 09-14-2010, 11:53 PM   #11
phoenix.58
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Rep: Reputation: 0
ld -shared -o libotcl.so otcl.o
otcl.o: In function `OTclDispatch':
/home/victory/ns-allinone-2.32/otcl-1.13/otcl.c:495: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/victory/ns-allinone-2.32/otcl-1.13/otcl.c:2284: undefined reference to `__stack_chk_fail_local'
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Nonrepresentable section on output
make: *** [libotcl.so] Error 1
otcl-1.13 make failed! Exiting ...

this is the error i'm getting..
btw, sorry for posting this here.. i thought i'll post on a existing topic instead of creatin a new one in installation forum..
 
Old 09-15-2010, 08:59 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
@ phoenix.58, welcome to LQ. .. .. ..

cd ns-allinone-2.32/otcl-1.13/ ; make clean ;
Then please edit 'Makefile.in' line 7 to : CC= gcc-4.1
( You will have to install 'gcc-4.1' ).

cd ../tk8.4.15/ ; patch -p0 < tk-8.4-lastevent.patch
( Makes 'tk' usable for nam-1.13 ).
Example post with tk-8.4-lastevent.patch attached :
http://www.linuxquestions.org/questi...ting-818634/#4

Good luck !
..
 
Old 09-16-2010, 08:44 AM   #13
phoenix.58
LQ Newbie
 
Registered: Sep 2010
Posts: 3

Rep: Reputation: 0
Thank you for replying, knudfl !!
i tried patching, but that didn't work for me.

edit 'Makefile.in' line 7 to : CC= gcc-4.3
->this worked for me.
thanks a ton !!
 
Old 09-16-2010, 03:30 PM   #14
Wonu
LQ Newbie
 
Registered: Aug 2010
Posts: 4

Rep: Reputation: 0
hello knudfl. I was able to install ns-2.34 succesfully but i wnat to work on SLP which is implemented on ns-2.27. I hae been trying to install it now for 4 days and i have tried different suggestions from different forums but i keep getting the same error when it trying to make tclcl-1.15. the error is

Tcl.cc: In member function ‘void Tcl::eval(char*)’:
Tcl.cc:180:... warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In member function ‘int TclObject::traceVar(const char*, TclObject*)’:
Tcl.cc:419: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In member function ‘virtual void TclClass::bind()’:
Tcl.cc:601: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc:603: warning: deprecated conversion from string constant to ‘char*’
make: *** [Tcl.o] Error 1
tclcl-1.15 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

Please can you help with this problem??.Thank You in adance
 
Old 09-16-2010, 05:58 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
@ Wonu, post # 14.

'ns-allinone-2.27' for Ubuntu is here :

http://www.linuxquestions.org/questi...10-a-782356/#3

Good luck !
..
 
  


Closed Thread

Tags
ns2, ns232, ns234, tk-8.4-lastevent.patch


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
can't get ns2.34 on ubuntu 8.04 to work mate1984 Linux - Networking 26 05-23-2012 05:47 AM
NS2.34 won't install on ubuntu 9.10 insync Linux - Wireless Networking 1 02-25-2010 02:34 AM
working with ns2 in Ubuntu 8.1 neeraj.dwivedi Linux - Newbie 5 11-16-2009 09:19 AM
NS2 2.33 allinone on Ubuntu Liz Mwaniki Linux - Newbie 1 01-26-2009 04:24 AM


All times are GMT -5. The time now is 06:52 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration