LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  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
Code:
sudo apt-get update
command to update my ubuntu and is updated ,but when I run
Code:
sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.3
I get this error
Quote:
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 http://erl1.wordpress.com/2011/05/12...-ubuntu-11-04/
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, 32 views)
 
Old 08-29-2011, 02:09 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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".
AFAIK.)

"Erlend's porting to gcc4.5" http://erl1.wordpress.com/2011/05/12...-ubuntu-11-04/
.. 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
https://docs.google.com/uc?id=0B7S25...nload&hl=en_US
> gcc34-compat-3.4.6_i386.deb
https://docs.google.com/uc?id=0B7S25...nload&hl=en_US
> 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
http://www.linuxquestions.org/questions/search.php

*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 :
http://www.linuxquestions.org/questi...04-a-904827/#3

..

Last edited by knudfl; 09-25-2011 at 04:14 PM.
 
Old 08-29-2011, 02:54 AM   #3
Erlender
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:

Code:
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.

Cheers,
Erlend
 
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 http://erl1.wordpress.com/2011/05/12...-ubuntu-11-04/
but it is working for ubuntu 10.10 but for ubuntu 11.04 it is not. I also did this
Code:
 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
Ashwinibjha
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 ??
 
  


Reply

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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