-   Linux - Newbie (
-   -   facing ns2 installation issues in ubuntu 11.04 (

umair ahmed 08-28-2011 10:09 PM

facing ns2 installation issues in ubuntu 11.04
1 Attachment(s)
I am trying to install ns2 version 2.34 in ubuntu 11.04 ,i have it installed on my ubuntu 10.10 but now I wann do it in 11.04 but I am unable to do so I have run

sudo apt-get update
command to update my ubuntu and is updated ,but when I run

sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.3
I get this error

sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gcc-4.3
E: Couldn't find any package by regex 'gcc-4.3'
so I installed with gcc-4.4 and followed the instructions from
but I am getting the errors like otcl make failed ,I am attaching the errors here ,please have a look ,I am tired of gcc compiler errors and otcl make failed

knudfl 08-29-2011 02:09 AM

Ubuntu 11.04 : Not the best choice for building ns-allinone-2.34.
But the 32bits 11.04 can be used. ( 10.04 LTS is better.)
( If it's a 64bits 11.04 : Any compiler will create "ns buffer overflow".

"Erlend's porting to gcc4.5"
.. is probably OK, but the slightest change (in g++ ?) by an update
may require further edits in ns-allinone-2.34.

The proof way is: Use a gcc/g++ version 3.4.6 compiler, built for 11.04 : See *EDIT
> gcc34-compat-3.4.6_i386.deb
> g++34-compat-3.4.6_i386.deb

Start from scratch in a new directory, no edits in ns, etc. :
cd ns-allinone-2.34/ && export CC=gcc34 CXX=g++34 && ./install

More info : LQ Search → → Keyword = ns-allinone

*EDIT : Now (a month later), g++ 3.4.6 isn't working any more.
The only usable seems to be gcc/g++ version 4.2.4 :


Erlender 08-29-2011 02:54 AM

otcl error
Hi guys,
I'm aware that the fix is a shoddy one, but it works for the moment.. :)

Umair, the error you are reporting should be fixed if you do the following:


Fix the error in the linking of otcl by editing line 6304 of otcl-1.13/configure so that it reads
SHLIB_LD="gcc -shared"
instead of
SHLIB_LD="ld -shared"

This is described in the blog post.


umair ahmed 08-29-2011 11:08 AM

@ Erlender :
Sir I followed all the instructions on your blog
but it is working for ubuntu 10.10 but for ubuntu 11.04 it is not. I also did this

SHLIB_LD="gcc -shared"
instead of
SHLIB_LD="ld -shared"

but yet there is otcl make issue ,

Ashwinibjha 03-07-2012 11:22 AM

degrading Ubuntu 11.10 to 11.04
Will this degrading of Operating System affect the data. It can be degraded or not ??

All times are GMT -5. The time now is 03:54 PM.