more precisely-----------------------------------------------------------------------------
## at the end of executing the command ./install of the patch I get this kind of error
tcl8.5.10 make succeeded.
Installing libtcl8.5.a to /home/ikram/Documents/ns-allinone-2.35/lib/
cp: cannot create regular file `/home/ikram/Documents/ns-allinone-2.35/lib/#inst.6156#': Permission denied
rm: cannot remove `/home/ikram/Documents/ns-allinone-2.35/lib/libtcl8.5.a': Permission denied
mv: cannot stat `/home/ikram/Documents/ns-allinone-2.35/lib/#inst.6156#': No such file or directory
ranlib: could not create temporary file whilst writing archive: No more archived files
make: *** [install-binaries] Error 1
tcl8.5.10 installation failed.
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
ikram@ubuntu:~/Documents/ns-allinone-2.35$ cd ns-2.35/
## and when i continue to patch maled the previous error and i test some gpsr example like the file ssoumayaa.tcl that's what it gives as error
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35$ cp ns ns-gpsr-hls
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35$ sudo cp ns-gpsr-hls /usr/local/bin/
[sudo] password for ikram:
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35$ cd ESSAI/
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35/ESSAI$ cd hls-utils/
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35/ESSAI/hls-utils$ ns-gpsr-hls ssoumayaa.tcl
invalid command name "Agent/GPSR"
while executing
"Agent/GPSR set bdesync_ 0.5 "
(file "ssoumayaa.tcl" line 5)
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35/ESSAI/hls-utils$ cd ..
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35/ESSAI$ ls
1_out.tr CwMaodv_50
aodv-10.tcl CwMAODV_50
AODV_10.tr gpsr.tcl
aodv-50.tcl hls-utils
aodv-50.tcl~ namwrls.nam
aodv_50.tr Nod120_source10_cbr
AODV_50.tr ns
Aomdv_120node_10sources_vites_2.nam ns-gpsr-hls
Aomdv_120node_10sources_vites_2.tcl ssoumayaa.tcl
Aomdv_120node_10sources_vites_2.tcl~ ssoumayaa.tcl~
Aomdv_120node_10sources_vites_2.tpt VANET.tcl
Aomdv_120node_10sources_vites_2.tr wayp_120nod_vites_2_Ver2
cbr100.tcl
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35/ESSAI$ ns-gpsr-hls gpsr.tcl
invalid command name "Agent/GPSR"
while executing
"Agent/GPSR set sport_ 0"
(file "gpsr.tcl" line 1)
ikram@ubuntu:~/Documents/ns-allinone-2.35/ns-2.35/ESSAI$
tar xvf ns-allinone-2.34.tar.gz
patch -p0 < GPSR-hls_ns234-2.patch
https://drive.google.com/file/d/0B7S255p3kFXNTXl5anRTeFRON2s/view?usp=sharing
patch -p0 < ns234_gcc49.patch
https://drive.google.com/file/d/0B7S255p3kFXNZDNyV1BPZHhEY0U/view?usp=sharing
./install
cd ns-2.34/
cp ns ns234-gpsr-hls
sudo cp ns234-gpsr-hls /usr/local/bin/
$ sudo gdebi Downloads/gpsr-hls-ns_2.33-2-ubuntu10_i386.deb
tar xvf ns-allinone-2.34.tar.gz
patch -p0 < GPSR-hls_ns234-2.patch
https://drive.google.com/file/d/0B7S255p3kFXNTXl5anRTeFRON2s/view?usp=sharing
patch -p0 < ns234_gcc49.patch
https://drive.google.com/file/d/0B7S255p3kFXNZDNyV1BPZHhEY0U/view?usp=sharing
./install
cd ns-2.34/
cp ns ns234-gpsr-hls
sudo cp ns234-gpsr-hls /usr/local/bin/
----------- Simulation ------------
ns234-gpsr-hls ssoumayaa.tcl
sudo gdebi Downloads/nam_1.14_amd64.deb
java -jar MOVE.jar
after patching the gprs-hls (no errors occurred) 3 files were generated (gpsr.h, gpsr.cc, gspr.o) in the gpsr folder after testing ssoumayaa.tcikram@ubuntu:~/Documents/ns-allinone-2.34/ns-2.34/gpsr-hls-ex_02.18$ ns234-gpsr-hls ssoumayaa.tcl
----------------------------------------------------------------------------------------------------------------------------------------------------------
does that mean simulation success, patch successful
but after executing
sudo apt-get update
sudo apt-get install build-essential autoconf automake |
sudo apt-get install tcl8.5-dev tk8.5-dev |
sudo apt-get install perl xgraph libxt-dev libx11-dev libxmu-dev |
sudo apt-get install gcc-4.4 tar -xvzf ns-allinone-2.34.tar.gz sudo ./install sudo gedit .bashrc ./validate and I got a% after typing ns if my instalation is wrong, please tell me the correct installation link ns 2.34 thanks |
tar -xvzf ns-allinone-2.34.tar.gz
sudo ./install
sudo gedit .bashrc
./validate
yours faithfully
Did you receive my message to you ? I.e. I did send a "private message", because ordinary answer wasn't forwarded. Hence the deleted / not sent answers.
Did you receive my message to you ? I.e. I did send a "private message", because ordinary answer wasn't forwarded. Hence the deleted / not sent answers.
$ ns234-gpsr-hls-64 2-gvanet.tcl
num_nodes is set 50
INITIALIZE THE LIST xListHead
Starting Simulation...
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
.
radiorange 250, x 652 y 252
length : 1.415037 , cellperline 4 , heigth 0.415037
maxlevel 2
SORTING LISTS ...DONE!
NS EXITING...
54 Agent/GPSR set locservice_type_ 3 ;################################ edited: Not commented out
56 add-all-packet-headers ;################################ edited: Not commented out
57 remove-all-packet-headers ;################################ edited: Not commented out
58 add-packet-header Common Flags IP LL Mac Message GPSR LOCS SR RTP Ping HLS ;### edited ...
--
$ cd ex-vanet-09.18/
$ grep -Rn "set val(rp" *
$ grep -Rn "set opt(rp" *