Asked By
juross
0 points
N/A
Posted on - 11/02/2011
I have no experience in using Linux and I want to install NS2.
I am looking for someone who can help me with the installation process with Ubuntu 10.04. It should be clear and easy to follow. Â
Please guide me with installation process that are clear and has no errors.Â
Answered By
sopier
0 points
N/A
#100725
Help me with the installation process with Ubuntu 10.04.
A. Easy way:
Â
1. type this command in your console:
Â
sudo add-apt-repository ppa:wouterh/ppa
sudo apt-get update
sudo apt-get install ns2 nam xgraph
Â
2. after the installation finished, run the program by typing in your console:
Â
nam
Â
B. The Hard Way:
Â
1. Run this command in your console:
Â
sudo apt-get update
sudo apt-get install build-essential autoconf automake libxmu-dev libxt-dev libxt6 libsm-dev libsm6 libice-dev libice6 vim
Â
2. Download ns-allinone.2.34.tar.gz package from this URL:
Â
Â
3. Now extract the file, by right-clicking and choose "extract here"
4. Now open your terminal, and change the directory to the extracted package:
Â
cd ns-allinone.2.34/
Â
5. Run the install
Â
./install
Â
6. You might hit the error like this:
Â
otcl-1.13 make failed! Exiting
Â
7. And here is the solution
8. Run this command on your console:
Â
gedit otcl-1.13/configure &
Â
9. Looks for this lines:Â
Â
Linux*)
SHLIB_CFLAGS="-fpic"
SHLIB_LD="ld -shared"
SHLIB_SUFFIX=".so"
DL_LIBS="-ldl"
SHLD_FLAGS=""
;;
Â
10. and replace with:
Â
Linux*)
SHLIB_CFLAGS="-fpic"
SHLIB_LD="gcc -shared"
SHLIB_SUFFIX=".so"
DL_LIBS="-ldl"
SHLD_FLAGS=""
;;
Â