[ns] problem when installing ns2

2007-09-13 Thread Bin Zhang

hi dear experts,

I am just installing ns-allinone-2.32 package  in kubuntu, following the 
installing instruction, which is decribed in  
http://nsnam.isi.edu/nsnam/index.php/Installing_ns2.31_on_Ubuntu7.04.

The installing process of the package is successful. But in the next 
step, the changing of my environment variance in bashrc file cannot be 
recognized by my system.

Following is the content of the bashrc file:

# This line was appended by KDE
# Make sure our customised gtkrc file is loaded.
export GTK2_RC_FILES=$HOME/.gtkrc-2.0

# LD_LIBRARY_PATH
OTCL_LIB=/data/bzhang/work/ns-allinone-2.31/otcl-1.13
NS2_LIB=/data/bzhang/work/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=/data/bzhang/work/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:/data/bzhang/work/ns-allinone-2.31/tcl8.4.14/unix:/data/bzhang/work/ns-allinone-2.31/tk8.4.14/unix
NS=/data/bzhang/work/ns-allinone-2.31/ns-2.31/
NAM=/data/bzhang/work/ns-allinone-2.31/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM

when I tried to source this file by $ source ~/.bashrc, I got such 
error message from the shell:

[EMAIL PROTECTED]:bzhang/work/ns-allinone-2.32] 109) source ~/.bashrc
export: Command not found.
OTCL_LIB=/data/bzhang/work/ns-allinone-2.31/otcl-1.13: Command not found.
NS2_LIB=/data/bzhang/work/ns-allinone-2.31/lib: Command not found.
X11_LIB=/usr/X11R6/lib: Command not found.
USR_LOCAL_LIB=/usr/local/lib: Command not found.
Bad : modifier in $ ($).

can anyone help me to fix this problem.

Thanks a lot.

B. Zhang





Re: [ns] problem when installing ns2

2007-09-13 Thread Bin Zhang

hi dear experts,

I've found the cause of my problem. It is just a stupid error. I was 
using Yakuake Terminal Program, which supports only tsh. I have only 
recognized it now and changed to bash to execute source ~/.bashrc. 
Besides, I have also forgotten to change the name of the path in bashrc 
file, according to ns-allinone-2.32.

Now there is no problem any more.

B. Zhang


Bin Zhang wrote:
 hi dear experts,

 I am just installing ns-allinone-2.32 package  in kubuntu, following the 
 installing instruction, which is decribed in  
 http://nsnam.isi.edu/nsnam/index.php/Installing_ns2.31_on_Ubuntu7.04.

 The installing process of the package is successful. But in the next 
 step, the changing of my environment variance in bashrc file cannot be 
 recognized by my system.

 Following is the content of the bashrc file:

 # This line was appended by KDE
 # Make sure our customised gtkrc file is loaded.
 export GTK2_RC_FILES=$HOME/.gtkrc-2.0

 # LD_LIBRARY_PATH
 OTCL_LIB=/data/bzhang/work/ns-allinone-2.31/otcl-1.13
 NS2_LIB=/data/bzhang/work/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=/data/bzhang/work/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:/data/bzhang/work/ns-allinone-2.31/tcl8.4.14/unix:/data/bzhang/work/ns-allinone-2.31/tk8.4.14/unix
 NS=/data/bzhang/work/ns-allinone-2.31/ns-2.31/
 NAM=/data/bzhang/work/ns-allinone-2.31/nam-1.13/
 PATH=$PATH:$XGRAPH:$NS:$NAM

 when I tried to source this file by $ source ~/.bashrc, I got such 
 error message from the shell:

 [EMAIL PROTECTED]:bzhang/work/ns-allinone-2.32] 109) source ~/.bashrc
 export: Command not found.
 OTCL_LIB=/data/bzhang/work/ns-allinone-2.31/otcl-1.13: Command not found.
 NS2_LIB=/data/bzhang/work/ns-allinone-2.31/lib: Command not found.
 X11_LIB=/usr/X11R6/lib: Command not found.
 USR_LOCAL_LIB=/usr/local/lib: Command not found.
 Bad : modifier in $ ($).

 can anyone help me to fix this problem.

 Thanks a lot.

 B. Zhang


   



[ns] Problem when installing ns2-allinone over windows XP professional

2006-07-20 Thread Mohammed Alnuem

Hi,



I am using ns2 for 1 year over windows XP home edition and it works fine.
Recently I upgraded to Professional edition of XP. I tried to Install
nn-allinone using Cygwin but I got following error..



checking for net/errno.h... no

checking for connect... yes



...

checking if 64bit Sparc VIS support is reque

checking1 system version (for dynamic loading error near unexpected token
`)'

./configure: line 7068: `   OSF*)'

tcl8.3.2 configuration failed! Exiting ...

Tcl is not part of the ns project.  Please s
to see if they have a fix for your platform.


What is this check -- OSF*) ?

I am not expert in these configuration files. Is there any away to get over
the
problem by changing the code in the configuration file to make it ignore
this check?

Can any one help Please.

Thanks,

Alnuem


Re: [ns] Problem when installing ns2-allinone over windows XPprofessional

2006-07-20 Thread Mohammed Alnuem

Hi,Hailing



Thank you for your replay, I have installed ns-allinone-2.29-3 and

so far so good. the installation went good.



Thanks again,

Alnuem



On 7/20/06, Hai Ling Zhu [EMAIL PROTECTED] wrote:

 Hi, Alnuem

 I met the same problem before. I think you can try ns-allinone-2.29-3
 package.

 Good luck

 Regards, Hailing

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On
 Behalf Of Mohammed Alnuem
 Sent: 20 July 2006 11:21 AM
 To: ns-users@ISI.EDU
 Subject: [ns] Problem when installing ns2-allinone over windows
 XPprofessional


 Hi,



 I am using ns2 for 1 year over windows XP home edition and it works
 fine.
 Recently I upgraded to Professional edition of XP. I tried to Install
 nn-allinone using Cygwin but I got following error..



 checking for net/errno.h... no

 checking for connect... yes

 

 ...

 checking if 64bit Sparc VIS support is reque

 checking1 system version (for dynamic loading error near unexpected
 token
 `)'

 ./configure: line 7068: `   OSF*)'

 tcl8.3.2 configuration failed! Exiting ...

 Tcl is not part of the ns project.  Please s
 to see if they have a fix for your platform.


 What is this check -- OSF*) ?

 I am not expert in these configuration files. Is there any away to get
 over
 the
 problem by changing the code in the configuration file to make it ignore
 this check?

 Can any one help Please.

 Thanks,

 Alnuem