Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Search this Thread
Old 03-04-2008, 04:35 AM   #1
LQ Newbie
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
Smile Problem Installing NS2 in Ubuntu 7.10

I have recently installed Ubuntu 7.10 in my desktop. I was interested in doing some work in NS2 so i download the file ns-allinone-2.29 as well as the ns-allinone-2.31. But while installing the softawre i am having problems as it displays errors or i can say unable to install. So what should i do so that i can run the software.. I will be highly obilized if you guys can help me...
Old 03-05-2008, 09:27 PM   #2
Registered: Jun 2006
Distribution: Kubuntu Hardy
Posts: 94

Rep: Reputation: 15
Could you please post the tail (i.e. last 10 or so lines) of the error messages you're getting? (hint: you can select from the terminal and middle click in a text box to copy and paste). Anyway, if this helps:

When you build a tarball, you typically run the following commands:

sudo make install
though there are occasionally variations such as alternative build systems.

If you don't type the 'sudo', it will try to install with user permissions (regular users aren't allowed to install; they need superuser permission).

You are likely running into dependency problems (i.e. packages that aren't installed that need to be). This is where you use apt-get to resolve them by installing the necessary -dev packages. For instance, if the ./configure fails because you don't have Tcl/Tk, you can install them by running:

sudo apt-get install tcl8.4-dev tk8.4-dev
If you need to know the name of a package, you can type:

apt-cache search tcl
This will spew a lot of results. To refine a bit, you can pipe it through grep:

apt-cache search tcl | grep dev
If you are new and want to know details about commands, you can access the man pages like this:

man grep
Old 04-12-2008, 03:45 PM   #3
LQ Newbie
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
Problem installing ns2.33 in Ubuntu 7.10

i have installed Ubuntu 7.10 and wanted to install ns-allinone-2.33. I have downloaded it from and followed the commands:

$ tar -xzvf ns-allinone-2.33.tar.gz
$ cd ns-allinone-2.33
$ sudo apt-get install build-essential autoconf automake libxmu-dev

During executing it asked to insert Ubuntu 7.10 CD, after that the following error lines are printed on terminal. (Note that i have installed it using superuser mode)

Media change: please insert the disc labeled
'Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)'
in the drive '/cdrom/' and press enter

Failed to fetch cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/pool/main/g/gcc-4.1/libstdc++6-4.1-dev_4.1.2-16ubuntu2_i386.deb Hash Sum mismatch
Failed to fetch cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/pool/main/g/gcc-4.1/g++-4.1_4.1.2-16ubuntu2_i386.deb Hash Sum mismatch
Failed to fetch cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/pool/main/p/patch/patch_2.5.9-4_i386.deb Hash Sum mismatch
Failed to fetch cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/pool/main/d/dpkg/dpkg-dev_1.14.5ubuntu16_all.deb Hash Sum mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Looking forward to have a solution

Old 04-20-2008, 05:46 AM   #4
Registered: Apr 2008
Location: Gliwice, Poland
Distribution: Any. BSD most often ;-)
Posts: 31

Rep: Reputation: 15
I have recently created a step-by-step guide on installing ns-2 natively on Ubuntu box:

Old 04-24-2008, 01:28 AM   #5
LQ Newbie
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
I tried to install ns-2.31 in ubuntu 7.10
everything seems to fine. It says that "Ns-allinone package has been installed successfully"
And i also did as what in the installation step from the ns2 site (setting up the environment variables)
But when i tried to run an example from ns2,(the tcl script)eventhough i am in the correct gave me this error,

>>> maslinda@maslinda:~/ns-allinone-2.31/ns-2.31/tcl/ex$ ns wireless.tcl
>>> wireless.tcl does not exist, try again

Can someone help me to figure out this problem?

Old 04-27-2008, 08:27 AM   #6
Registered: Apr 2008
Location: Gliwice, Poland
Distribution: Any. BSD most often ;-)
Posts: 31

Rep: Reputation: 15
You are running the wrong software ;-)
ns you run by typing 'ns' in command line seems to be part of 'host' package. This is not Network Simulator (check man ns).

Run the script using "../../ns wireless.tcl" or change PATH to point to you 'network simulation' /bin first and then the rest.

If you upgrade to ubuntu 8.04 "host" package is replaced by "bind9-host" where there is no 'ns' binary.
Also you could remove the 'host' package - you can use nslookup or dig for similar purpose (sudo apt-get remove host).

Perhaps host-bind9 is available on ubuntu 7.04 - try:
sudo apt-get install bind9-host



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
Problem in installing NS2 in fedora 5 arunram Linux - Software 6 03-14-2009 07:49 AM
Encountering problem when installing NS2 on Debian MichaelYoung Debian 1 05-12-2007 07:08 PM
Problem with ns2 vivekr Programming 4 07-22-2006 06:48 AM
problem with NS2 cain_eve Programming 1 04-17-2005 03:32 PM

All times are GMT -5. The time now is 04:06 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 @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration