LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   install ZRP in NS2 (https://www.linuxquestions.org/questions/linux-software-2/install-zrp-in-ns2-4175680842/)

ayla 08-22-2020 04:45 AM

install ZRP in NS2
 
hello , can u help me please ?
whene i execute this cmnd 'cp ns ns235-zrp' i have this prblm ---> cp: cannot stat 'ns': No such file or directory

TB0ne 08-22-2020 08:50 AM

Quote:

Originally Posted by ayla (Post 6158301)
hello , can u help me please ?
whene i execute this cmnd 'cp ns ns235-zrp' i have this prblm ---> cp: cannot stat 'ns': No such file or directory

You first need to read the LQ Rules about not using text-speak, and the "Question Guidelines" link in my posting signature. There are MANY threads on this site dealing with NS2 and ZRP, and many other guides you can find with a brief Google search. Doing your own research should be the first thing you do. Past that, you don't provide any details about your system, where you got the software you're working with, what instructions you're following, etc. We cannot guess.

Short answer to your question: the ns file in your copy command isn't in the directory where you're issuing the command. Go to the right directory.

ayla 08-22-2020 11:16 AM

install zrp in ns2
 
Quote:

Originally Posted by TB0ne (Post 6158352)
You first need to read the LQ Rules about not using text-speak, and the "Question Guidelines" link in my posting signature. There are MANY threads on this site dealing with NS2 and ZRP, and many other guides you can find with a brief Google search. Doing your own research should be the first thing you do. Past that, you don't provide any details about your system, where you got the software you're working with, what instructions you're following, etc. We cannot guess.

Short answer to your question: the ns file in your copy command isn't in the directory where you're issuing the command. Go to the right directory.

thank you so much for your answer , i try to install zrp protocol in ns2 ubuntu 18.10
and i follow these steps :
tar xvf ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-allinone-2.35/
patch -p0 < zrp-ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
export CC=gcc-4.8 CXX=g++-4.8 && ./install
cd ns-2.35/
cp ns ns235-zrp
sudo cp ns235-zrp /usr/local/bin/

------------ Simulation ----------
ns235-zrp zrp-Demo1-1.tcl

TB0ne 08-22-2020 11:33 AM

Quote:

Originally Posted by ayla (Post 6158395)
thank you so much for your answer , i try to install zrp protocol in ns2 ubuntu 18.10
and i follow these steps :
tar xvf ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-allinone-2.35/
patch -p0 < zrp-ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
export CC=gcc-4.8 CXX=g++-4.8 && ./install
cd ns-2.35/
cp ns ns235-zrp
sudo cp ns235-zrp /usr/local/bin/

------------ Simulation ----------
ns235-zrp zrp-Demo1-1.tcl

Ok...so again, you aren't in the correct directory when you issue the copy command. If you are able to run "cd ns-2.35" with no errors, then type in "ls" to see what's in that folder.

ayla 08-22-2020 11:44 AM

Quote:

Originally Posted by TB0ne (Post 6158402)
Ok...so again, you aren't in the correct directory when you issue the copy command. If you are able to run "cd ns-2.35" with no errors, then type in "ls" to see what's in that folder.

ok , i found :
adc BASE-VERSION config.h diffserv gaf link mobile puma routing tmix wpan
allinone baytcp config.log diffusion gen linkstate mpls pushback rtproto TODO.html xcp
aodv bin config.status diffusion3 HOWTO-CONTRIBUTE mac nix qs satellite tools zrp
aomdv bitmap config.sub doc imep Makefile ns.1 queue sctp tora
apps CHANGES.html configure dsdv indep-utils Makefile.in ns-2.35 rap sensor-nets trace
asim classifier configure.in dsr install-sh Makefile.in.rej ns_tclsh.cc README src_rtg validate
autoconf.h common COPYRIGHTS empweb INSTALL.WIN32 makefile.vc packmime realaudio tcl validate.out
autoconf.h.in conf dccp emulate lib mcast pgm release_steps.txt tcp VERSION
autoconf-win32.h config.guess delaybox FILES LICENSES mdart plm routealgo test-all webcache

TB0ne 08-22-2020 11:50 AM

Quote:

Originally Posted by ayla (Post 6158406)
ok , i found :
Code:

adc                BASE-VERSION  config.h      diffserv    gaf              link            mobile      puma              routing      tmix          wpan
allinone          baytcp        config.log    diffusion  gen              linkstate        mpls        pushback          rtproto      TODO.html    xcp
aodv              bin          config.status  diffusion3  HOWTO-CONTRIBUTE  mac              nix          qs                satellite    tools        zrp
aomdv            bitmap        config.sub    doc        imep              Makefile        ns.1        queue              sctp        tora
apps              CHANGES.html  configure      dsdv        indep-utils      Makefile.in      ns-2.35      rap                sensor-nets  trace
asim              classifier    configure.in  dsr        install-sh        Makefile.in.rej  ns_tclsh.cc  README            src_rtg      validate
autoconf.h        common        COPYRIGHTS    empweb      INSTALL.WIN32    makefile.vc      packmime    realaudio          tcl          validate.out
autoconf.h.in    conf          dccp          emulate    lib              mcast            pgm          release_steps.txt  tcp          VERSION
autoconf-win32.h  config.guess  delaybox      FILES      LICENSES          mdart            plm          routealgo          test-all    webcache


Please post such things in CODE tags to make them easier to read. That said, you are obviously not following the instructions...they said clearly to type in "cd ns-2.35"...and you have NOT, since the ns-2.35 directory shows in the folder you're in.

Follow the instructions.

ayla 08-22-2020 12:05 PM

Quote:

Originally Posted by TB0ne (Post 6158407)
Please post such things in CODE tags to make them easier to read. That said, you are obviously not following the instructions...they said clearly to type in "cd ns-2.35"...and you have NOT, since the ns-2.35 directory shows in the folder you're in.

Follow the instructions.

No , i already have another file with the same in the middle of the ns-2.35 file
and when i run 'ls' i find zrp file

sgosnell 08-22-2020 12:31 PM

There is no file named ns in the directory listing you posted.

TB0ne 08-22-2020 12:33 PM

Quote:

Originally Posted by ayla (Post 6158413)
No , i already have another file with the same in the middle of the ns-2.35 file and when i run 'ls' i find zrp file

No idea what you are talking about. Again, READ and FOLLOW the instructions. They very clearly say:
Code:

cd ns-2.35/
cp ns ns235-zrp
sudo cp ns235-zrp /usr/local/bin/

Bolded a part you are NOT DOING. The folder contents you posted clearly show the ns-2.35 directory...you obviously cannot copy something from within THAT folder until you go INTO that folder, using the commands posted.

Again: follow the instructions. If you are unable or unwilling to do so, there isn't much anyone can help you with.

sgosnell 08-22-2020 01:50 PM

Or you could try this:
Code:

cp ns-2.35/ns ns235-zrp
sudo cp ns235-zrp /usr/local/bin


ayla 08-22-2020 02:47 PM

install zrp in ns2
 
Quote:

Originally Posted by sgosnell (Post 6158424)
There is no file named ns in the directory listing you posted.

thnks ,
Yes, I do not know where to get it!!!

TB0ne 08-22-2020 02:53 PM

Quote:

Originally Posted by ayla (Post 6158451)
thnks ,
Yes, I do not know where to get it!!!

You **PAY ATTENTION** to what you've been told so far, that's how.

AGAIN: you are NOT following the instructions; you posted a directory listing, with the directory you're supposed to cd into IN IT....you ARE IN THE WRONG PLACE for the copy command to work. AGAIN: the instructions clearly tell you to type in "cd ns-2.35"...you have not done that. Until you do, you are not going to find the ns needed, since you are in the wrong directory.

Cannot be more plain.

ayla 08-22-2020 03:11 PM

install zrp in ns2
 
Quote:

Originally Posted by TB0ne (Post 6158452)
You **PAY ATTENTION** to what you've been told so far, that's how.

AGAIN: you are NOT following the instructions; you posted a directory listing, with the directory you're supposed to cd into IN IT....you ARE IN THE WRONG PLACE for the copy command to work. AGAIN: the instructions clearly tell you to type in "cd ns-2.35"...you have not done that. Until you do, you are not going to find the ns needed, since you are in the wrong directory.

Cannot be more plain.

No , I told you that there is another file in the file ns-2.35 called also ns-2.35
And when you run the instruction 'sudo cp ns ns235-zrp', I find the same error 'cp: cannot stat 'ns': No such file or directory
'

sgosnell 08-22-2020 03:15 PM

Quote:

No , I told you that there is another file in the file ns-2.35 called also ns-2.35
Please, humor us and run again
Code:

cd ns-2.35
and see what happens. If you won't do that, I quit.

TB0ne 08-22-2020 04:48 PM

Quote:

Originally Posted by ayla (Post 6158457)
No , I told you that there is another file in the file ns-2.35 called also ns-2.35
And when you run the instruction 'sudo cp ns ns235-zrp', I find the same error 'cp: cannot stat 'ns': No such file or directory

RIGHT...because, as you have been told NUMEROUS TIMES so far, you have not run the "cd ns-2.35" command, to go INTO THAT FOLDER. Which is where the ns data is.

Until you go into that folder, you *WILL NOT* find that data....you are skipping a step, and seem to be amazed that things aren't working. Again, either do what is suggested/follow the instructions, or there is no point in posting.


All times are GMT -5. The time now is 10:53 PM.