LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ns2.29 installation problems (https://www.linuxquestions.org/questions/linux-newbie-8/ns2-29-installation-problems-4175513843/)

Riaz Khan 08-07-2014 06:16 AM

ns2.29 installation problems
 
i tried to install ns2.29 on fedora 14 installed on vmware software. when i run the command ./install, i got the error

"gcc -pipe -c -O2 -Wall -Wno-implicit-int -fno-strict-aliasing -fPIC -I/home/riazkhan/Desktop/ns-allinone-2.29/ns-allinone-2.29/tk8.4.11/unix -I/home/riazkhan/Desktop/ns-allinone-2.29/ns-allinone-2.29/tk8.4.11/unix/../generic -I/home/riazkhan/Desktop/ns-allinone-2.29/ns-allinone-2.29/tk8.4.11/unix/../bitmaps -I/home/riazkhan/Desktop/ns-allinone-2.29/ns-allinone-2.29/tcl8.4.11/generic -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DSTATIC_BUILD=1 -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1 -DTCL_NO_DEPRECATED /home/riazkhan/Desktop/ns-allinone-2.29/ns-allinone-2.29/tk8.4.11/unix/../generic/tk3d.c
In file included from /home/riazkhan/Desktop/ns-allinone-2.29/ns-allinone-2.29/tk8.4.11/unix/../generic/tkInt.h:21:0,
from /home/riazkhan/Desktop/ns-allinone-2.29/ns-allinone-2.29/tk8.4.11/unix/../generic/tk3d.h:18,
from /home/riazkhan/Desktop/ns-allinone-2.29/ns-allinone-2.29/tk8.4.11/unix/../generic/tk3d.c:16:
/home/riazkhan/Desktop/ns-allinone-2.29/ns-allinone-2.29/tk8.4.11/unix/../generic/tk.h:96:23: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [tk3d.o] Error 1
tk8.4.11 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com"


please help me to resolve this

John VV 08-08-2014 02:48 PM

install fedora 20

please stay current
fedora 14 is 6 versions and 3+ years out of date

knudfl 08-14-2014 02:30 AM

Ns2 prerequisites, Fedora :
# yum install gcc-c++ compat-gcc-34-c++ automake autoconf libtool libXmu-devel

* ns-2.29 :
$ tar xvf ns-allinone-2.29.3.tar.gz
$ cd ns-allinone-2.29/
$ export CC=gcc34 CXX=g++34 && ./install

-

Riaz Khan 08-20-2014 06:36 AM

thanks Knudfl,

I did the above given steps and ns2.29 installed successfully.


but the NAM was not working. I followed some of the links for the same problem on this forum and did the following things:


pasted the unpacked nam-1.14-x86_64 folder in ns-allinone-2.29 folder and then did the following

>$ Su
pw:******

#cd ns-allinone-2.29
#cp nam/usr/local/bin


now the NAM is only working when i run my TCL script with ROOT access, I mean only at "#" and not at '$'


Please help me sir...


All times are GMT -5. The time now is 06:29 PM.