Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-28-2011, 10:09 PM   #1
umair ahmed
LQ Newbie
Registered: Jul 2011
Location: karachi,pakistan
Distribution: ubuntu
Posts: 13

Rep: Reputation: Disabled
facing ns2 installation issues in ubuntu 11.04

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
Attached Files
File Type: txt ns2errors.txt (35.8 KB, 22 views)
Old 08-29-2011, 02:09 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 17,049

Rep: Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459
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 :


Last edited by knudfl; 09-25-2011 at 04:14 PM.
Old 08-29-2011, 02:54 AM   #3
LQ Newbie
Registered: Aug 2010
Distribution: Ubuntu 10.04
Posts: 3

Rep: Reputation: 12
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.

1 members found this post helpful.
Old 08-29-2011, 11:08 AM   #4
umair ahmed
LQ Newbie
Registered: Jul 2011
Location: karachi,pakistan
Distribution: ubuntu
Posts: 13

Original Poster
Rep: Reputation: Disabled
@ 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 ,
Old 03-07-2012, 11:22 AM   #5
LQ Newbie
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
degrading Ubuntu 11.10 to 11.04

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


g++34-compat, gcc, installation, ns2, tcl, ubuntu 11.04

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ns2.34 installation help in Ubuntu 10.10 xptional Ubuntu 46 04-02-2018 01:42 PM
Problems in Installation of NS2.27 on Ubuntu 9.10 Scofield Linux - General 7 03-15-2013 03:47 AM
ns2.29 installation in ubuntu bolmeteus Ubuntu 4 02-08-2011 01:46 PM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM
Facing problems with ns2 installation in xubnutu ritoban87 Linux - Networking 6 01-28-2010 04:02 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration