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...
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:
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:
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 sourceforge.net 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
I have recently created a step-by-step guide on installing ns-2 natively on Ubuntu box:
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 directory....it 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?
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
|All times are GMT -5. The time now is 09:57 AM.|