LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Closed Thread
  Search this Thread
Old 02-27-2014, 12:53 AM   #151
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled

Quote:
Originally Posted by knudfl View Post
# 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.

I am going for installation from scratch.
with the help of :
http://ramakrishnamundugar.blogspot....untu-1204.html

At what step I should go for the "export" command.

Awaiting your reply.


Plz tell me
With Thanks.

Last edited by Chakraborty; 02-27-2014 at 12:57 AM.
 
Old 02-27-2014, 03:14 AM   #152
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 151 : Do not quote complete posts. A "one word" reference will do, like #151.
.... * Please edit your posts.

Quote:
The patch was provided by my project guide.
.
.. got the patch from the actual author of GPSR
Well, then please upload the patch to e.g. "Google Drive".


Quote:
I am going for installation .. http://ramakrishnamundugar.blogspot....untu-1204.html
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.

-
 
Old 02-27-2014, 06:00 AM   #153
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
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.

seeking help.

with thanks
 
Old 02-27-2014, 06:20 AM   #154
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 153 .
Quote:
checking whether the C compiler works... no
.
configure: error: C compiler cannot create executables
Still Ubuntu 12.04 ? Then please install the compilers,
post #18 here http://www.linuxquestions.org/questi...022/page2.html


-
 
Old 02-27-2014, 01:32 PM   #155
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 153 .

Still Ubuntu 12.04 ? Then please install the compilers,
post #18 here http://www.linuxquestions.org/questi...022/page2.html


-
chakraborty@chakraborty-desktop:~/ns-allinone-2.33$ cd ..
chakraborty@chakraborty-desktop:~$ sudo dpkg -i gcc41-compat-4.1.2.ubu1204_i386.deb g++41-compat-4.1.2_i386.deb
(Reading database ... 183156 files and directories currently installed.)
Preparing to replace gcc41-compat 4.1.2.ubu1204 (using gcc41-compat-4.1.2.ubu1204_i386.deb) ...
Unpacking replacement gcc41-compat ...
Unpacking g++41-compat (from g++41-compat-4.1.2_i386.deb) ...
dpkg-deb (subprocess): data: internal gzip read error: '<fd:4>: data error'
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing g++41-compat-4.1.2_i386.deb (--install):
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Setting up gcc41-compat (4.1.2.ubu1204) ...
Errors were encountered while processing:
g++41-compat-4.1.2_i386.deb

chakraborty@chakraborty-desktop:~$ cd ns-allinone-2.33/ && export CC=gcc41 CXX=g++41 && ./install

...............
...............
No explicit static compilation flag; setting V_STATIC to ""
checking for dlopen in -ldl... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
rm -f embedded-tcl.cc
./tcl2c++ et_tcl ../lib/tcl8.4/init.tcl ../lib/tcl8.4/history.tcl ../lib/tcl8.4/word.tcl ../lib/tcl8.4/http1.0/http.tcl > embedded-tcl.cc
g++41 -c -DNO_TK -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/home/chakraborty/ns-allinone-2.33/otcl-1.13 -I/home/chakraborty/ns-allinone-2.33/include -I/home/chakraborty/ns-allinone-2.33/include -I/home/chakraborty/ns-allinone-2.33/include -o embedded-tcl.o embedded-tcl.cc
make: g++41: Command not found
make: *** [embedded-tcl.o] Error 127
tclcl-1.19 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

Please suggest a way out.
 
Old 02-27-2014, 02:08 PM   #156
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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 ?

.
 
Old 02-28-2014, 12:17 AM   #157
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 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!

with Thanks.
 
Old 02-28-2014, 01:38 AM   #158
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
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.

Please suggest.
With Thanks
 
Old 02-28-2014, 02:47 AM   #159
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#147, #149, #151, #157 : Edit your posts : That's the 'Edit' button →
Do not quote entire posts.

And : Post #143 : Edit the to use "Code Tags"
* http://www.linuxquestions.org/questi....php?do=bbcode
* http://www.linuxquestions.org/questi...gs-4175464257/

# 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

Also : You can install the Ubuntu package 'gpsr-keliu-ns-2.34-ubuntu10_i386.deb'
https://drive.google.com/file/d/0B7S...it?usp=sharing
And do : $ ns-gpsr-k 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.

-
 
Old 03-02-2014, 02:38 PM   #160
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
#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)

With thanks.
Please reply.
 
Old 03-02-2014, 05:02 PM   #161
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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

-

Last edited by knudfl; 03-02-2014 at 05:46 PM.
 
Old 03-03-2014, 02:56 AM   #162
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 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 View Post
# 160

**** Repeat : You will have to supply the "patch" if you want any more help.


-
I need time and permissions on ethical grounds.
 
Old 03-03-2014, 06:01 AM   #163
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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

-
 
Old 03-03-2014, 11:22 AM   #164
Chakraborty
Member
 
Registered: Jan 2014
Location: India
Distribution: Linux-(Ubuntu 12.04,14.04.02). 32-bit for Research
Posts: 84

Rep: Reputation: Disabled
#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 View Post
# 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.
 
Old 03-03-2014, 11:56 AM   #165
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 164 .
Quote:
Any suggestion, please .. ?
? Any particular reason not to use the proof code for ns-2.34 ?
 
  


Closed Thread

Tags
gdb, gpsr, gpsr-hls, gpsr-keliu, xgraph#195



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
patch for working leach protocol in ns2.34 fedora rajcek Linux - Wireless Networking 4 02-04-2013 06:59 AM
LXer: Tutorial: Border Gateway Protocol, The Routing Protocol of the Internet LXer Syndicated Linux News 0 11-13-2008 05:11 AM
free routing protocol in fedora wahaha Linux - Networking 2 10-26-2006 01:16 AM
RIP(Routing Information protocol) cranium2004 Linux - Networking 2 05-01-2005 06:08 AM
Routing Protocol karunesh Linux - Networking 3 09-04-2002 04:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:04 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