LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setting environmental variables when installing ns2 on fedora 15 (https://www.linuxquestions.org/questions/linux-newbie-8/setting-environmental-variables-when-installing-ns2-on-fedora-15-a-949000/)

Narges 09-05-2012 03:47 AM

I managed to change the permision on ns-allinone-2.29.
but when I type

[narges@localhost ~]$ ns
bash: ns: command not found...
Similar command is: 'nc'

Do I have to apply "make install" in ns-2.29 folder again?
Does that mean that I have to install mobility and wimax module again?

knudfl 09-05-2012 04:27 AM

# 16

If you installed 'ns' to /usr/local/bin/, it should be there.

If you didn't : 1) su
2) cp ns /usr/local/bin/

.

Narges 09-05-2012 04:43 AM

post #17

I installed ns2 with standard procedure.. (tar , cd /ns-allinone-2.29, ./install) and then installed wimax mobility module.
and edited the path in bashrc file.
but I allways used root to perform ns2 commands.
now that I changed the permission, I can not use ns.

[root@localhost narges]# cp ns /usr/local/bin/
cp: cannot stat `ns': No such file or directory

My question is, if i go to ns-2.29 and apply make install now, do I have to install wimax module again after make install? or it will still be there?

knudfl 09-05-2012 04:49 AM

# 18
Quote:

and edited the path in bashrc file.
Not required.
The binary 'ns' is hard coded to know the location of its libraries.


The wimax functions are compiled into the current 'ns'.
If you have done everything the right way.
Tests like 'ns example2.tcl' , 'ns example.tcl' will show.

.

Narges 09-05-2012 04:54 AM

I could get result previously by using root, but now that I changed the permission of ns-allinone-2.29 folder, as unprivileged user, I can not run the scripts and instead I get
bash: ns: command not found...
Similar command is: 'nc'

error.


All times are GMT -5. The time now is 03:06 PM.