LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-03-2012, 12:23 AM   #1
arif.aegan
LQ Newbie
 
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
Intro


HI!!!!
This is arif...
Can anyone help me in installing ns-allinone-2.35 in fedora 14...?
I have the Downloaded file (ns-allinone-2.35.tar.gz) in Desktop..
I Even want to work with XGRAPH...HOPE THIS FORUM WILL HELP ME
 
Old 01-03-2012, 12:52 AM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Hello arif,

STEP 1:

From terminal login as super user and do the following in order to install all the dependencies needed by ns-2:

Quote:
#yum install autoconf
#yum install automake
#yum install gcc-c++
#yum install libX11-devel
#yum install xorg-x11-proto-devel
#yum install libXt-devel
#yum install libXmu-devel
Now you have downloaded ns-allinone-2.35.tar.gz package on your machine, now you have to first extract the files of this package and install it:

STEP 2:

Quote:
# gunzip ns-allinone-2.35.tar.gz
# tar -xvf ns-allinone-2.35.tar
# cd ns-allinone-2.35
# ./install
STEP 3:

Now go to /etc directory and type:

Quote:
#gedit ~/.bashrc

Add the following lines to the end of it. Remember replace /usr/local/ by your installation path like /home/arif.

Code:
# LD_LIBRARY_PATH
    OTCL_LIB=/usr/local/ns-allinone-2.35/otcl-1.12
    NS2_LIB=/usr/local/ns-allinone-2.35/lib
    X11_LIB=/usr/X11R6/lib
    USR_LOCAL_LIB=/usr/local/lib
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

    # TCL_LIBRARY
    TCL_LIB=/usr/local/ns-allinone-2.35/tcl8.4.14/library
    USR_LIB=/usr/lib
    export TCL_LIBRARY=$TCL_LIB:$USR_LIB

    # PATH
    XGRAPH=/usr/local/ns-allinone-2.35/bin:/usr/local/ns-allinone-2.35/tcl8.4.13/unix:/usr/local/ns-allinone-2.35/tk8.4.13/unix
    NS=/usr/local/ns-allinone-2.35/ns-2.35/
    NAM=/usr/local/ns-allinone-2.35/nam-1.12/
    PATH=$PATH:$XGRAPH:$NS:$NAM
Let it take effect immediately

source ~/.bashrc

Note: the step described above is important; otherwise, you cannot run ns successfully.
or you can restart your X windows.i.e. logout and then login, or reboot your system, to make it work.)

Now, the installation has been completed. If you try:
$ ns

Then a “%” will appear on the screen.type “exit” to quit the mode and back to “$”

If you miss out step 1 you may get the following errors:

Code:
Build XGraph-12.1
============================================================
loading cache ./config.cache
checking for a BSD compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking whether make sets ${MAKE}… yes
checking for working aclocal… missing
checking for working autoconf… missing
checking for working automake… missing
checking for working autoheader… missing
checking for working makeinfo… missing
checking if malloc debugging is wanted… no
checking for gcc… no
checking for cc… no
configure: error: no acceptable cc found in $PATH
make: *** No targets specified and no makefile found. Stop.
Can not create xgraph; But xgraph is an optional package, continuing…
If you miss step 3

At the prompt when you type ns you will get:
Ns command not found


Or you can follow this link for some help:
http://www.pradeepkumar.org/2008/11/...r-network.html
 
  


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:30 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