LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-27-2009, 08:54 AM   #1
xwz
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Rep: Reputation: 0
installation of ns-allinone-2.33 on fedora 11


Hello,

I' m beginner in NS and linux and i want to have some suggestions to install ns-allinone-2.33 on fedora 11

Thanks in advance

Last edited by xwz; 08-31-2009 at 05:35 AM.
 
Old 08-27-2009, 11:04 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
Welcome to LQ.

Ns2 , Fedora 11 :
1) su , password
2) yum install libX11-devel libXext-devel libXau-devel libXmu-devel
3) exit
4) tar xvf ns-allinone-2.33.tar.gz
5) cd ns-allinone-2.33/
6) ./install
7) Please follow the instructions, ending the "install" text :
"IMPORTANT NOTICES: (1) .. (2) .. "
8) cd ns-2.33/
9) ./validate
.....
Good luck !
.....

Last edited by knudfl; 08-30-2009 at 10:34 AM.
 
Old 08-29-2009, 05:49 AM   #3
xwz
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

Ns2 , Fedora 11 :
1) su , password
2) yum install libX11-devel libXext-devel libXau-devel libXmu-devel
3) exit
4) tar xvf ns-allinone-2.33.tar.gz
5) cd ns-allinone-2.33/
6) ./install
7) Please follow the instructions, ending the "install" text :
"IMPORTANT NOTICES: (1) .. (2) .. "
8) ./validate
.....
Good luck !
.....
Hi!

thanks for your response
but after ./validate this message appears:

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-red
to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME


Could you plz explain to me what means and what i must do

thanks
 
Old 08-29-2009, 03:01 PM   #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
'cd ns-allinone-2.33/ns-2.33/'
./validate
Quote:
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: all tests passed
... Warnings are not errors, just information.

Much worse than a few errors at validatation is, that 'nam' isn't working
in my Fedora 11.
EDIT :
http://www.linuxquestions.org/questi...31-a-801695/#3
...............About the patch 'tk-8.4-lastevent.patch'


Please just try : cd nam-1.13/ and ./nam , and nam will open ? Or ?

I used an OK 'nam' copy from another system to make ns / nam work with
the usual starter examples : e.g. 'ns example1b.tcl' ......
http://www.cs.wm.edu/~njschm/research/NS2_Examples.html
http://www.isi.edu/nsnam/ns/tutorial/ns.html
http://www.isi.edu/nsnam/ns/tutorial/nsscript1.html
.....

Last edited by knudfl; 04-19-2010 at 02:06 AM.
 
Old 08-30-2009, 10:12 AM   #5
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
'ns-allinone-2.34' seems to be the choice for Fedora 11.

If you have to use version 2.33, suggest :
Use the 'nam' binary from version 2.34
.. works perfect with 2.33.

.....
'ns-allinone-2.34' :
validate overall report: all tests passed.
.....

Last edited by knudfl; 08-30-2009 at 11:17 AM.
 
Old 08-31-2009, 03:59 AM   #6
xwz
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post

Please just try : cd nam-1.13/ and ./nam , and nam will open ? Or ?


.....
but when i try cd nam-1.13 it returns to me
bash: cd: nam-1.13/: Aucun fichier ou dossier de ce type

i.e this folder does'nt exist
what sould I do then?
thanks

Last edited by xwz; 08-31-2009 at 04:01 AM.
 
Old 08-31-2009, 04:05 AM   #7
xwz
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
'ns-allinone-2.34' seems to be the choice for Fedora 11.

If you have to use version 2.33, suggest :
Use the 'nam' binary from version 2.34
.. works perfect with 2.33.

.....
'ns-allinone-2.34' :
validate overall report: all tests passed.
.....
I'm sorry I'm beginner in linux and NS how can I add nam2.34
could you please give me detailed instructions

thanks
 
Old 08-31-2009, 05:29 AM   #8
xwz
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Hi,

I want to check if I had written successfully the environnement variables
----------------------------------------------------------------------
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/xwz/Bureau/ns-allinone-2.33/otcl-1.13:/home/xwz/Bureau/ns-allinone-2.33/lib

TCL_LIBRARY=$TCL_LIBRARY:/home/xwz/Bureau/ns-allinone-2.33/tcl8.4.18/library:/home/xwz/Bureau/ns-allinone-2.33/tcl8.4.18/library
----------------------------------------------------------------------
is it ok??, please
thanks
__________________________________________________________________________
P.S.:
important notices (1) et (2)
(1) You MUST put /home/xwz/Bureau/ns-allinone-2.33/otcl-1.13, /home/xwz/Bureau/ns-allinone-2.33/lib,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
into LD_LIBRARY_PATH.
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>

(2) You MUST put /home/xwz/Bureau/ns-allinone-2.33/tcl8.4.18/library into your TCL_LIBRARY environmental
_____________________________________________________________________

Last edited by xwz; 08-31-2009 at 05:31 AM.
 
Old 08-31-2009, 09:33 AM   #9
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
"..check if I had written successfully the environnement variables"

Probably : depends, where you wrote it.
If everything works, it's OK.

(export) LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/......
means : all library path's ... and if /lib:usr/lib
are left out, certain things may not work.

(export) LD_LIBRARY_PATH=/home/......
means : an additional library path.
.....
.....
cd Bureau/ns-allinone-2.33/ns-2.33/
./ns
... and ' % ' is displayed, if OK.
exit
cd Bureau/ns-allinone-2.33/nam-1.13/
./nam
... the "Nam Console.." will open, if nam is OK.
If you have problems with nam or anything else,
then please use 'ns-allinone-2.34' instead.
.....

Last edited by knudfl; 08-31-2009 at 09:34 AM.
 
Old 09-01-2009, 07:32 AM   #10
xwz
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Hi,

I'm going to install ns2.34 but before i want to desinstall ns2.33
could you please say to me how can i desinstall ns2.33

and another question please is it necessary to write "export" while setting enviroment variables because when i write it it didn't works

thanks in advance
 
Old 09-01-2009, 08:04 AM   #11
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
'ns-allinone-2.33' : There is no real install.
Hence 'allinone'.
Delete the folder, and everything is gone.

Where do you write 'export' ?

.....
 
Old 09-02-2009, 04:44 PM   #12
xwz
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Hello,

I have tryed to install ns2.34 on fedora 11 but there is the same problem "ns command not found"

I have followed these steps:


1) su , password
2) yum install libX11-devel libXext-devel libXau-devel libXmu-devel
3) exit
4) tar xvf ns-allinone-2.34.tar.gz
5) cd ns-allinone-2.34
6) ./install
7) "IMPORTANT NOTICES: (1) .. (2) .. "

To set enviroment variables, I have done like this

cd /etc
gedit ~/.bashrc

then I have added these lines on the file .bshrc

# LD_LIBRARY_PATH
OTCL_LIB=/home/Myname/ns-allinone-2.34/otcl-1.13
NS2_LIB=/home/Myname/ns-allinone-2.34/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB

# TCL_LIBRARY
TCL_LIB=/home/Myname/ns-allinone-2.34/tcl8.4.18/library
export TCL_LIBRARY=$TCL_LIB

# PATH
XGRAPH=/home/Myname/ns-allinone-2.34/bin:/home/Myname/ns-allinone-2.34/tcl8.4.18/unix:/home/Myname/ns-allinone-2.34/tk8.4.18/unix
NS=/home/Myname/ns-allinone-2.34/ns-2.34/
NAM=/home/Myname/ns-allinone-2.34/nam-1.14/
PATH=$PATH:$XGRAPH:$NS:$NAM


after that I saved the .bshrc file and I closed it

after I returned to the terminal and I have typed source ~/.bashrc to save changes


8) cd ns-2.34/
9) ./validate

after ./ validate this message appears:

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-red
to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME



Then when I have tryed

cd Myname/ns-allinone-2.34/ns-2.34/
./ns


' % ' is displayed

and when I tryed
cd Myname/ns-allinone-2.34/nam-1.14/
./nam


the "Nam Console was opened, so nam is OK.

and when I tryed the echo command it return

[Myname@localhost ~]$ echo LD_LIBRARY_PATH
LD_LIBRARY_PATH
[Myname@localhost ~]$ echo TCL_LIBRARY
TCL_LIBRARY
[Myname@localhost ~]$ echo PATH
PATH


I could'nt understand from what the problem?


Could you please explain me what is the problem?



Thanks a lot for your help!!!
 
Old 09-03-2009, 08:02 AM   #13
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
Well, there are two set of PATH's.
1) PATH
.. for binary path search
.. please try out the command : echo $PATH

2) LD_LIBRARY_PATH
.. = search path for libraries.
.. "display path" command : env | grep PATH

2a) export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/<some-path>
.. will exclude other library path's.
If used, all required path's must be included :
:/lib:/usr/lib etc. etc.

2b) export LD_LIBRARY_PATH=/<some-path>
.. is an additional library path.

.....

To use 'ns' : cd Bureau/ns-allinone-2.34/ns-2.34/
./ns
.. then the path to nam may be missing ...
exit
cd Bureau/ns-allinone-2.34/
ln -s nam-1.14/ nam-1
.....

Or to avoid all problems with all path's :
The main components can be installed to a system path ...

cd Bureau/ns-allinone-2.34/tcl8.4.18/unix
./configure --prefix=/usr --enable-shared
make
su
make install
exit
cd Bureau/ns-allinone-2.34/tk8.4.18/unix
.. same as for tcl8.4.18 ..
exit
exit
cd Bureau/ns-allinone-2.34/otcl-1.13/
./configure --enable-shared
make
su
make install
cp libotcl.so /usr/lib/
cd ../tclcl-1.19/
make install
cd ../ns-2.34/
make install
cd ../nam-1.14
make install
exit
.. then you have a system library path ( /usr/lib/ )
.. and the path for binaries are /usr/bin and /usr/local/bin
.....

Last edited by knudfl; 09-12-2009 at 05:00 AM.
 
  


Reply

Tags
nam



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
ns-allinone-2.34 shaifulaziz Linux - Newbie 3 03-24-2011 03:37 PM
NS2 2.33 allinone on Ubuntu Liz Mwaniki Linux - Newbie 1 01-26-2009 04:24 AM
Installation problem -cmu-extendedns-1.2.2 in ns-allinone-2.31 Anithagec Linux - Networking 0 09-25-2008 06:00 AM
ns-allinone-2.31 question m.alnaas Linux - Newbie 5 07-22-2008 02:17 PM
I am getting problem in nam-1.11 while installing ns-allinone-2.29 on fedora core 5 deodutta Linux - General 0 02-03-2007 10:38 PM

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

All times are GMT -5. The time now is 05:22 AM.

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