LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ns-2.33 (http://www.linuxquestions.org/questions/linux-newbie-8/ns-2-33-a-940304/)

Riaz Khan 04-17-2012 01:46 PM

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

knudfl 04-17-2012 02:22 PM

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 !

.

Riaz Khan 04-18-2012 01:43 AM

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

knudfl 04-18-2012 02:03 AM

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

knudfl 04-18-2012 02:08 AM

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.

Riaz Khan 04-18-2012 04:41 AM

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

knudfl 04-18-2012 06:25 AM

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

.

Riaz Khan 04-18-2012 12:38 PM

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

Riaz Khan 04-18-2012 12:40 PM

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

knudfl 04-18-2012 02:01 PM

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

.

Riaz Khan 04-18-2012 11:20 PM

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

knudfl 04-18-2012 11:36 PM

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

.

Riaz Khan 04-18-2012 11:48 PM

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

Riaz Khan 04-19-2012 02:15 AM

nam is also not working

knudfl 04-19-2012 03:37 AM

Installing nam : Post # 4 here ...

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


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