Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Adding a path to whereis?

Adding a path to whereis?
Thread Tools
Forum Regular
Join Date: Feb 2007
Status: Offline
Reply With Quote
Sep 14, 2007, 09:11 PM
 
Fink users: does anyone know how to add the standard fink binary installation path (/sw/bin/) to the 'whereis' search?
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Sep 14, 2007, 11:00 PM
 
Yeah, you need to add this path to your shell's path environment variable. Do you happen to know what shell you are using? What happens when you do a:

echo $SHELL
     
~bash $  (op)
Forum Regular
Join Date: Feb 2007
Status: Offline
Reply With Quote
Sep 14, 2007, 11:29 PM
 
I'm using bash version 3.2 (binary from fink unstable).

Currently the line:

export PATH=$PATH:/sw/bin/

is already present in my .bashrc.
     
Mac Elite
Join Date: Mar 2002
Status: Offline
Reply With Quote
Sep 15, 2007, 03:27 AM
 
I'm not sure about the order in which the files are called, but if you type or paste the following commands into your Terminal window, that should cover most of the bases.

[codex]cat << EOF >> ~/.profile
PATH=/sw/bin:\$PATH; export PATH
EOF[/codex]

[codex]cat << EOF >> ~/.bashrc
PATH=/sw/bin:\$PATH; export PATH
EOF[/codex]

[codex]cat << EOF >> ~/.bash_profile
PATH=/sw/bin:\$PATH; export PATH
EOF[/codex]

You also should open a new Terminal window afterwards for the settings to be recognised.
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:38 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2