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.
|
 |
08-27-2009, 08:54 AM
|
#1
|
LQ Newbie
Registered: Aug 2009
Posts: 7
Rep:
|
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.
|
|
|
08-27-2009, 11:04 AM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
|
|
|
08-29-2009, 05:49 AM
|
#3
|
LQ Newbie
Registered: Aug 2009
Posts: 7
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
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
|
|
|
08-29-2009, 03:01 PM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
'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.
|
|
|
08-30-2009, 10:12 AM
|
#5
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
'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.
|
|
|
08-31-2009, 03:59 AM
|
#6
|
LQ Newbie
Registered: Aug 2009
Posts: 7
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
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.
|
|
|
08-31-2009, 04:05 AM
|
#7
|
LQ Newbie
Registered: Aug 2009
Posts: 7
Original Poster
Rep:
|
Quote:
Originally Posted by knudfl
'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
|
|
|
08-31-2009, 05:29 AM
|
#8
|
LQ Newbie
Registered: Aug 2009
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
08-31-2009, 09:33 AM
|
#9
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
"..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.
|
|
|
09-01-2009, 07:32 AM
|
#10
|
LQ Newbie
Registered: Aug 2009
Posts: 7
Original Poster
Rep:
|
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
|
|
|
09-01-2009, 08:04 AM
|
#11
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
'ns-allinone-2.33' : There is no real install.
Hence 'allinone'.
Delete the folder, and everything is gone.
Where do you write 'export' ?
.....
|
|
|
09-02-2009, 04:44 PM
|
#12
|
LQ Newbie
Registered: Aug 2009
Posts: 7
Original Poster
Rep:
|
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!!!
|
|
|
09-03-2009, 08:02 AM
|
#13
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
|
|
|
All times are GMT -5. The time now is 02:06 AM.
|
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
|
|