Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Unix&Linux>>How to set environment variables and path in 10.4?

How to set environment variables and path in 10.4?

madisonDave
05-17-2005, 09:16 PM
Hi

I use Fink. Somehow the path to the binaries
/sw/bin

is not being picked up so I need to enter the following commands in that directory:

./fink whatever

How do I set the environment variable (in my .profile?) so I can just type

fink (from any directory)

Thank you for your help

David

hayne
05-17-2005, 09:34 PM
Read question 5.15 in the Fink FAQ:
http://fink.sourceforge.net/faq/index.php?phpLang=en

madisonDave
05-18-2005, 08:06 AM
Thanx for the reply. I am aware of the script that Fink runs. What is the proper syntax for the shell commands to set the Path variable?

Also, if I want to modify the path for my user should that go into the .profile?

Thank you.

David

hayne
05-18-2005, 09:48 AM
Thanx for the reply. I am aware of the script that Fink runs. What is the proper syntax for the shell commands to set the Path variable?
If you had run Fink's script, it should have modified your shell "dot" files to set up the PATH appropriately. The fact that you asked the question in your original post seems to mean that you haven't run Fink's script. You should.
Once you have Fink's 'init' script in your "dot" file (e.g. ~/.profile) you can make use of its convenient 'prepend_path' and 'append_path' commands to add other directories to your PATH.

Also, if I want to modify the path for my user should that go into the .profile?

Yes - if you are using Terminal.
If you are using xterm (in X11), you probably want to put it in .bashrc or possibly .xinitrc


 

TOP

Windows Server Outsell
Unix Signals And C++ E

For more info

Unix Signals And C++ E
Windows Server Outsell
ssh setup for password
Bash script does not w
esc code 
ARD send unix command 
question about binarie
Scanning mail 
Issuing multiple comma
How do I install Linux

News Archive

/etc/hosts? 
Manually Start a Start
mounting missed hard d
Using Netinfo in Singl
darwin/bsd login probl
system_profiler and fi
Send mail from script 
mounting a drive 
OS X disk first aid ha
system.log shows steal

Related stories:

problem installing Fink
pkg-config & PKG_CONFIG_PATH
Applescript: Hide Process
help with installing py-gnome (darwinports)
Mozilla install from dports fails
ssh - don't want to use password
Escaping quotes in Tiger

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics