LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GPSR in ns2 (https://www.linuxquestions.org/questions/linux-software-2/gpsr-in-ns2-4175503088/)

aidin8790 04-26-2014 04:46 PM

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?

knudfl 04-27-2014 12:45 AM

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/

-

aidin8790 04-27-2014 01:45 AM

Quote:

Originally Posted by knudfl (Post 5159916)
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?

knudfl 04-27-2014 03:30 AM

# 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 .

-

aidin8790 04-28-2014 03:00 AM

1 Attachment(s)
Quote:

Originally Posted by knudfl (Post 5159962)
# 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 :mad:

what should I do??

- if it's easier for me to do with Ubuntu , I can change my OS , Is it necessary??

knudfl 04-28-2014 04:08 AM

# 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".

-

aidin8790 04-28-2014 05:46 AM

1 Attachment(s)
Quote:

Originally Posted by knudfl (Post 5160421)
# 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?

knudfl 04-28-2014 06:35 AM

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

-

aidin8790 04-29-2014 11:03 AM

2 Attachment(s)
Quote:

Originally Posted by knudfl (Post 5160468)
# 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?

knudfl 04-29-2014 11:37 AM

# 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

-

aidin8790 04-30-2014 07:15 AM

#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?

knudfl 04-30-2014 08:28 AM

# 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.

-

aidin8790 05-01-2014 12:20 AM

1 Attachment(s)
#12
Excuse me..

It's that result:
http://www.linuxquestions.org/questi...1&d=1398921451

knudfl 05-01-2014 03:36 AM

# 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

-

aidin8790 05-02-2014 07:13 AM

1 Attachment(s)
#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?


All times are GMT -5. The time now is 03:49 PM.