LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 04-17-2012, 02:46 PM   #1
Riaz Khan
Member
 
Registered: Apr 2012
Posts: 34
Blog Entries: 2

Rep: Reputation: Disabled
ns-2.33


helo,
i want to know that can i install ns-2.33 on fedora 14. i tried it but when i run ./install yhen it gives me an error "make failed". actually i am doing my work on MOBILITY SUPPORTING SCHEMES (MIPV6, HMIPV6, FHMIPV6, FHMIPV6 AND PMIPV6) and for these techniques i need to install MOBIWAN patch. i found that patch but that is for ns-2.33. please suggest me which ns2 version i have to use in order to simulate these techniques and suggest me all the dependencies for these techniques.....


thanks in anticipation
 
Old 04-17-2012, 03:22 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Welcome to LQ. .. ..

Fedora : # yum install \
gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel

cd ns-allinone-2.33/ && export CC=gcc34 CXX=g++34 && ./install


Mobiwan : LQ Search >>> Keyword = mobiwan

Good luck !

.

Last edited by knudfl; 04-17-2012 at 03:24 PM.
 
Old 04-18-2012, 02:43 AM   #3
Riaz Khan
Member
 
Registered: Apr 2012
Posts: 34
Blog Entries: 2

Original Poster
Rep: Reputation: Disabled
thank u sir ...i did whatever u said but after setting the paths and environmental variable as below:

PATH=/home/riaz/new_project/ns-allinone-2.33/bin:/home/riaz/new_project/ns-allinone-2.33/tcl8.4.18/unix:/home/riaz/new_project/ns-allinone-2.33/tk8.4.18/unix
LD_LIBRARY_PATH=/home/riaz/new_project/ns-allinone-2.33/otcl-1.13,/home/riaz/new_project/ns-allinone-2.33/lib,
export LD_LIBRARY_PATH=/home/riaz/new_project/ns-allinone-2.33/otcl-1.13,/home/riaz/new_project/ns-allinone-2.33/lib,
TCL_LIBRARY=/home/riaz/new_project/ns-allinone-2.33/tcl8.4.18/library


then i typed cd ns-2.33
and ./validate

it showed an error :

All test output agrees with reference output.
./validate: line 114: date: command not found
./validate: line 115: sleep: command not found
./validate: line 112: date: command not found
*** ./test-all-wireless-tdma
./test-all-template1: line 45: awk: command not found
Tests:
All test output agrees with reference output.
./validate: line 114: date: command not found
./validate: line 115: sleep: command not found
./validate: line 112: date: command not found
*** ./test-all-satellite
./test-all-template1: line 45: awk: command not found
Tests:
All test output agrees with reference output.
./validate: line 114: date: command not found
./validate: line 115: sleep: command not found
These messages are NOT errors and can be ignored:
warning: using backward compatibility mode
This test is not implemented in backward compatibility mode


validate overall report: some portable tests failed:
./test-all-xcp
to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME
[riaz@riaz ns-2.33]$


please suggest me now what to do....
thanx in anticipation
 
Old 04-18-2012, 03:03 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Looks like some system packages were removed from your OS ?

# yum install coreutils gawk


If the installed system commands somehow were corrupted or deleted
otherwise than with a package uninstall :

# yum reinstall coreutils gawk
 
Old 04-18-2012, 03:08 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Quote:
validate overall report: some portable tests failed:
./test-all-xcp
Actually this is a rather perfect result.
Probably no reason to run ./validate again, or other tests.
 
Old 04-18-2012, 05:41 AM   #6
Riaz Khan
Member
 
Registered: Apr 2012
Posts: 34
Blog Entries: 2

Original Poster
Rep: Reputation: Disabled
ok,,,,if it is installed correctly but it did not install xgraph. it showed an error for xgraph : "no such directory is found"
tell me how to install it seperately.

another problem is i want to patch mobiwan with ns-2.33. i put the patch in the ns-allinone-2.33 directory and went to the same path and run the command : "patch -p1 < ns-233-mobiwan-1" but it also gave an error :


[riaz@riaz ns-2.33]$ cd /home/riaz/new_project/ns-allinone-2.33
[riaz@riaz ns-allinone-2.33]$ "patch -p1 < ns-233-mobiwan-1"
Command not found. Install package 'patch' to provide command 'patch'? [N/y]
* Running.. The transaction failed: all-packages-already-installed, The packages are already all installed


please tell me how to patch mobiwan and how to check wheter ns-2.33 installed correctly
 
Old 04-18-2012, 07:25 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
# 6

Patch : # yum install patch
.. And may be read here about a new text in /etc/yum.repos.d/fedora.repo
http://www.linuxquestions.org/questi...rror-940221/#5 > post #5


Xgraph : post # 7 in the above link.

.
 
Old 04-18-2012, 01:38 PM   #8
Riaz Khan
Member
 
Registered: Apr 2012
Posts: 34
Blog Entries: 2

Original Poster
Rep: Reputation: Disabled
thanks for your reply,,,,, i followed the links you mentioned above but still unable to patch mobiwan with ns-2.33 and could not install the xgraph as well. can you please write the whole method here. also tell me how to uninstall the other installed version of ns2 from the system. its my request please tell me how to patch mobiwan.....thanks in anticipation
 
Old 04-18-2012, 01:40 PM   #9
Riaz Khan
Member
 
Registered: Apr 2012
Posts: 34
Blog Entries: 2

Original Poster
Rep: Reputation: Disabled
i run the code below in my ROOT


Code:

[fedora14]
name=Fedora14-i386
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/14/Everything/i386/os/
enabled=1
gpgcheck=1

[fc14-updates]
name=Fedora14-updates-i386
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/14/i386/
enabled=1
gpgcheck=1

tell me what it does
 
Old 04-18-2012, 03:01 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
# 9.

The commands to edit "fedora.repo" :

1) su -
..... I.e. : su <space> <hyphen>

2) cd /etc/yum.repos.d/
3) mkdir backup
4) mv fedora-updates.repo backup/
5) mv fedora-updates-testing.repo backup/
6) gedit fedora.repo

... And then replace all the text with the "new repo text".
( The "Code" you show in post # 9.)

.

Last edited by knudfl; 04-18-2012 at 03:17 PM.
 
Old 04-19-2012, 12:20 AM   #11
Riaz Khan
Member
 
Registered: Apr 2012
Posts: 34
Blog Entries: 2

Original Poster
Rep: Reputation: Disabled
thanks for your reply.
Now please tel me how to uninstall the already installed version of ns2.
Also guide me to install xgraph and to patch mobiwan with ns2.33
thanks again for your support
 
Old 04-19-2012, 12:36 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
#11
Quote:
.. please tell me how to uninstall the already installed version of ns2
Why ? You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But do not any of them to a *PATH.

The only thing to delete : any entries you made to
the hidden file /home/<name>/.bashrc


An unwanted version of ns-allinone-2.xx/ :
There is no uninstall. Just delete the folder.

.
 
Old 04-19-2012, 12:48 AM   #13
Riaz Khan
Member
 
Registered: Apr 2012
Posts: 34
Blog Entries: 2

Original Poster
Rep: Reputation: Disabled
thanks
now how can i install xgraph seperatly, i followed the link you provided ,downloaded it along with debian...patch but then couldnot understand where to keep these files and where to run which command.



also ns-2.32 was already installed on my system and now i have installed ns-2.33 . now how can i come to know that the terminal i am using is of the ns-2.33 or ns-2.32. please help

Last edited by Riaz Khan; 04-19-2012 at 01:57 AM.
 
Old 04-19-2012, 03:15 AM   #14
Riaz Khan
Member
 
Registered: Apr 2012
Posts: 34
Blog Entries: 2

Original Poster
Rep: Reputation: Disabled
nam is also not working
 
Old 04-19-2012, 04:37 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Installing nam : Post # 4 here ...

http://www.linuxquestions.org/questi...10-a-840509/#4
 
  


Reply

Tags
fhmip, mobiwan, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



All times are GMT -5. The time now is 05:20 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration