LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NS2 2.34 Ubuntu (https://www.linuxquestions.org/questions/linux-networking-3/ns2-2-34-ubuntu-821020/)

abc 07-20-2010 10:18 AM

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$

knudfl 07-20-2010 11:59 AM

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
........

abc 07-21-2010 02:55 AM

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.

knudfl 07-21-2010 05:11 AM

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 ).
.

abc 07-21-2010 06:25 AM

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

knudfl 07-21-2010 06:59 AM

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 ? )
.

Wonu 08-30-2010 08:32 AM

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

tredegar 08-30-2010 11:03 AM

See:
http://www.zimbio.com/Ubuntu+Linux/a...in+ubuntu+9+10

knudfl 08-30-2010 11:18 AM

@ 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.
....

phoenix.58 09-14-2010 11:26 PM

can't we install ns 2.32 on ubuntu 10.4???
i tried installion it but i keep getting errors :(

phoenix.58 09-14-2010 11:53 PM

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..

knudfl 09-15-2010 08:59 AM

@ 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 !
..

phoenix.58 09-16-2010 08:44 AM

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 !!

Wonu 09-16-2010 03:30 PM

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

knudfl 09-16-2010 05:58 PM

@ Wonu, post # 14.

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

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

Good luck !
..


All times are GMT -5. The time now is 10:09 PM.