If you're using bash, then the problem is simply quotes placement. The
line you want in ~/.profile is:
export PATH="$PATH:/opt/local/bin"
And not:
"export PATH=$PATH:/opt/local/bin"
Get it? I guess for tcsh the problem is similar, you want the opening
double quote just after the = sign, but I'm no tcsh user. Hope that
helps.
Regards,...
Juan
PS: Don't forget to rehash, source or just open a new shell after you
edit the docs!
On Feb 29, 2004, at 3:53 AM, Maurice Ling wrote:
Hi,
I've just installed darwinports and had tried to install "yum".
However, yum was installed into /opt/local/bin and although the line
"export PATH=$PATH:/opt/local/bin" is in ~/.profile
and
"set path=($path /opt/local/bin)" is in ~/.cshrc
i have to go to /opt/local/bin and type "./yum" to use it. Is there
anything wrong?
Thanks
Maurice
|