image
image

|


Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old February 2nd, 2008, 05:03 AM
Registered User
 
Join Date: Feb 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Emkayu is on a distinguished road
a problem with /usr/bin/local/nmap

Hi, i have OS X tiger 10.4.11, and i used terminal to install nmap 4.53, which went well, except everytime i type in nmap and hit enter, it keeps saying nmap unknown command, but if i type the entire directory, i.e. /usr/bin/local/nmap, nmap does run, how can i make it so that all i have to type is nmap? i don't really know terminal well so can someone give me a set off commands i can just enter into terminal please? thanks in advance
3mku
Reply With Quote
  #2  
Old February 2nd, 2008, 09:03 AM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: Ireland
Posts: 241
Thanks: 0
Thanked 0 Times in 0 Posts
macbri is on a distinguished road
Try this:
Code:
echo 'export PATH=$PATH:/usr/bin/local' >> ~/.bash_profile
Then open a new terminal and see if that works.
Reply With Quote
  #3  
Old February 2nd, 2008, 09:59 AM
Registered User
 
Join Date: Feb 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Emkayu is on a distinguished road
erm, nope, it still won;t recognise nmap as a command.
Reply With Quote
  #4  
Old February 2nd, 2008, 10:00 AM
btoneill's Avatar
keeper of the cheese
 
Join Date: Jul 2002
Location: Minneapolis, MN
Posts: 797
Thanks: 0
Thanked 0 Times in 0 Posts
btoneill is on a distinguished road
What shell are you using?

Are you sure you mean /usr/bin/local and not /usr/local/bin?
__________________
UNIX is simple and coherent, but it takes a true genius (or a programmer at any rate) to understand and appreciate its simplicity -- Dennis Ritchie
Reply With Quote
  #5  
Old February 2nd, 2008, 10:33 AM
Registered User
 
Join Date: Feb 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Emkayu is on a distinguished road
yerp, but it's okay, i asked a tech, and he showed me how to use pico and add the path to ~/.bash_profile
Reply With Quote
  #6  
Old February 2nd, 2008, 10:34 AM
Registered User
 
Join Date: Feb 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Emkayu is on a distinguished road
thanks anyway guys
Reply With Quote
Reply

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 05:42 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.