LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-18-2015, 02:10 AM   #1
noor2012
LQ Newbie
 
Registered: Apr 2015
Location: Iraq
Posts: 6

Rep: Reputation: Disabled
I try to install ns2.33 on ubuntu 10.10 in order to run ZRP protocol


Hello every one
please I need your help to fix my problem to install ns2.33allinone on the ubuntu 10.10 in order to run ZRP protocol for security purpose.
before this time I install every thing correctly as follow
The steps I follow to run the ZRP on the Ubuntu 10.10 and Ns2-allinone-2.33
------------------------------------------------------------------
1. first install the Ubuntu 10.10 on VMwear and download the ns2.33 and exract it in the home directory

2.Ubuntu 10.10 - 32´ is old. you have to replace the text in /etc/apt/sources.list , to be able to install packages.
So you write
$ gedit /etc/apt/sources.list
After the file open remove all the text and past the following text instead it.
#
deb http://old-releases.ubuntu.com/ubuntu/ maverick main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-backports main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-backports multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-security multiverse universe
#

Then save the file and close.

3.Write the following command to update the system
$ sudo apt-get update

4.download the two files from the following link and save it in the home directory

gcc41-compat , `gcc41-compat-4.1.2_i386.deb' :
https://drive.google.com/file/d/0B7S...it?usp=sharing
g++41-compat , `g++41-compat-4.1.2_i386.deb' :
https://drive.google.com/file/d/0B7S...it?usp=sharing

5.write the following command to install
$ sudo dpkg -i g++41-compat-4.1.2_i386.deb gcc41-compat-4.1.2_i386.deb

6.write the following command to update the packages
$sudo apt-get install libx11-dev libxmu-dev libxmu-headers libxt-dev libtool make automake autoconf g++

7. Download the ZRP from the following link and put it in the ns-allinone-2.33 directory
The latest "patch package" is zrp-ns233-patching.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing

8. After that you should follow the next steps
$ cd ns-allinone-2.33/
$ tar xvf zrp-ns233-patching.tar.gz
$ export CC=gcc41 CXX=g++41
$ ./install
$ cd ns-2.33/
$ sudo make install

9. Then you can download the example of the ZRP from the following link and run
ZRP examples : zrp-examples-2012.tar.bz2
https://drive.google.com/file/d/0B7S...it?usp=sharing

but now when i try to install it again i got this error
after i run "./install" command

#
============================================================
* Build tcl8.4.18
============================================================
configure: WARNING: unrecognized options: --enable-gcc
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc41
checking whether the C compiler works... no
configure: error: in `/home/ali/ns-allinone-2.33/tcl8.4.18/unix':
configure: error: C compiler cannot create executables
See `config.log' for more details
tcl8.4.18 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
#

so please if any one can help me to fix this problem or give me any advice how to run ZRP protocol and the appropriate environment to run it
thanks in advance for your help
 
Old 04-18-2015, 12:40 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Add 1. ? Are you sure you got the 32bits Ubuntu 10.10 ? (i386 / i686).

Add 5.
$ cd /usr/bin/
$ sudo ln -s ../gcc41/bin/gcc41
$ sudo ln -s ../gcc41/bin/g++41

Add 6. Not an update. Is a package install. And these are the right packages :
$ sudo apt-get install g++ automake libtool make libxmu-dev

Add 7., 8. The updated ZRP patch (2014), post #10 here ...
http://www.linuxquestions.org/questi...4175519601/#10
""The 'make -k' is written into the file 'install'.""
* Please also read post #12.


********** ZRP info ********
. http://network-simulator-ns-2.7690.n...25.html#a29526
. http://www.linuxquestions.org/questions/tags/zrp/
. https://groups.google.com/forum/?fro...8/x3YN7pG561MJ
. https://groups.google.com/forum/?fro.../zrp|sort:date
. http://network-simulator-ns-2.7690.n...=zrp&sort=date

-
 
Old 04-18-2015, 02:53 PM   #3
noor2012
LQ Newbie
 
Registered: Apr 2015
Location: Iraq
Posts: 6

Original Poster
Rep: Reputation: Disabled
recommended enviroment to install zrp

Dear Sir
because I new in this environment so I got confuse from reading the post you recommended to me so please if you can help me by list the steps from choose the best version of ubuntu and the ns2 version I can use it to install zrp. now as I wrote in previous post i used the ubuntu 10.10 (i386) and ns2.33allinone with the step I mention but I got the errors.

thanks for your help
 
Old 04-18-2015, 03:38 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #3.

The OS choice and the ns2 version isn't critical so far concerns ZRP.
( Unlike some of the other protocols you can add to ns2.)

Ubuntu 10.10 is very good with old ns2 code.
The drawback is that "10.10" is unsupported :
No security updates for years, then it may be unsafe to use.

If you are going to add ZRP only, ns-2.33 is a safe choice.
However I don't remember any issues with ns-2.34 or ns-2.35.

* With WMware you can easily add more OS`s : Free choices unlimited !

-
 
Old 04-19-2015, 01:57 AM   #5
noor2012
LQ Newbie
 
Registered: Apr 2015
Location: Iraq
Posts: 6

Original Poster
Rep: Reputation: Disabled
how I can istall zrp on fedora 14 32bit with ns2.35allinone

Dear Sir
I am sorry if I ask many question I hope to help me in this matter
I am already install fedora 14 32bit with ns2.35allinone on vmware my question is how I can install zrp protocol on it if you guide me with step by step really I will appreciate that.
#
[fedora@localhost ~]$ ls
aodv18.tcl Downloads Pictures testAODV.nam win.tr
Desktop Music Public testAODV.tr
Documents ns-allinone-2.35 Templates Videos
[fedora@localhost ~]$ ns
%
% exit
[fedora@localhost ~]$
#
thanks in advance
 
Old 04-19-2015, 03:57 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #5 : ns-2.35, Fedora.

$ cd ns-allinone-2.35/ns-2.35/
$ su
# make install && exit ('make install' will copy 'ns' to /usr/local/bin/.)
$ cp ns ns235-orig (This is your backup of the original 'ns'.)
$ make clean
$ cd ../
$ patch -p0 < zrp-ns235.patch
$ ./install
$ cd ns-2.35/
$ cp ns ns-zrp
$ su
# cp ns-zrp /usr/local/bin/ && exit

Simulation : $ ns-zrp zrp-Demo2-1.tcl
... etc. etc. from the examples ( zrp-examples-2012.tar.bz2 ).

-

Last edited by knudfl; 04-19-2015 at 05:00 AM.
 
Old 04-20-2015, 02:52 PM   #7
noor2012
LQ Newbie
 
Registered: Apr 2015
Location: Iraq
Posts: 6

Original Poster
Rep: Reputation: Disabled
zrp on fedora 14 32bit with ns2.35allinone: solved

thanks a lot Mr. knudfl for your help I am already install zrp protocol and test example

thanks again
 
  


Reply

Tags
ns2, zrp



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
Help me to how install ZRP in ns2.33 in ubuntu 10.10? prog.hussein Linux - Software 3 05-07-2013 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:23 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
Open Source Consulting | Domain Registration