06-19-2014, 08:54 PM
|
#1
|
LQ Newbie
Registered: Jun 2014
Posts: 9
Rep:
|
ns2.34 and leach installation
Hello,Everyone!
I'm using ubuntu 13.10, and now I have problem with the ns2.34+leach installation. If I only install ns2.34,it's very easy, but I find it difficult to
install leach.I have read a lot of the threads but couldn't find a solution. I deleted ns2.34 and hope someone can tell me how to install ns2.34+leach.
(1) Could anyone tell me the full steps to install them? Thanks a lot!
(2) I want to know what are the 'prerequisites' in 'First : Install the ns-allinone-2.34 prerequisites → → '
knudfl had made a explation but when I execute '3) export CC=gcc41 CXX=g++41 && ./install',the error shows the gcc41 couldn't be found but I had installed the gcc41 and reboot my computer as instruction.
(3) Can anyone tell me why the gcc41 counldn't be installed as instruction?
Quote:
Quote from knudfl:
Well, then delete ns-allinone-2.34/ , and do things in a right way :
First : Install the ns-allinone-2.34 prerequisites → →
The compilers gcc41-compat / g++41-compat for the 32bits (i686) Ubuntu 13.10 :
gcc41.. https://drive.google.com/file/d/0B7S...it?usp=sharing
g++41.. https://drive.google.com/file/d/0B7S...it?usp=sharing
$ sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb
... Then reboot, and the new compilers are ready for use.
Building ns-2.34 with LEACH :
1) tar xvf ns-allinone-2.34.tar.gz
2) cd ns-allinone-2.34/ && tar xvf leach+pegasis-ns234-files-2.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing
3) export CC=gcc41 CXX=g++41 && ./install
4) cd ns-2.34/
5) sudo make install
... That's it :
Don't do anything else, like adding some *PATH text to .bashrc : Never required.
|
Last edited by fusionzhang; 06-25-2014 at 03:30 AM.
|
|
|