UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i am tried install ns 2.33 in 12.04 and had some prob.
which ns i can install for zrp(patch)?
because i am tried 2.33 for some linux
problem repository linux is outdated, i cant install ns 2.33
my objective is NS with zrp patch
please help me.
thanks
And install the Ubuntu zrp package, zrp-ns-2.33-ubu1010_i386.deb https://docs.google.com/file/d/0B7S2...it?usp=sharing
.. with $ sudo dpkg -i zrp-ns-2.33-ubu1010_i386.deb
.. or click the package, and use your 'Package Installer'.
.. Then you can run all the examples with : $ ns-zrp <file>.tcl
If you want to build your own zrp version, it's "ns-allinone-2.33" :
Install the compilers, ref. post # 18 here : http://www.linuxquestions.org/questi...022/page2.html
*** Be aware that the compilers are for a 32bits (i686) Ubuntu 12.04 only.
*** ( A 64bits OS (x86_64) is not good with ns2 ).
ZRP : a) $ cd ns-allinone-2.33/ && export CC=gcc41 CXX=g++41 && ./install
sir knudfl, excuse me may you help me about how can i install ZRP package for ubuntu which you posted.
zrp-ns-2.33-ubu1010_i386.deb do i have to install ubuntu version 10.10 only?
how about ubuntu 12.04? its alright?
thanks sir.
Ref. post #2 : You can install zrp-ns-2.33-ubu1010_i386.deb into Ubuntu 12.04.
If the OS shows `i686' with the command $ uname -m
The package works equally well, all Ubuntu 10.04 ... 13.**
-
sir, im trying instal ns 2.33 for ubuntu 12.04 i got this error
* 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/jap/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.
im already instal gcc 4.1.2 for zrp patch or i install zrp package but still wont work
please help me
Please put /home/jap/ns-allinone-2.33/bin:/home/jap/ns-allinone-2.33/tcl8.4.18/unix:/home/jap/ns-allinone-2.33/tk8.4.18/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.
IMPORTANT NOTICES:
(1) You MUST put /home/jap/ns-allinone-2.33/otcl-1.13, /home/jap/ns-allinone-2.33/lib,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
into LD_LIBRARY_PATH.
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>
(2) You MUST put /home/jap/ns-allinone-2.33/tcl8.4.18/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.
After these steps, you can now run the ns validation suite with
cd ns-2.33; ./validate
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
i am already install $ sudo dpkg -i zrp-ns-2.33-ubu1010_i386.deb
and im trying to run your example but
jap@jap-GA-MA770T-UD3P:~$ cd zrp-examples
jap@jap-GA-MA770T-UD3P:~/zrp-examples$ ns-zrp example.tcl
num_nodes is set 20
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
ns: Agent/ZRP set radius_: can't read "radius_": no such variable
(Object set line 1)
invoked from within
"Agent/ZRP set radius_"
Please put /home/jap/ns-allinone-2.33/bin:/home/jap/ns-allinone-...
into your PATH environment
.
You MUST put /home/jap/ns-allinone-2.33/otcl-1.13, /home/jap/ns-allinone-2.33/lib,
into your LD_LIBRARY_PATH environment variable.
No PATH* settings are required. That's a "University thing".
Never add anything to .bashrc, when it is your own computer.
This will do : $ cd ns-allinone-2.33/ns-2.33/ && sudo make install
.. I.e. 'make install' will copy 'ns' to /usr/local/bin/
Quote:
jap@jap-GA-MA770T-UD3P:~/zrp-examples$ ns-zrp example.tcl
.
ns: Agent/ZRP set radius_: can't read "radius_": no such variable
You have chosen the only example that doesn't work.
! Use zrp-examples-2012.tar.bz2 : Please read post #2.!
! And all this http://www.linuxquestions.org/questions/tags/zrp/
I.e. example.tcl was edited to example-zrp.tcl
No PATH* settings are required. That's a "University thing".
Never add anything to .bashrc, when it is your own computer.
This will do : $ cd ns-allinone-2.33/ns-2.33/ && sudo make install
.. I.e. 'make install' will copy 'ns' to /usr/local/bin/
You have chosen the only example that doesn't work.
! Use zrp-examples-2012.tar.bz2 : Please read post #2.!
! And all this http://www.linuxquestions.org/questions/tags/zrp/
I.e. example.tcl was edited to example-zrp.tcl
-
ok, sorry
sir, ns already in user local bin.
im run your example, but same following errors
jap@jap-GA-MA770T-UD3P:~$ cd zrp-examples
jap@jap-GA-MA770T-UD3P:~/zrp-examples$ dir
example.jpg example.traffic zrp_9.tcl
example.scen example-zrp.tcl zrp-Demo1-1.tcl
example.tcl test_zrp.tcl zrp-Demo2-1.tcl
jap@jap-GA-MA770T-UD3P:~/zrp-examples$ ns-zrp example.tcl
num_nodes is set 20
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
ns: Agent/ZRP set radius_: can't read "radius_": no such variable
(Object set line 1)
invoked from within
"Agent/ZRP set radius_
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
# 8 .
Quote:
$ ns-zrp example.tcl
.
ns: Agent/ZRP set radius_: can't read "radius_": no such variable
Repeat Repeat : You have chosen the only example that doesn't work : Post #7.
"example.tcl" is included only for historical reason. Not usable as is.
Read the files example.tcl and example-zrp.tcl, to know the difference.
You can see the editing here http://www.linuxquestions.org/questions/tags/zrp/
Quote:
(edited bashrc, error when sudo gedit ~/.bashrc
Not required. See post #7.
Quote:
# ~/.bashrc: executed by bash(1) for non-login shells.
Also not required. And : No ns2 / zrp commands are to be done as root !
That's not a patch. The .deb package is a complete build of ns2 / zrp :
I.e. you don't have to build anything ns-allinone / zrp,
when the package is installed → →
Using the package executable, example : $ ns-zrp example-zrp
.. Which you'd know after reading http://www.linuxquestions.org/questions/tags/zrp/
It is assumed, that you have a working ns-allinone-2.33,
i.e. the './install' command was run with no errors.
""Section 3.2 Instructions :
1. First put following files into NS-2 home's parent directory:
* ns-allinone-2.33_ZRP.tar.gz (This contains my code)
* PatchZRP.patch
* patchmyZRP.sh (THIS SHELL-SCRIPT FILE -
This script file should be run from NS-2 home' parent directory)
2. Run patchZRP.sh from shell."" ( Like 'sh patchZRP.sh' ).
.....
But the script patchZRP.sh isn't working, easier to do manually :
a) cd ns-allinone-2.33/ && patch -p1 < PatchZRP.patch
b) touch ns-2.33/common/packet.h && touch ns-2.33/trace/cmu-trace.h
c) cd ../ && tar xvf ns-allinone-2.33_ZRP.tar.gz
d) cd ns-allinone-2.33/ns-2.33 && make -k
step D i got this
for i in indep-utils/cmu-scen-gen/setdest indep-utils/webtrace-conv/dec indep-utils/webtrace-conv/epa indep-utils/webtrace-conv/nlanr indep-utils/webtrace-conv/ucb; do ( cd $i; make all; ) done
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jap/BLA/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/home/jap/BLA/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec'
sir, whats wrong?
im trying to excute example but
invalid command name "Agent/ZRP"
while executing
"Agent/ZRP set radius_ 2 "
(file "example-zrpp.tcl" line 68)
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
# 10 .
Quote:
Nothing to be done for `all'.
.
.. .. whats wrong?
What do you mean ?
Nothing to be done for `all' :
Is the normal reply from 'make', when you do 'make' the second time, etc.
Quote:
invalid command name "Agent/ZRP"
You are using an executable 'ns' with no ZRP !
a) May be you have more than one "ns" ?
Rename the zrp ns to 'ns-zrp' : $ ns-zrp example-zrp.tcl
b) Or you could have a failed build.
P.S. : ? Why are are quoting the text that has the comment : "Do not do this" ?
Quote:
Section 3.2 Instructions : (( Do not use this instruction ))
Code:
1. First put following files into NS-2 home's parent directory:
* ns-allinone-2.33_ZRP.tar.gz (This contains my code)
* PatchZRP.patch
* patchmyZRP.sh (THIS SHELL-SCRIPT FILE -
This script file should be run from NS-2 home' parent directory)
2. Run patchZRP.sh from shell.
(( Do not use this instruction ))
If you used this, you will have to start from scratch, I guess.
What do you mean ?
Nothing to be done for `all' :
Is the normal reply from 'make', when you do 'make' the second time, etc.
You are using an executable 'ns' with no ZRP !
a) May be you have more than one "ns" ?
Rename the zrp ns to 'ns-zrp' : $ ns-zrp example-zrp.tcl
b) Or you could have a failed build.
P.S. : ? Why are are quoting the text that has the comment : "Do not do this" ?
If you used this, you will have to start from scratch, I guess.
-
sir knudfl, i delete all my ns 2.
i am trying to repeat the installation
1.First put following files into NS-2 home's parent directory:
* ns-allinone-2.33_ZRP.tar.gz (This contains my code)
* PatchZRP.patch
* patchmyZRP.sh (THIS SHELL-SCRIPT FILE )
2. do
a) cd ns-allinone-2.33/ && patch -p1 < PatchZRP.patch
b) touch ns-2.33/common/packet.h && touch ns-2.33/trace/cmu-trace.h
c) cd ../ && tar xvf ns-allinone-2.33_ZRP.tar.gz
d) cd ns-allinone-2.33/ns-2.33 && make -k
3. run examples
but still
jap@jap-GA-MA770T-UD3P:~/zrp-examples$ ns example-zrp.tcl
invalid command name "Agent/ZRP"
while executing
"Agent/ZRP set radius_ 2 "
(file "example-zrp.tcl" line 68)
ap@jap-GA-MA770T-UD3P:~/zrp-examples$ ns zrp-Demo1-1.tcl
invalid command name "Agent/ZRP"
while executing
"Agent/ZRP set radius_ 2 "
(file "zrp-Demo1-1.tcl" line 17)
jap@jap-GA-MA770T-UD3P:~/zrp-examples$ ns zrp-Demo2-1.tcl
invalid command name "Agent/ZRP"
while executing
"Agent/ZRP set radius_ 2 "
(file "zrp-Demo2-1.tcl" line 17)
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
# 12 .
Ubuntu 12.04 : Is it 32bits (i686) ?
Please show the output from the command $ uname -m <Enter>
Are you sure that the right compiler is used ?
Ref. post #2 :
" .. line 37 in the Makefile must be edited to : CPP = g++41 "
I.e. a `g++ version 4.1.2' must be used.
Ubuntu 12.04 : Is it 32bits (i686) ?
Please show the output from the command $ uname -m <Enter>
Are you sure that the right compiler is used ?
Ref. post #2 :
" .. line 37 in the Makefile must be edited to : CPP = g++41 "
I.e. a `g++ version 4.1.2' must be used.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.