install NS 2 on ubuntu

Leila M mech.loulou at
Wed Sep 21 10:55:34 UTC 2011

I'm trying ti install NS2 on ubuntu 11.04 and i got the following error
while executing


error: the error text is in my previous message

I was recommended to install gcc-4.3 and use it instead of my gcc-4.5 and I
did so but I still have a problem with otcl installation:

gcc-4.3 -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I.
-I/home/leila/leilans/ns-allinone-2.34/include -I/include  otcl.c
ld -shared -o otcl.o
rm -f
gcc-4.3 -o otclsh  -g -O2 -I. -I/home/leila/leilans/ns-allinone-2.34/include
-I/home/leila/leilans/ns-allinone-2.34/include -I/include  otclAppInit.c \
    -L. -lotcl -L/home/leila/leilans/ns-allinone-2.34/lib -ltk8.4
-L/home/leila/leilans/ns-allinone-2.34/lib -ltcl8.4 -lXext -lX11  -lnsl -ldl
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make: *** [otclsh] Error 1
otcl-1.13 make failed! Exiting ...
See for problems
leila at leila-HP-ProBook-4520s:~/leilans/ns-allinone-2.34$

please help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ubuntu-users mailing list