NS2 Installation ERROR during "make"

Status
Not open for further replies.

uditkumar1983

Advanced Member level 4
Joined
Dec 3, 2006
Messages
107
Helped
6
Reputation
12
Reaction score
2
Trophy points
1,298
Location
India
Activity points
2,019
Hi Friends,

While I am installing "ns-allinone-2.31" in unix system, it is showing following ERROR, Please help me ...

g++ -o nam \
tkcompat.o tkUnixInit.o xwd.o netview.o netmodel.o edge.o packet.o node.o main.o trace.o queue.o drop.o animation.o agent.o feature.o route.o transform.o paint.o state.o monitor.o anetmodel.o random.o rng.o view.o graphview.o netgraph.o tracehook.o lan.o psview.o group.o editview.o tag.o address.o animator.o wnetmodel.o nam_stream.o enetmodel.o testview.o parser.o trafficsource.o lossmodel.o queuehandle.o gen/version.o gen/nam_tcl.o -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/tclcl-1.19 -ltclcl -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/otcl-1.13 -lotcl -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/lib -ltk8.4 -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/lib -ltcl8.4 -L/usr/lib -lz -L/usr/X11R6/lib -lXext -lX11 -lnsl -ldl -lm
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.so when searching for -lXext
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.a when searching for -lXext
/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status
make: *** [nam] Error 1
Nam make failed! Continue ...
See **broken link removed** for problems
Please compile your nam separately.
Please compile your xgraph separately.


Even I tried to compile "nam" seperately then it is shownig following ERROR ..

rm -f nam
g++ -o nam \
tkcompat.o tkUnixInit.o xwd.o netview.o netmodel.o edge.o packet.o node.o main.o trace.o queue.o drop.o animation.o agent.o feature.o route.o transform.o paint.o state.o monitor.o anetmodel.o random.o rng.o view.o graphview.o netgraph.o tracehook.o lan.o psview.o group.o editview.o tag.o address.o animator.o wnetmodel.o nam_stream.o enetmodel.o testview.o parser.o trafficsource.o lossmodel.o queuehandle.o gen/version.o gen/nam_tcl.o -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/tclcl-1.19 -ltclcl -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/otcl-1.13 -lotcl -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/lib -ltk8.4 -L/home/students/ms/udit/SLDM/project/ns-allinone-2.31/ns-allinone-2.31/lib -ltcl8.4 -L/usr/lib -lz -L/usr/X11R6/lib -lXext -lX11 -lnsl -ldl -lm
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.so when searching for -lXext
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.a when searching for -lXext
/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status


Please suggest me possible cause for this problem and how i can fix this .

Thanks in Advance ....

Thanks & Regards,
Udit Kumar
 

try to install from internet the following then try the installation again


yum install autoconf
yum install automake yum install gcc-c++ yum install libX11-devel yum install xorg-x11-proto-devel yum install libXt-devel
 
Hi Kazim,

Thanks for your help.

As I feel these commands are required for fedora but not for unix/linux ( As I am using linux red hat), Can you cross check this and let me know.

Thanks & Regards,
Udit Kumar
 

dear member.

thanks for the comments. well the commands work fine in redhat too. i have tried them. have u installed ns. if you did then congrats but if there is some problem, do tell me

regards
 
Hi Kazim,

I am also able to install software, Mu\y problem has been solved after changing the linux version, It is working fine on rhel5 machine.

Thanks for your help.

Thanks & Regards,
Udit Kumar
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…