LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   install NS2.31 (https://www.linuxquestions.org/questions/programming-9/install-ns2-31-a-801695/)

knudfl 11-02-2011 02:52 AM

Post # 15, @alikaamil.

If you do it the way it's shown in post #3, etc. there should be no issues.

Suggest : Start from scratch in /home/alikaamil/ns-allinone-2.31/ :
cd ns-allinone-2.31/ && ./install


And : "install-sh" is not supposed to be used for anything. Ever.

..

anamnazir 12-20-2011 11:42 AM

error while installing ns2.31
 
hi..
i have tried to install ns2.31 in fedora 14 and encountered the following same error...i have installed following packages(
yum install autoconf
yum install automake
yum install gcc-c++
yum install libX11-devel
yum install xorg-x11-proto-devel
yum install libXt-devel
And for nam installation (optional):
yum install libXmu-devel)
you have mentioned necessary for it but still it is giving the error



.......myevalvid/myudp.cc: In constructor ‘myUdpAgent::myUdpAgent()’:
myevalvid/myudp.cc:35:21: error: cannot call constructor ‘myUdpAgent::UdpAgent’ directly
myevalvid/myudp.cc:35:21: error: for a function-style cast, remove the redundant ‘::UdpAgent’
make: *** [myevalvid/myudp.o] Error 1
Ns make failed!

now what should i do to solve this.. thanx in advance

knudfl 12-20-2011 01:14 PM

# 17 , @anamnazir : # yum install compat-gcc-34-c++

Fedora 14 : Either start from scratch, or 'make clean' in
otcl-*/, tclcl-*/ and ns-2.31/.


The install command is :
cd ns-allinone-2.31/ && export CC=gcc34 CXX=g++34 && ./install

..

pvs siva prasad 03-04-2012 09:33 AM

Creating nodes...

(_o14 cmd line 1)
invoked from within
"_o14 cmd random-motion 0"
invoked from within


All times are GMT -5. The time now is 07:30 PM.