LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installation of NS2 (otcl make failed) (https://www.linuxquestions.org/questions/linux-newbie-8/installation-of-ns2-otcl-make-failed-873989/)

NabiVakili 04-09-2011 10:05 AM

installation of NS2 (otcl make failed)
 
I'm trying to install NS2.27
I have to use this version, so I started the installation.
There were some errors, I fixed them one by one.
but there is an error that I can't pass it. I really tired of searching the Net for errors...

the installation process stops here :
Code:

gcc-4.3 -o otclsh  -g -O2 -I. -I/home/nabi/Desktop/ns-allinone-2.27/include -I/home/nabi/Desktop/ns-allinone-2.27/include -I/include  otclAppInit.c \
    -L. -lotcl -L/home/nabi/Desktop/ns-allinone-2.27/lib -ltk8.4 -L/home/nabi/Desktop/ns-allinone-2.27/lib -ltcl8.4 -lXext -lX11  -lnsl -ldl -lm
/tmp/cc8MtFKZ.o: In function `Tcl_AppInit':
/home/nabi/Desktop/ns-allinone-2.27/otcl-1.8/otclAppInit.c:237: undefined reference to `Otcl_Init'
collect2: ld returned 1 exit status
make: *** [otclsh] Error 1
otcl-1.8 make failed! Exiting ...

would you mind help me plz?
Thanks

knudfl 04-09-2011 02:07 PM

Welcome to LQ.

Installing ns-allinone-2.27 on Ubuntu, post #3 here
http://www.linuxquestions.org/questi...9-10-a-782356/

More info http://www.linuxquestions.org/questi...2-27-a-785379/

And LQ Search : Tag = ns227
LQ Search : Keyword = ns-allinone
etc.

NabiVakili 04-10-2011 01:00 PM

ns make failed!
 
Thanks for your post,
I read those posts and started the installation of NS 2.27
I fixed many errors, now I have this error
Code:

trace/cmu-trace.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!

I removed the object file and started the installation again,
but this error occurred for another object file.

I removed all of object files and started the installation.
but I have this error:
Code:

trace/cmu-trace.cc:1627: error: jump to case label
trace/cmu-trace.cc:1598: error:  crosses initialization of `AODV_msg*aodv_msg'
make: *** [trace/cmu-trace.o] Error 1
Ns make failed!

I want to fix this error and start the installation again,
but I want to start the installation for NS only, not from beginning and for all of packages,
because all of other packages has been installed successfully and I want to install the NS2 only
How can I do that?

knudfl 04-10-2011 01:42 PM

When you follow the instructions in the mentioned post #3,
there are no errors.
( Except Ubuntu 10.10 64bits, an issue in one of the separate tools
in ns-2.27/indep-utils : Edit a Makefile to CPP = g++-3.3 ).

Quote:

I fixed many errors
Which errors ? Nothing should have to be fixed.

Which compiler do you see in the text, when you run install ?
g++ ? Or g++-3.3 ?

..

NabiVakili 04-11-2011 02:45 AM

I found that there was some changes in the codes of NS2,
because this package (NS2) isn't the NS2.27 all in one.
It's allinone + some extensions provided by Qinghua Wang : http://apachepersonal.miun.se/~qinwan/resources.htm

finally I installed this NS2 successfully!

Thanks for your help


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