Re: [Fink-users] gnucash quote updates

2005-08-28 Thread Martin Costabel

David Newman wrote:
[]

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


Yes, this is the eternal problem of bad default initialisation of X11 
and default xterms. There are at least 7 different ways of doing this 
correctly, and I think I and others wrote about this a couple of times 
on the lists. I suspect there is also something in the FAQ. #5.15 or so. 
Usually people notice that the PATH variable is not set correctly, but 
it is the same story as for PERL5LIB.


--
Martin



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


Re: [Fink-users] gnucash quote updates

2005-08-28 Thread David Newman



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


Re: [Fink-users] gnucash quote updates

2005-08-28 Thread Martin Costabel

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

--
Martin




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


Re: [Fink-users] gnucash quote updates

2005-08-28 Thread David Newman
On 8/27/05 8:19 AM, "Peter O'Gorman" <[EMAIL PROTECTED]> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> David Newman wrote:
> 
> |>Does the environment in which you run gnucash have the environment variable
> |>PERL5LIB set?
> |
> |
> | Nope, good catch. I'm using Apple's X11. Unlike the system itself, it does
> | not assign the folllowing to the PERL5LIB variable:
> |
> | /sw/lib/perl5:/sw/lib/perl5/darwin
> |
> | I tried setting this manually in X11, then running update-finance-quote as
> | root from within an X11 xterm, then launching gnucash and trying to update
> | quotes again. No joy.
> |
> | So, two questions:
> |
> | 1. How do I set PERL5LIB permanently so fink apps can see it?
> | 2. How to get quote updates working?
> 
> 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.

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.

dn




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


Re: [Fink-users] gnucash quote updates

2005-08-27 Thread David Newman
On 8/27/05 4:57 AM, "Peter O'Gorman" <[EMAIL PROTECTED]> wrote:

> | "You are missing some needed Perl libraries.
> | Run 'update-finance-quote' as root to install them."
> |
> | I successfully run update-finance-quote from a terminal using sudo, but this
> | doesn't help.
> |
> | Thanks in advance for any clues as to how to fix this.
> 
> Does the environment in which you run gnucash have the environment variable
> PERL5LIB set?

Nope, good catch. I'm using Apple's X11. Unlike the system itself, it does
not assign the folllowing to the PERL5LIB variable:

/sw/lib/perl5:/sw/lib/perl5/darwin

I tried setting this manually in X11, then running update-finance-quote as
root from within an X11 xterm, then launching gnucash and trying to update
quotes again. No joy.

So, two questions:

1. How do I set PERL5LIB permanently so fink apps can see it?
2. How to get quote updates working?

thanks!

dn




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


Re: [Fink-users] gnucash quote updates

2005-08-27 Thread Peter O'Gorman

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David Newman wrote:

|>Does the environment in which you run gnucash have the environment variable
|>PERL5LIB set?
|
|
| Nope, good catch. I'm using Apple's X11. Unlike the system itself, it does
| not assign the folllowing to the PERL5LIB variable:
|
| /sw/lib/perl5:/sw/lib/perl5/darwin
|
| I tried setting this manually in X11, then running update-finance-quote as
| root from within an X11 xterm, then launching gnucash and trying to update
| quotes again. No joy.
|
| So, two questions:
|
| 1. How do I set PERL5LIB permanently so fink apps can see it?
| 2. How to get quote updates working?

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.

Peter
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (Darwin)

iQCVAwUBQxCEhbiDAg3OZTLPAQLVVgP+P7BuwiHpvazliabrWc/6ygiQHY39vZBB
dbHxXQnDLEHdZ2HDhWM4GKc79wXyPouwEjUYM7QAKyJiFUtFwoE4Grw9zvyCLlLl
ZIa5ukWPdjkRJgLveXdaMJ3P31EuOufc1pxEG6xE/9IOEvKoksEFyibFPlriyPQJ
nizzjmdWnBY=
=vj9Q
-END PGP SIGNATURE-


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


Re: [Fink-users] gnucash quote updates

2005-08-27 Thread Peter O'Gorman

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David Newman wrote:
| gnucash 1.8.11, fink 0.8.0, OS X 10.4.2
|
| When trying to use "update quotes" feature in price editor, the application
| returns this error:
|
| "You are missing some needed Perl libraries.
| Run 'update-finance-quote' as root to install them."
|
| I successfully run update-finance-quote from a terminal using sudo, but this
| doesn't help.
|
| Thanks in advance for any clues as to how to fix this.

Does the environment in which you run gnucash have the environment variable
PERL5LIB set?

Peter
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (Darwin)

iQCVAwUBQxBVO7iDAg3OZTLPAQLgbQP9H6UlEiRpC8p/JRDZTjSPzM5Cv23RsHz1
ClPjuMoLow0QZBDuJq+ZGOuoBxrSDgOGQPMOH60pDNhMnOBy2FIonb1NUGqQjqJO
02PPubCakCEThT1U8flGjggl0EGnwyM8W4flypEkvqJynQy986yfWrD8235ghxi/
9ojTpUCmdao=
=JzHr
-END PGP SIGNATURE-


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