LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 05-26-2011, 12:43 AM   #1
Bouki
LQ Newbie
 
Registered: May 2011
Posts: 24

Rep: Reputation: Disabled
Help to install ns2 in suse 11.1


Hello.
I want install the n2 in suse 11.1.
but i dont know how can do it?
which package required and which variables shoud be set!
please help me
 
Old 05-26-2011, 01:51 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
Suse 11.2 had "End of life" two weeks ago.
The older Suse 11.1 may not be supported at all :
No package installs possible ? Anyway, here it is :

# zypper in \
make automake autoconf libtool gcc-c++ gcc41-c++ xorg-x11-libX11-devel
xorg-x11-proto-devel xorg-x11-libXmu-devel xorg-x11-libXext-devel

cd ns-allinone-2.3x/tk8.4.xx/ &&
wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch && cd ../ && ./install

..
 
1 members found this post helpful.
Old 05-26-2011, 02:05 AM   #3
Bouki
LQ Newbie
 
Registered: May 2011
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Suse 11.2 had "End of life" two weeks ago.
The older Suse 11.1 may not be supported at all :
No package installs possible ? Anyway, here it is :

# zypper in \
make automake autoconf libtool gcc-c++ gcc41-c++ xorg-x11-libX11-devel
xorg-x11-proto-devel xorg-x11-libXmu-devel xorg-x11-libXext-devel

cd ns-allinone-2.3x/tk8.4.xx/ &&
wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch && cd ../ && ./install

..
Thx for your help.
but i installed successfully ns2 allinone!
at the end of i saw this massage:

Please put /home/mohammad/Desktop/ns-allinone-2.34/bin:/home/mohammad/Desktop/ns-allinone-2.34/tcl8.4.18/unix:/home/mohammad/Desktop/ns-allinone-2.34/tk8.4.18/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /home/mohammad/Desktop/ns-allinone-2.34/otcl-1.13, /home/mohammad/Desktop/ns-allinone-2.34/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/mohammad/Desktop/ns-allinone-2.34/tcl8.4.18/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.


After these steps, you can now run the ns validation suite with
cd ns-2.34; ./validate

For trouble shooting, please first read ns problems page
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive
for related posts.

now i dont know i can install the ns2 or not?
and after that how can run it?
 
Old 05-26-2011, 02:32 AM   #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
Quote:
(1) You MUST put ...........................
(2) ........
Usually not required. This will do :

cd ns-allinone-2.34/ns-2.34/ ; su ; # make install
cd ../nam-1.14/ ; # make install

... And you get 'ns', 'nam' copied to /usr/local/bin/.

.
 
1 members found this post helpful.
Old 05-26-2011, 02:39 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
I would think the $PATH to this will be needed
seeing as this is built on the desktop

/home/mohammad/Desktop/ns-allinone-2.34
/home/mohammad/Desktop/ns-allinone-2.34/bin
/home/mohammad/Desktop/ns-allinone-2.34/tcl8.4.18/unix
 
Old 05-26-2011, 02:41 AM   #6
Bouki
LQ Newbie
 
Registered: May 2011
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Usually not required. This will do :

cd ns-allinone-2.34/ns-2.34/ ; su ; # make install
cd ../nam-1.14/ ; # make install

... And you get 'ns', 'nam' copied to /usr/local/bin/.

.
THX again
but can you write what i shoud do exatly step by step:
its my first time use suse. and im confused!!!
 
Old 05-26-2011, 02:55 AM   #7
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
Code:
cd Desktop/ns-allinone-2.34/ns-2.34/ && su -c && make install && cd ../nam-1.14/ && make install

A comment to post # 5 : ns and nam are statically compiled,
and will usually not require any LD_LIBRARY_PATH but /usr/lib:/lib/

..
 
1 members found this post helpful.
Old 05-26-2011, 03:28 AM   #8
Bouki
LQ Newbie
 
Registered: May 2011
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Code:
cd Desktop/ns-allinone-2.34/ns-2.34/ && su -c && make install && cd ../nam-1.14/ && make install

A comment to post # 5 : ns and nam are statically compiled,
and will usually not require any LD_LIBRARY_PATH but /usr/lib:/lib/

..
im use it but its not working!
-c recognize as a bad command.

im use ./configure; make clean; make
but i dont know what this command do.
 
Old 05-26-2011, 03:39 AM   #9
Bouki
LQ Newbie
 
Registered: May 2011
Posts: 24

Original Poster
Rep: Reputation: Disabled
i think i must update my invirment.
but i dont know how?

then run ./validate.
If it starts out ok, probably have a good installation.
 
Old 05-26-2011, 05:39 AM   #10
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
Quote:
I'm use ./configure; make clean; make
Why ? ?


Quote:
-c recognize as a bad command
The just do 'su' , ... and enter your root password, an run 'make install'

..
 
1 members found this post helpful.
Old 05-26-2011, 07:21 AM   #11
Bouki
LQ Newbie
 
Registered: May 2011
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Why ? ?



The just do 'su' , ... and enter your root password, an run 'make install'

..
Thank yoou for your attention.
Im do it, at the end i saw this, know what?
http://s2.postimage.org/26hsm22ec/Op...6_16_48_26.jpg
 
Old 05-26-2011, 12:11 PM   #12
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
# 11 : The Open_SUSE_2011_05_26_16_48_26.jpg is not readable.

You can attach a "big image" with the paper clip tool in the Advanced Editor:
.
Attached Thumbnails
Click image for larger version

Name:	paper_clip.jpg
Views:	13
Size:	18.8 KB
ID:	7127  
 
1 members found this post helpful.
Old 05-26-2011, 01:16 PM   #13
Bouki
LQ Newbie
 
Registered: May 2011
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 11 : The Open_SUSE_2011_05_26_16_48_26.jpg is not readable.

You can attach a "big image" with the paper clip tool in the Advanced Editor:
.
ooops!!! sorry about the picture.
im do every thing you said.
i think can install ns.

know, how can i test it?
it means how can run a simple projet?

when i run ns in the terminal i see this:
i installed correct?
Attached Thumbnails
Click image for larger version

Name:	OpenSUSE-2011-05-26-22-45-40.png
Views:	14
Size:	30.2 KB
ID:	7131  
 
Old 05-26-2011, 05:05 PM   #14
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
Seems OK . But don't run 'ns' as root.
All 'ns <file>' commands should be run as "unprivileged user".
Quote:
how can I test it ?
1) You just did with ./validate. ( Alias 'make test'.)

2) Try out some of the 300 examples in ns-allinone-2.34/ns-2.34/tcl/ex/

3) More examples http://www.isi.edu/nsnam/ns/tutorial/
> http://www.isi.edu/nsnam/ns/tutorial/nsscript1.html
>> http://www.isi.edu/nsnam/ns/tutorial.../example1b.tcl :
> 'ns example1b.tcl' : The nam GUI will open : Press the play button.
http://www.isi.edu/nsnam/ns/tutorial/nsscript2.html
>> http://www.isi.edu/nsnam/ns/tutorial...s/example2.tcl
> 'ns example2.tcl' : Nam → Play button.
...... etc. etc.
.

Last edited by knudfl; 05-26-2011 at 05:07 PM.
 
1 members found this post helpful.
Old 05-26-2011, 11:02 PM   #15
Bouki
LQ Newbie
 
Registered: May 2011
Posts: 24

Original Poster
Rep: Reputation: Disabled
ThX dear knudfl.
its very usefull.
and one more question:
do you have anything for sensor network simulation?[COLOR="Silver"]

Last edited by Bouki; 05-26-2011 at 11:13 PM. Reason: Edit
 
  


Reply

Tags
ns2-suse



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
Differences between LEACH results on ns2.1b5 and ns2.35 deepa_2111 Linux - Software 15 05-16-2013 05:53 PM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM
how to install ns2.34 in open suse kranthi933 Linux - Newbie 1 03-26-2010 02:12 AM
ns2-installation in suse 10.1 D.Mariselvam Linux - Software 1 05-23-2007 04:35 PM
ns2.1b7a installation problem on suse 10.0 markiv Linux - Software 2 05-17-2007 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:23 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
Open Source Consulting | Domain Registration