On 8/28/05 1:59 PM, "Martin Costabel" <[EMAIL PROTECTED]> wrote:

> David Newman wrote:
>> On 8/27/05 8:19 AM, "Peter O'Gorman" <[EMAIL PROTECTED]> wrote:
> []
>>> Okay, as far as I know the required perl libraries are installed by fink, so
>>> try '/sw/bin/init.sh ; gnucash & ' to lauch gnucash, and see if it still
>>> complains.
> 
> This was bad advice (typo I guess). You don't *execute* /sw/bin/init.sh,
> you *source* it.
> 
> Not 'sw/bin/init.sh' but '. /sw/bin/init.sh' or, equivalently and less
> typo-prone, 'source /sw/bin/init.sh'
> 
> The difference is that if you *execute* it, you run it in a subshell and
> so all the environment variables that are set inside the script are lost
> upon return from the script, whereas if you *source* it, you run it in
> the current shell and the environment variables remain set so they can
> contribute to the environment for gnucash. This is what you need.

OK, thanks.

I did not have to perform the extra step of sourcing with Fink 0.7.x under
Panther. There, I also launched gnucash under Apple's X11, and since quote
updates worked, I presume gnucash was getting its PERL5LIB variable.

Is there a way to automate sourcing of init.sh? My .profile file already has
the "test -r .." line adding during installation.

thanks again

dn

>> 
>> 
>> OK, I see the problem. Under the 0.8.0 binay install for Tiger,
>> /sw/bin/init.sh is owned by root:admin and has 0644 permissions. Users can't
>> initialize environment variables because they can't run the init script.
>> 
>> "chmod 0755 /sw/bin/init.sh" fixes this.
> 
> No, 644 is correct.




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to