LinuxQuestions.org
Register a domain and help support LQ
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 12-17-2011, 06:40 AM   #1
kozomoja
LQ Newbie
 
Registered: Dec 2011
Posts: 5

Rep: Reputation: Disabled
ns 2.34 on ubuntu 9.04


Hi,

I'm trying to install ns 2.34 on ubuntu 9.04, running on VMware 7.01.
I follow this instructions: http://gulzameenkhan.wordpress.com/2...u-9-10-32-bit/ but I got stuck on this command:
$sudo apt-get install build-essential autoconf automake libxmu-dev
I get 'Failed to fetch <some URL> 404 Not Found'.

Any suggestions?
 
Old 12-17-2011, 07:43 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ.

Ubuntu 9.04 is obsolete. The repo was moved to the Ubuntu old archive.
Your new '/etc/apt/sources.list' must be changed to these lines only :
( "hardy" lines can be kept, if any.)
Code:
deb http://old-releases.ubuntu.com/ubuntu/ jaunty main
deb http://old-releases.ubuntu.com/ubuntu/ jaunty multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-updates main multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ jaunty-security main multiverse universe
..
Quote:
sudo apt-get install build-essential autoconf automake libxmu-dev
This will do :
sudo apt-get install g++ make automake autoconf \
libx11-dev libxmu-dev libxmu-headers libxt-dev libtool

..

Last edited by knudfl; 12-17-2011 at 07:53 AM.
 
1 members found this post helpful.
Old 12-17-2011, 11:08 AM   #3
kozomoja
LQ Newbie
 
Registered: Dec 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
I can't find the file you're reffering to (sources.list) anywhere on Ubuntu and when I try the code below, I get: 'Couldn't find package libx11-dev'...
 
Old 12-17-2011, 11:21 AM   #4
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,037

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
Use a supported Ubuntu release (10.04 or newer), problem solved.
 
1 members found this post helpful.
Old 12-17-2011, 12:22 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
The file sources.list is located in /etc/apt/ ,
like said in post # 2.

Suggest :
Create a new file 'sources.list' in your /home/<name> with the 4 lines.

Then : sudo cp -a sources.list /etc/apt/
Next : sudo apt-get update
... And you are ready to install packages.


Ref. post # 4 : Ubuntu 10.04 and 10.10 are the latest to use for ns2.
Ubuntu 11.04 requires special compilers. ( Like a "g++42-compat" ).
Ubuntu 11.10 : Not at all usable.

..
 
1 members found this post helpful.
Old 12-18-2011, 08:47 AM   #6
kozomoja
LQ Newbie
 
Registered: Dec 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
I downloaded Ubuntu 10.10 and installed ns-2.34 (no errors), changed environment variables, ran validation with no errors and now I'm trying to run a simple script:
Quote:
set ns [new Simulator]
set nf [open out.nam w]
$ns namtrace-all $nf



proc finish {} {
global ns nf
$ns flush-trace
close $nf
exec nam out.nam &
exit 0
}


$ns at 5.0 "finish"
$ns run
and get following error:

Quote:
ns: finish: couldn't execute "nam": no such file or directory
while executing
"exec nam out.nam &"
(procedure "finish" line 5)
invoked from within
"finish"
anyone familiar with this...?
 
Old 12-18-2011, 09:29 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 6

cd ns-allinone-2.34/nam-1.14/ && sudo make install

( 'make install' will simply copy nam to /usr/local/bin/ :
Then it is in a system path. You can do the same with ns ).

Quote:
changed environment variables
Not required.


May be nam wasn't created ?
Use another binary nam : Unpack, and 'sudo cp nam /usr/local/bin/'
https://docs.google.com/open?id=0B7S...k4NGI5NzliM2Ux
> nam-1.14.i586.tar.gz

.

Last edited by knudfl; 12-18-2011 at 09:37 AM.
 
1 members found this post helpful.
Old 12-18-2011, 03:35 PM   #8
kozomoja
LQ Newbie
 
Registered: Dec 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you very much, that first command solved my problem!
 
  


Reply


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
LXer: Ubuntu live CD will let you upgrade to newer Ubuntu versions Ubuntu 11.04 Development LXer Syndicated Linux News 0 03-01-2011 04:20 PM
LXer: Ubuntu Restricted Extras - Lets Ubuntu Play Everything [Ubuntu for Beginners Sc LXer Syndicated Linux News 0 04-20-2010 01:10 AM
LXer: 15 Beautiful Wallpapers from Ubuntu Artwork Pool for Ubuntu 10.04 Lucid Lynx LXer Syndicated Linux News 0 02-23-2010 01:11 PM


All times are GMT -5. The time now is 11:02 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration