Linux - SoftwareThis 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
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.
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep:
Quote:
Originally Posted by knudfl
# 149 .
Post #148: "If you exit the terminal after $ export <something>, the settings are lost".
... I.e. nothing to do with chain commands, it's about 'export'.
# 147 .
Which patch are you using ? Patch name and a link, please.
If I remember right, the GPSR-KeLiu is for ns-2.34.
-
With reference to question in #150
The patch was provided by my project guide.
During his M.Tech in IIT Guwahati, he got the patch from the actual author of GPSR, communicating him by mail and phone from IIT domain.
That was the time of ns-2.26; and he used Ubuntu 9.0 platform.
There are some errors in the "ramakrishnamundugar" work :
1) Using 'sudo' : Don't do that. No sudo in ns2. (Except for 'sudo make install'.)
2) The *PATH settings : Only meant to be used when it's not your computer.
Originally (year 1999 and earlier) used with the University's computers,
where you had no permissions to install to /usr/local/.
And : I don't know which compiler "ramakrishnamundugar" has used.
The proof method : Do not edit e.g. ns-2.33, but use gcc41 / g++41.
Anyway most of the old patches require an old compiler,
so editing the basic ns-2.33 isn't much help,
when the added/patched files are failing to compile.
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep:
Dear knudfl,
with reference to #143
I got this :
chakraborty@chakraborty-desktop:~/ns$ cd ns-allinone-2.33/ && export CC=gcc41 CXX=g++41 && ./install
example.c:543: error: ‘comprLen’ undeclared (first use in this function)
example.c:543: error: ‘uncomprLen’ undeclared (first use in this function)
make: *** [example.o] Error 1
Zlib make failed, but it's optional Continue ...
============================================================
* 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/chakraborty/ns/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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 155 .
Quote:
Errors were encountered while processing:
g++41-compat-4.1.2_i386.deb
.
.
make: g++41: Command not found
*No package install : No g++41.
Please delete the downloaded package "g++41-compat-4.1.2_i386.deb",
.. download a new one, and do $ sudo dpkg -i g++41-compat-4.1.2_i386.deb
.. May work ?
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep:
Quote:
Originally Posted by knudfl
# 155 .
*No package install : No g++41.
Please delete the downloaded package "g++41-compat-4.1.2_i386.deb",
.. download a new one, and do $ sudo dpkg -i g++41-compat-4.1.2_i386.deb
.. May work ?
.
Dear Knudfl,
I thank you for your consistent support and help.
For the first time the installtion of ns-2.33 was as smooth and clean one shot process.
Setting the path going to patch GPSR.
Hope this tim e no segmentation fault!
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep:
Dear Knudfl,
Same problem persists!
The command sequences executed are:
csdpadmin@csdpadmin-ThinkCentre-M70E:~/ns-allinone-2.33/ns-2.33$ mkdir gpsr
csdpadmin@csdpadmin-ThinkCentre-M70E:~/ns-allinone-2.33/ns-2.33$ make clean
......
......
Done all the necessary changes for succesful make.
Finally,
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]: Entering directory `/home/csdpadmin/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/csdpadmin/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/home/csdpadmin/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/csdpadmin/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec'
make[1]: Entering directory `/home/csdpadmin/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/csdpadmin/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/home/csdpadmin/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/csdpadmin/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/home/csdpadmin/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/csdpadmin/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'
csdpadmin@csdpadmin-ThinkCentre-M70E:~/ns-allinone-2.33/ns-2.33$ ns
% exit
csdpadmin@csdpadmin-ThinkCentre-M70E:~/ns-allinone-2.33/ns-2.33$ wireless-gpsr.tcl
wireless-gpsr.tcl: command not found
csdpadmin@csdpadmin-ThinkCentre-M70E:~/ns-allinone-2.33/ns-2.33$ ns wireless-gpsr.tcl
couldn't read file "wireless-gpsr.tcl": no such file or directory
csdpadmin@csdpadmin-ThinkCentre-M70E:~/ns-allinone-2.33/ns-2.33$ cd gpsr
csdpadmin@csdpadmin-ThinkCentre-M70E:~/ns-allinone-2.33/ns-2.33/gpsr$ ns wireless-gpsr.tcl
num_nodes is set 100
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
GPSR configuration file
INITIALIZE THE LIST xListHead
Grid info:100 100 15 (7 7)
Segmentation fault (core dumped)
Now the the compiler is also g++41, sucessfully installed.
# 158 : "$ ns wireless-gpsr.tcl" : Segmentation fault →
... May be you are using the wrong copy of an older executable 'ns'.
... Please make copy of the right 'ns' to a new name : ns-KeLiu,
... and copy "ns-KeLiu" to /usr/local/bin/ .
The simulation runs OK with any naming : $ ns-KeLiu wireless-gpsr.tcl
From post #151, #152 : ""got the patch from the actual author of GPSR"" :
! You will have to supply that "patch" if you want any more help !
* Upload the patch,,, and show a link to it's location.
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep:
Quote:
Originally Posted by knudfl
#156:
I need to ask.
-
Now it is giving,,,,
chakraborty@chakraborty-desktop:~/ns-allinone-2.33/ns-2.33/gpsr$ ns wireless-gpsr.tcl
invalid command name "Agent/GPSR"
while executing
"Agent/GPSR set planar_type_ 1 "
(file "wireless-gpsr.tcl" line 109)
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 160 .
Quote:
invalid command name "Agent/GPSR"
Happens when you are using a wrong copy of the executable 'ns'.
Can also be a failed build.
**** Repeat : You will have to supply the "patch" if you want any more help.
And also very important : Do not use an executable by name 'ns' !
! Rename ns to ns-KeLiu. Copy "ns-KeLiu" to /usr/local/bin/.
Run $ ns-KeLiu wireless-gpsr.tcl
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep:
Quote:
Originally Posted by knudfl
# 160 .
And also very important : Do not use an executable by name 'ns' !
! Rename ns to ns-KeLiu. Copy "ns-KeLiu" to /usr/local/bin/.
Run $ ns-KeLiu wireless-gpsr.tcl
-
How to do that?
Quote:
Originally Posted by knudfl
# 160
**** Repeat : You will have to supply the "patch" if you want any more help.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 162 .
Quote:
Copy "ns-KeLiu" to /usr/local/bin/.
Run $ ns-KeLiu wireless-gpsr.tcl
.
How to do that ?
1) cd ns-allinone-2.33/ns-2.33/
2) HOWTO make a copy of 'ns' to a new name : $ cp ns ns-KeLiu
3) $ sudo cp ns-KeLiu /usr/local/bin/
4) $ cd tcl/
5) $ ns-KeLiu wireless-gpsr.tcl
Reasons to supply the <unknown gpsr patch> :
You cannot get any answers for <unknown-software>.
* You don't have to let everybody access the software :
Use the email option http://www.linuxquestions.org/questi...ember&u=386037
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84
Rep:
#162
Quote:
1) cd ns-allinone-2.33/ns-2.33/
2) HOWTO make a copy of 'ns' to a new name : $ cp ns ns-KeLiu
3) $ sudo cp ns-KeLiu /usr/local/bin/
4) $ cd tcl/
5) $ ns-KeLiu wireless-gpsr.tcl
-
chakraborty@chakraborty-desktop:~/ns-allinone-2.33/ns-2.33$ cp ns ns-KeLiu
chakraborty@chakraborty-desktop:~/ns-allinone-2.33/ns-2.33$ sudo cp ns-KeLiu /usr/local/bin/
[sudo] password for chakraborty:
chakraborty@chakraborty-desktop:~/ns-allinone-2.33/ns-2.33$ cd tcl/
chakraborty@chakraborty-desktop:~/ns-allinone-2.33/ns-2.33/tcl$ ns-KeLiu wireless-gpsr.tcl
chakraborty@chakraborty-desktop:~/ns-allinone-2.33/ns-2.33$ cd gpsr/
chakraborty@chakraborty-desktop:~/ns-allinone-2.33/ns-2.33/gpsr$ ns-KeLiu wireless-gpsr.tcl
num_nodes is set 200
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
GPSR configuration file
INITIALIZE THE LIST xListHead
Grid info:150 150 15 (10 10)
Segmentation fault (core dumped)
--Examining the code, at 'Grid Info' in context of the tcl scripts, in related files.
Any suggestion, please..?
Quote:
Originally Posted by knudfl
# 162 .
Reasons to supply the <unknown gpsr patch> :
You cannot get any answers for <unknown-software>.
* You don't have to let everybody access the software :
Use the email option http://www.linuxquestions.org/questi...ember&u=386037
-
-iff permitted.
Last edited by Chakraborty; 03-15-2014 at 06:13 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.