Re: [ns] FW: Re: nam: permission denied
thanks tathagata and all who answered effectively I added the path of that directories, but in the wrong form (e.g., path=c:\cygwin\ns-allinone-2.29 instead of path=/ns-allinone-2.29 and similar) now the more difficult task: understand ns ;-) sergio From: tathagata dasgupta [EMAIL PROTECTED] To: Sergio Torassa [EMAIL PROTECTED] Subject: Re: [ns] FW: Re: nam: permission denied Date: Fri, 14 Apr 2006 04:01:54 +0530 You need to add(PATH=$PATH:/..) the absolute paths of the directories that house the binaries for nam and ns to your path variable. for example My PATH variable looks like this /usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11:/usr/games:/bin/:/usr/sbin:/opt/jdk1.5.0_06/bin:/usr/local/ns-2/ns- 2.29:/usr/local/ns-2 I had the same problem like yours and chaging it took care Hope this helps
[ns] FW: Re: installing ns-2.29
Thank you Gilles I followed your guide and the installation succeded However I still have problems installing xgraph This is the log dialog.c: In function `make_msg_box': dialog.c:780: warning: passing arg 2 of `getline' from incompatible pointer type dialog.c:780: error: too few arguments to function `getline' dialog.c: In function `getline': dialog.c:899: error: argument lptr doesn't match prototype /usr/include/sys/stdio.h:31: error: prototype declaration dialog.c:899: error: number of arguments doesn't match prototype /usr/include/sys/stdio.h:31: error: prototype declaration make: *** [dialog.o] Error 1 Can not create xgraph; But xgraph is an optional package, continuing... sergio From: Gilles BERTRAND [EMAIL PROTECTED] To: Sergio Torassa [EMAIL PROTECTED] Subject: Re: [ns] installing ns-2.29 Date: Wed, 12 Apr 2006 18:59:44 +0200 Sergio Torassa a écrit : Hi does anyone have problems installing ns-2.29 on cygwin? I downloaded just today the allinone version and it doesn't complete the installation (it stops at tclcl-1.17) Can someone help? thanks sergio I did not have any problem. I send u an installation guide. The script refered in it is a simple script setting PATH and LD_LIBRARY_PATH as explained at the end of the installation process -- Mit freundlichen Grüßen, with kind regards, cordialement, -- Gilles BERTRAND Institut National des Télécommunications (GET)- Universität Stuttgart Tel: +33 (0) 3 29 63 22 08 --
[ns] FW: Re: nam: permission denied
Thank you for the hint, but I try to use nam as the same user as when I installed it. more strange: if I launch nam form the prompt it runs well. The problem appears only when a tcl script launches it sergio From: Miguel Sepulcre [EMAIL PROTECTED] To: Sergio Torassa [EMAIL PROTECTED] Subject: Re: [ns] nam: permission denied Date: Thu, 13 Apr 2006 18:49:36 +0200 It seems that you do not have execution permisses for nam and it does not have nothing to do with the ns installation. Did you install it as root or as different user? You may have to run nam as root... Hope it helps Miguel - Original Message - From: Sergio Torassa [EMAIL PROTECTED] To: ns-users@ISI.EDU Sent: Thursday, April 13, 2006 6:23 PM Subject: [ns] nam: permission denied Trying to run ns over examples given in ns-allinone-2.29\ns-2.29\ns-tutorial\examples the following error appears $ ./ns ./ns-tutorial/examples/example1b.tcl ns: finish: couldn't execute nam: permission denied while executing exec nam out.nam (procedure finish line 7) invoked from within finish Before launching the example I did the following steps 1) Installed ns-2.29 without errors but in xgraph (couldn't install it) 2) set environment variables and appropriate PATH did I forgot some steps? some hints? sergio __ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com