 |
 |
init.sh
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2000
Location: Northern California
Status:
Offline
|
|
In Panther (10.3.2), whenever I open the Terminal it says:
Welcome to Darwin!
-bash: /sw/bin/init.sh: No such file or directory
and then gives me the normal command prompt, and everything seems to work as normal. I've had no problems with my system but I've been curious about this for a while. Is this normal behavior? (p.s. seems there really is no such directory /sw, or any file init.sh anywhere)
(Last edited by Apfhex; Mar 2, 2004 at 05:13 PM.
)
|
Mac OS X 10.5.0, Mac Pro 2.66GHz/2 GB RAM/X1900 XT, 23" ACD
esdesign
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Status:
Offline
|
|
Blame Fink for that. It has put a line in one of your startup files to call that file. Find that line in your .bashrc, or .profile, or .bash_profile (or whatever your bash users have) and remove it.
-
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Oct 2002
Location: Left Coast
Status:
Offline
|
|
Originally posted by Moonray:
Blame Fink for that. It has put a line in one of your startup files to call that file. Find that line in your .bashrc, or .profile, or .bash_profile (or whatever your bash users have) and remove it.
That's right. But it means that you must have had installed fink at some time in the past, and then removed it. Is that the case? Or maybe you copied some other shell startup file from a system that had fink installed?
If you do have fink installed, maybe you told it to install somewhere other than the default of /sw and somehow that did not get reflected in your shell startup file.
If you do in fact want to use fink, you will need to resolve this, as fink and the things installed via fink won't work correctly if you don't call its init.rc file.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2000
Location: Northern California
Status:
Offline
|
|
Oh! Yes, I think I may have installed Fink at one point, but I have since deleted it. I also have Fink Commander sitting around in my Applications folder.
Yes, that line is in my .profile file. Should I remove the line, or the file altogether (there's nothing else in it)?
|
Mac OS X 10.5.0, Mac Pro 2.66GHz/2 GB RAM/X1900 XT, 23" ACD
esdesign
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Oct 2002
Location: Left Coast
Status:
Offline
|
|
Originally posted by Apfhex:
Oh! Yes, I think I may have installed Fink at one point, but I have since deleted it. I also have Fink Commander sitting around in my Applications folder.
Yes, that line is in my .profile file. Should I remove the line, or the file altogether (there's nothing else in it)?
Either would be fine.
What I did was add some conditional code. That way if I re-install the system and try to open a shell before re-installing fink, or move my init file to another system, it does what it needs only when it needs. Like this:
Code:
if [ -f /sw/bin/init.sh ]; then
/sw/bin/init.sh
fi
edit:
Actually, you may need to source the file, as it may not be executable by default. You just have to add a dot before the path to the init file:
Code:
if [ -f /sw/bin/init.sh ]; then
. /sw/bin/init.sh
fi
(Last edited by JNI; Mar 17, 2004 at 12:04 AM.
)
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|