LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-19-2014, 09:54 PM   #1
fusionzhang
LQ Newbie
 
Registered: Jun 2014
Posts: 9

Rep: Reputation: Disabled
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 04:30 AM.
 
  


Reply

Tags
leach-ns234


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
LEACH protocol installation on NS2.27 lubelube Linux - Software 50 04-18-2013 06:02 AM
Need your help for Leach NS2 installation bugs kingrulez Linux - Wireless Networking 10 03-18-2013 07:12 PM
LEACH protocol installation on NS2.27 Scofield Linux - General 255 03-08-2012 06:19 PM
Leach Installation on NS2 Asmaa Seyam Linux - General 3 10-19-2010 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:25 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