LinuxQuestions.org
Help answer threads with 0 replies.
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 03-18-2008, 04:08 AM   #16
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985

ok, how about you actually think for yourself a little... as above you are getting "ns: command not found" and going by the info you showed us that is clearly correct. there is obviously an "NS" program though... have you tried to run that??
 
Old 03-19-2008, 02:09 AM   #17
kazim425
LQ Newbie
 
Registered: Feb 2008
Posts: 4

Rep: Reputation: 0
why you have created so many directories i mean simply copy the ns-allinoe 2.31 patch in your salady directory and un tar it there it will create and a folder there with name ns-allinone 2.31

then simply as super user run ./install from terminal
and follow the steps i have posted just change /your/path as /home/salady
thats all

remove the your current directory and start everything from beginning

still problem again refer me try to copy paste what ever you do and send me through my personal mail kazim425@hotmail.com
 
Old 09-12-2008, 10:10 AM   #18
algabusi
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
i'm also failed to install ns-allinone-2.33 on fedora 8,
i'm following step1&2 and i'm thinking there is not have a problem in my step1&2
ok this is my step 3..
my step 3 gedit ~/.bashrc text is:-

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# User specific aliases and functions

# LD_LIBRARY_PATH
OTCL_LIB=/home/kfaizal/ns-allinone-2.33/otcl-1.13
NS2_LIB=/home/kfaizal/ns-allinone-2.33/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=/home/kfaizal/ns-allinone-2.33/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/kfaizal/ns-allinone-2.33/bin:/home/kfaizal/ns-allinone-2.33/tcl8.4.18/unix:/home/kfaizal/ns-allinone-2.33/tk8.4.18/unix
NS=/home/kfaizal/ns-allinone-2.33/ns-2.33/
NAM=/home/kfaizal/ns-allinone-2.33/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM

is it correct?
after saving the [.bashrc(~) - gedit]
im type [ [kfaizal@localhost etc]$ source ~/.bashrc]
then i'm type [kfaizal@localhost etc]$ ns
and the output is [bash: ns: command not found]
i'm trying too restart and the same output [bash: ns: command not found] i'm get..
i've try the step1,2,3 around 10times and the result still the same..
somebody please help me
 
Old 09-26-2008, 11:37 AM   #19
relikya
LQ Newbie
 
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
i have the same problem, i can not install ns2 on fedora 9, i edit bashrc file, all i can see in this little file is:

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

is it correct?

i appreciate ur answers
 
Old 10-08-2008, 02:16 PM   #20
Nirvana075
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
help

hello sir i am facing the same TCL problem i have made the required changes ..please help

regards,


Quote:
Originally Posted by kazim425 View Post
you can follow these steps in any linux environment

INSTALLING NS-2 ON FEDORA 8

STEP 1

From terminal login as super user and do the following.(internet must also be connected in order to install the package dependencies.

yum install autoconf
yum install automake
yum install gcc-c++
yum install libX11-devel
yum install xorg-x11-proto-devel
yum install libXt-devel
And for nam installation (optional):
yum install libXmu-devel

STEP 2

From terminal go to the folder where the ns-allinone patch is placed and type the following to extract
$ tar -xzf ns-allinone-2.31.tar.gz
$ cd ns-allinone-2.29
$. /install

STEP 3

Now go to /etc folder and type

gedit ~/.bashrc

Add the following lines to the end of it. Remember replace "/your/path" by something like "/home/kazim". And accordingly also change the version numbers. This is for ns 2.31.

# LD_LIBRARY_PATH
OTCL_LIB=/your/path/ns-allinone-2.31/otcl-1.13
NS2_LIB=/your/path/ns-allinone-2.31/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=/your/path/ns-allinone-2.31/tcl8.4.14/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/your/path/ns-allinone-2.31/bin:/your/path/ns-allinone-2.31/tcl8.4.14/unix:/your/path/ns-allinone-2.31/tk8.4.14/unix
NS=/your/path/ns-allinone-2.31/ns-2.31/
NAM=/your/path/ns-allinone-2.31/nam-1.13/
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

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
 
  


Reply

Tags
fedora, install



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
How can I install NS2 ? hoang_it Linux - Software 19 10-14-2009 06:02 AM
How to install NS2 simulator(version 2.29) in Fedora 7. mrbhush General 1 05-06-2009 01:41 AM
Problem in installing NS2 in fedora 5 arunram Linux - Software 6 03-14-2009 07:49 AM
steps to install ns2-2.31 in fedora7 me_linuxkid Linux - Wireless Networking 0 09-26-2007 02:50 AM
a problem about ns2 install !!! blueskyhff Linux - Software 1 07-03-2007 02:11 AM

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

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