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 > init.sh

init.sh
Thread Tools
Mac Elite
Join Date: Dec 2000
Location: Northern California
Status: Offline
Reply With Quote
Mar 2, 2004, 05:08 PM
 
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
Reply With Quote
Mar 2, 2004, 08:44 PM
 
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.

-
     
JNI
Forum Regular
Join Date: Oct 2002
Location: Left Coast
Status: Offline
Reply With Quote
Mar 2, 2004, 10:08 PM
 
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.
     
Apfhex  (op)
Mac Elite
Join Date: Dec 2000
Location: Northern California
Status: Offline
Reply With Quote
Mar 2, 2004, 11:13 PM
 
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
     
JNI
Forum Regular
Join Date: Oct 2002
Location: Left Coast
Status: Offline
Reply With Quote
Mar 3, 2004, 12:27 AM
 
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. )
     
   
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:59 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