 |
 |
help with fink on 10.4
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Oct 2005
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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
|
|
menu item...
but i want it to work in terminals too
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
My .profile works fine with bash in 10.4.2.
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Jan 2003
Status:
Offline
|
|
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
|
|
.profile is run just fine by my non-login shells as opened by Terminal.app.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
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
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|