LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to install NS2 on fedora 5 (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-install-ns2-on-fedora-5-a-612860/)

acid_kewpie 03-18-2008 04:08 AM

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??

kazim425 03-19-2008 02:09 AM

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

algabusi 09-12-2008 10:10 AM

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

relikya 09-26-2008 11:37 AM

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

Nirvana075 10-08-2008 02:16 PM

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

regards,


Quote:

Originally Posted by kazim425 (Post 3069928)
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



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