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 > help with fink on 10.4

help with fink on 10.4
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2005
Status: Offline
Reply With Quote
Oct 1, 2005, 07:30 PM
 
Hello all,
I just installed fink on Tiger for the first time and all went well except for getting init.sh to be run when I log in...The pathsetup app that came with fink says everything is set up but it's not...when I try to run gimp in X11 it cannot find it, so obviously the paths weren't set up. If I manually go to /sw/bin and run init.sh then I can use gimp, so I know it's a matter of getting init.sh to run when I open a new terminal window or whatever. I've manually added . /sw/bin/init.sh to both my .login and .bash_profile files and that hasn't fixed it either. I've gone through the help pages on fink.sourceforge.net and found nothing of any use. Any suggestions?
     
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
Oct 2, 2005, 01:46 AM
 
What shells are you running?

Are you sure the shells' rc files are sourcing the correct init files in /sw/bin?

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Fresh-Faced Recruit
Join Date: Oct 2005
Status: Offline
Reply With Quote
Oct 2, 2005, 01:49 AM
 
just bash the Tiger default....
and yes they are sourcing the correct init file... init.sh
(Last edited by p_amadeus; Oct 2, 2005 at 02:03 AM. )
     
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
Oct 2, 2005, 05:08 PM
 
How are you trying to run gimp in X11? Are you opening it from xterm or from a menu item? If you are launching it from a menu item, the command to launch the app has to source init.sh before trying to launch the program.

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Fresh-Faced Recruit
Join Date: Oct 2005
Status: Offline
Reply With Quote
Oct 2, 2005, 05:23 PM
 
menu item...
but i want it to work in terminals too
     
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
Oct 4, 2005, 02:16 AM
 
As I recall there is a bug by which you have to use absolute paths for menu items in the X11 app.

But if your path is set correctly you shouldn't need to do so for launching from terminals.
     
Fresh-Faced Recruit
Join Date: Oct 2005
Status: Offline
Reply With Quote
Oct 4, 2005, 03:25 AM
 
OK, but how can I set the path correctly? I can't get init.sh to be properly run no matter what I try...even if i have to use absolute paths for the menu items that's OK, I just want to be able to type the command into a terminal and have it work too.
     
Junior Member
Join Date: Dec 2000
Location: Arlington, VA - USA
Status: Offline
Reply With Quote
Oct 4, 2005, 07:49 PM
 
For reasons I can't understand the local .profile isn't sourced when you run a new xterm. Here's the workaround I used:

Put:

test -r /sw/bin/init.sh && . /sw/bin/init.sh

in the global bashrc file:
/etc/bashrc

There's probably a 'correct' way to get it to honor the local .profile but since this worked, I never bothered to find it. (you'll have to su or sudo to root to edit it)

Cheers,

rich
     
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
Oct 4, 2005, 09:40 PM
 
Originally Posted by rwhiffen
For reasons I can't understand the local .profile isn't sourced when you run a new xterm. Here's the workaround I used:

Put:

test -r /sw/bin/init.sh && . /sw/bin/init.sh

in the global bashrc file:
/etc/bashrc

There's probably a 'correct' way to get it to honor the local .profile but since this worked, I never bothered to find it. (you'll have to su or sudo to root to edit it)

Cheers,

rich

I don't have problems using tcsh having .tcshrc run automatically when I open an xterm.

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Junior Member
Join Date: Dec 2000
Location: Arlington, VA - USA
Status: Offline
Reply With Quote
Oct 4, 2005, 11:03 PM
 
Don't know what to tell ya. The .profile and .bash_profile aren't referenced when bash is launched via xterm's on a 10.4 default install. Since you're running tcsh you're either not running 10.4 or more likely, you've changed your default shell.

Rich
     
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
Oct 5, 2005, 11:10 PM
 
My .profile works fine with bash in 10.4.2.
     
Junior Member
Join Date: Jan 2003
Status: Offline
Reply With Quote
Oct 15, 2005, 01:50 PM
 
the profile files are run on a login shell, the .bashrc file is run by a non login shell. Add the init line to your .bashrc file and it should work.
     
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
Oct 16, 2005, 06:51 PM
 
.profile is run just fine by my non-login shells as opened by Terminal.app.
     
   
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 03:14 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