LinuxQuestions.org
Help answer threads with 0 replies.
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


Reply
  Search this Thread
Old 04-26-2014, 04:46 PM   #1
aidin8790
LQ Newbie
 
Registered: Apr 2014
Posts: 29

Rep: Reputation: Disabled
GPSR in ns2


I am new to ns2 and want to run GPSR in ns2, and I don't know any thing about this.

some links that addressed in posts like "http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch", is unavailable.

may you help me to do my project?

I have download this file https://drive.google.com/file/d/0B7S...it?usp=sharing " , but I can not use it.
with which version of ns2,can I do may project? 2.33 or 2.34?

what is this patch "http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch" and for what we should use it??

Please help me ...

May I ask you to write a complete post from begin to end with all links is need, that somebody like me that is new to ns2 can use it?

Last edited by colucix; 04-26-2014 at 05:34 PM. Reason: Un-linked incomplete link.
 
Old 04-27-2014, 12:45 AM   #2
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
GPSR : There are two versions : GPSR-hls and GPSR-KeLiu.
GPSR-hls : ns-2.33 . GPSR-KeLiu : ns-2.34 .

And you can have as many versions of ns-allinone-2.xx as you want,
installed at the same time.
But do not add any *PATH text to .bashrc. Never required.


GPSR-hls : Build example, post #5 here
http://www.linuxquestions.org/questi...-4175498876/#5
GPSR-KeLiu : #3 http://www.linuxquestions.org/questi...-4175448663/#3
* Both are examples for a contemporary Ubuntu, 32bits (i686).
* Other OS : The compiler may be different.
Ubuntu : The version decides which gcc to use.
* So you will have to specify your OS : a) $ uname -m
b) OS name and version.

GPSR information http://www.linuxquestions.org/questions/tags/gpsr/

-
 
1 members found this post helpful.
Old 04-27-2014, 01:45 AM   #3
aidin8790
LQ Newbie
 
Registered: Apr 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
GPSR : There are two versions : GPSR-hls and GPSR-KeLiu.
GPSR-hls : ns-2.33 . GPSR-KeLiu : ns-2.34 .

And you can have as many versions of ns-allinone-2.xx as you want,
installed at the same time.
But do not add any *PATH text to .bashrc. Never required.


GPSR-hls : Build example, post #5 here
http://www.linuxquestions.org/questi...-4175498876/#5
GPSR-KeLiu : #3 http://www.linuxquestions.org/questi...-4175448663/#3
* Both are examples for a contemporary Ubuntu, 32bits (i686).
* Other OS : The compiler may be different.
Ubuntu : The version decides which gcc to use.
* So you will have to specify your OS : a) $ uname -m
b) OS name and version.

GPSR information http://www.linuxquestions.org/questions/tags/gpsr/

-
thanks for your reply

a) i686
b) My OS is: RedHat.Enterprise.5

what compiler I should use?and how to use that?

what is the difference between file in post 80 and 89?which one should I use it?
 
Old 04-27-2014, 03:30 AM   #4
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
# 3 .
Quote:
a) i686
b) My OS is: RedHat.Enterprise.5

what compiler I should use ? and how to use that ?
# yum install gcc-c++ autoconf automake libtool libXmu-devel
Nam : nam-1.14-fc6.el5.i386.tar.gz
$ cd nam-1.14-fc6.el5.i386./
# cp nam /usr/local/bin/

The build command is : $ ./install
* No "export <?> && ./install" , as the default RHEL5 gcc/g++ already is version 4.1.2.

Post #80 here http://www.linuxquestions.org/questi...526/page6.html
→ Not relevant, please ignore.
Post #89 : `gpsr-keliu-ns-2.34-ubuntu10_i386.deb´ is a binary package,
like any other package you install with yum. Provides /usr/local/bin/ns-gpsr-k.
But : A <package>.deb is for Debian/Ubuntu only. RHEL packages are <name>.rpm .

-
 
1 members found this post helpful.
Old 04-28-2014, 03:00 AM   #5
aidin8790
LQ Newbie
 
Registered: Apr 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 3 .

# yum install gcc-c++ autoconf automake libtool libXmu-devel
Nam : nam-1.14-fc6.el5.i386.tar.gz
$ cd nam-1.14-fc6.el5.i386./
# cp nam /usr/local/bin/

The build command is : $ ./install
* No "export <?> && ./install" , as the default RHEL5 gcc/g++ already is version 4.1.2.

-
excuse me, after that I typed this command " # yum install gcc-c++ autoconf automake libtool libXmu-devel ", I met this result :
http://www.linuxquestions.org/questi...1&d=1398671769

what should I do??

- if it's easier for me to do with Ubuntu , I can change my OS , Is it necessary??
Attached Thumbnails
Click image for larger version

Name:	Screenshot1.jpg
Views:	46
Size:	116.2 KB
ID:	15343  
 
Old 04-28-2014, 04:08 AM   #6
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
# 5 .

If you have no paid for account at Redhat,
you cannot use the commercial RHEL 5 : No packages.

But : It's easy to migrate to the free version, `Redhat CentOS 5´:
http://wiki.centos.org/HowTos/MigrationGuide
→ Go to section "Migration an existing system from RHEL5 to CentOS 5".

-
 
1 members found this post helpful.
Old 04-28-2014, 05:46 AM   #7
aidin8790
LQ Newbie
 
Registered: Apr 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 5 .

If you have no paid for account at Redhat,
you cannot use the commercial RHEL 5 : No packages.

But : It's easy to migrate to the free version, `Redhat CentOS 5´:
http://wiki.centos.org/HowTos/MigrationGuide
→ Go to section "Migration an existing system from RHEL5 to CentOS 5".

-
because of my problems , I installed ubuntu 13.10-i386 and then according to "http://www.linuxquestions.org/questi...-4175448663/#3 and http://www.linuxquestions.org/questi...526/page6.html,#89", I installed NS2-2.34 on this OS.
when I use ns-gpsr-k ..,I saw this error:
http://www.linuxquestions.org/questi...1&d=1398681873

what should do I?

IS "export CC=gcc41 CXX=g++41 && ./install" command appropriate for this version of Ubuntu?
if not what should do I?
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2014-04-28 03^%40^%36.jpg
Views:	55
Size:	96.3 KB
ID:	15345  
 
Old 04-28-2014, 06:35 AM   #8
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
Ubuntu 13.10 - i686, GPSR-KeLiu.

# 7 .

Prerequisites : $ sudo apt-get install \
g++ g++-4.4 autoconf automake libtool make patch libxmu-dev xgraph

$ cd ns-allinone-2.34/
$ tar xvf gpsr-KeLiu-patched-ns234.tar.gz
$ export CC=gcc-4.4 CXX=g++-4.4
$ ./install
$ cd ns-2.34/
$ cp ns ns-gpsr-keliu
$ sudo cp ns-gpsr-keliu /usr/local/bin/
$ cd gpsr/
$ ns-gpsr-keliu wireless-gpsr.tcl

-

Last edited by knudfl; 05-04-2014 at 03:35 AM.
 
1 members found this post helpful.
Old 04-29-2014, 11:03 AM   #9
aidin8790
LQ Newbie
 
Registered: Apr 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 7 .

Prerequisites : $ sudo apt-get install \
g++ g++-4.4 autoconf automake libtool make patch libxmu-dev xgraph

$ cd ns-allinone-2.34/
$ tar xvf gpsr-KeLiu-patched-ns234.tar.gz
$ export CC=gcc-4.4 CXX=g++
$ ./install
$ cd ns-2.34/
$ cp ns ns-gpsr-keliu
$ sudo cp ns-gpsr-keliu
$ cd gpsr/
$ ns-gpsr-keliu wireless-gpsr.tcl

-
Excuse me, when I run "./install" , I met this result:
http://www.linuxquestions.org/questi...1&d=1398786538

Is it correct?

And the next problem is that when I run "cp ns ns-gpsr-keliu" , I met this result:
http://www.linuxquestions.org/questi...1&d=1398787275

I think that there is no "ns" and "ns-gpsr-keliu" file ...

what should do I?
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2014-04-29 08^%41^%52.jpg
Views:	67
Size:	170.8 KB
ID:	15355   Click image for larger version

Name:	2.jpg
Views:	52
Size:	27.8 KB
ID:	15356  
 
Old 04-29-2014, 11:37 AM   #10
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
# 9 .

Please do not quote entire posts. A one word reference will do. (Like "#8".)

Your errors : May be I was lucky at using gcc-4.4 / g++-4.4 ?

You can just use one of the other extra compilers :
gcc41 / g++41, for Ubuntu 12.10 ... 14.04 :
Post #47 here http://www.linuxquestions.org/questi...532/page4.html

.. Then the build commands are :
$ export CC=gcc41 CXX=g++41
$ ./install

-
 
1 members found this post helpful.
Old 04-30-2014, 07:15 AM   #11
aidin8790
LQ Newbie
 
Registered: Apr 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
#10
The result of installing NS after using this files:
a) gcc41-compat*1210 https://docs.google.com/file/d/0B7S2...FQY2VJbjA/edit
b) g++41-compat https://docs.google.com/file/d/0B7S2...jN2M2MGU4/edit


and about this problem that there is no "ns" and "ns-gpsr-keliu" file for this command "cp ns ns-gpsr-keliu ", what should do I?
 
Old 04-30-2014, 08:28 AM   #12
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
# 11 .
Quote:
.. there is no "ns"
No ns-2.34/ns : That's a failed build.

Please read the text when "./install" runs,
and tell where it stops with an error.

-
 
1 members found this post helpful.
Old 05-01-2014, 12:20 AM   #13
aidin8790
LQ Newbie
 
Registered: Apr 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
#12
Excuse me..

It's that result:
http://www.linuxquestions.org/questi...1&d=1398921451
Attached Thumbnails
Click image for larger version

Name:	4.jpg
Views:	54
Size:	154.7 KB
ID:	15380  
 
Old 05-01-2014, 03:36 AM   #14
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
# 13 : Ubuntu 13.10 - i686.

Your errors → → No compiler "gcc41" :
Install the packages, and check that gcc41/g++41 are present →
$ sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb
→ or use the `Package Installer´ to install : Click the package.
... Then reboot, and the new compilers can be checked :
1) $ which gcc41
2) $ which g++41

-
 
1 members found this post helpful.
Old 05-02-2014, 07:13 AM   #15
aidin8790
LQ Newbie
 
Registered: Apr 2014
Posts: 29

Original Poster
Rep: Reputation: Disabled
#14
I installed the gcc41 and g++41 and then start to install with this command "./install" , and this is the result of running it:
http://www.linuxquestions.org/questi...1&d=1399032608

I think that this error is about "otcl" , but there is no "ns" and "ns-gpsr-keliu" file for this command "cp ns ns-gpsr-keliu ".

What should do I?
Attached Thumbnails
Click image for larger version

Name:	5.jpg
Views:	48
Size:	174.2 KB
ID:	15398  

Last edited by aidin8790; 05-02-2014 at 09:59 AM.
 
  


Reply

Tags
gpsr, gpsr-keliu, gpsr-keliu#8, ns2



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
[SOLVED] GPSR on NS2.34 farfattou Linux - Software 17 01-10-2015 08:29 AM
patch GPSR in NS2.34 Mednabil Linux - Wireless Networking 2 12-23-2013 06:24 PM
Code of GPSR for ns2.33 or ns2.35 monikagoyal Linux - Software 31 04-26-2013 12:13 PM

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

All times are GMT -5. The time now is 04:11 PM.

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