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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
04-26-2014, 04:46 PM
|
#1
|
LQ Newbie
Registered: Apr 2014
Posts: 29
Rep: 
|
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.
|
|
|
04-27-2014, 12:45 AM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
|
04-27-2014, 01:45 AM
|
#3
|
LQ Newbie
Registered: Apr 2014
Posts: 29
Original Poster
Rep: 
|
Quote:
Originally Posted by knudfl
|
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?
|
|
|
04-27-2014, 03:30 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 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.
|
04-28-2014, 03:00 AM
|
#5
|
LQ Newbie
Registered: Apr 2014
Posts: 29
Original Poster
Rep: 
|
Quote:
Originally Posted by knudfl
# 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??
|
|
|
04-28-2014, 04:08 AM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 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.
|
04-28-2014, 05:46 AM
|
#7
|
LQ Newbie
Registered: Apr 2014
Posts: 29
Original Poster
Rep: 
|
Quote:
Originally Posted by knudfl
# 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?
|
|
|
04-28-2014, 06:35 AM
|
#8
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
|
04-29-2014, 11:03 AM
|
#9
|
LQ Newbie
Registered: Apr 2014
Posts: 29
Original Poster
Rep: 
|
Quote:
Originally Posted by knudfl
# 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?
|
|
|
04-29-2014, 11:37 AM
|
#10
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 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.
|
04-30-2014, 08:28 AM
|
#12
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 11 .
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.
|
05-01-2014, 12:20 AM
|
#13
|
LQ Newbie
Registered: Apr 2014
Posts: 29
Original Poster
Rep: 
|
|
|
|
05-01-2014, 03:36 AM
|
#14
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 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.
|
05-02-2014, 07:13 AM
|
#15
|
LQ Newbie
Registered: Apr 2014
Posts: 29
Original Poster
Rep: 
|
#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?
Last edited by aidin8790; 05-02-2014 at 09:59 AM.
|
|
|
All times are GMT -5. The time now is 10:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|