LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 09-05-2012, 03:47 AM   #16
Narges
Member
 
Registered: Oct 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled

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?
 
Old 09-05-2012, 04:27 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,622

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
# 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/

.
 
Old 09-05-2012, 04:43 AM   #18
Narges
Member
 
Registered: Oct 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
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?
 
Old 09-05-2012, 04:49 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,622

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
# 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.

.
 
Old 09-05-2012, 04:54 AM   #20
Narges
Member
 
Registered: Oct 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply

Tags
bashrc, ns2, path


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sun Grid Engine: setting environmental variables coenvh Linux - General 0 03-19-2010 05:14 AM
setting environmental variables permanently geetha_sg Slackware 6 08-10-2008 05:14 PM
Setting environment variables for NS2 installation over enterprize linux inamullah Linux - Enterprise 0 07-18-2008 01:01 AM
Setting environmental variables Ninju Linux - Newbie 3 09-25-2007 04:29 PM
Setting environmental variables in mandrake inprogress Linux - Newbie 4 06-07-2003 08:03 AM


All times are GMT -5. The time now is 01:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration