tiaa-cref quotes stopped working October 6

David Reiser dbreiser at earthlink.net
Sun Jan 2 15:59:07 EST 2011


On Jan 1, 2011, at 9:32 PM, Richard Nelson wrote:

> David,
> 
> Thanks for sending the patch. I installed it where I found the old one, /opt/local/lib/perl5/site_perl/5.8.9/Finance/Quote, but no joy and it got me thinking about what version of perl I'm running. version --perl gets me 5.8.9, but I know that I've seen some stuff about 5.10.0 in there and I guess I wouldn't be surprised to see 5.8.8 too. A little digging found advice to reload Xcode which I did with a restart and still no help. 
> 
> So I know that F::Q is running because I get quotes for everything except tiaacref. This makes me think that I've got the patch in the wrong place but spotlight can't find any other instance of tiaacref.pm on my machine. I searched for Quote.pm just in case I had two perls and found it right where expected, and also the only one on the computer. Sorry to be a noob here, but I am stuck. 
> 
> Richard


If you're using system 10.6 and have a perl in /opt/local (Macports?), then you have at least 3 perl installations. OS X 10.6 comes with both 5.10.0 and 5.8.9.

Spotlight does not index info in the System folders. The perl libraries that Apple supplies are in 
/System/Library/Perl/5.x.y
/Library/Perl/5.x.y or
/System/Library/Perl/Extras/5.x.y

Some perl module updates will work by default on the System perl, so you do have to be careful when using someone else's scripts for updating anything perl. If I'm reading the scripts correctly, the downloadable .dmg for gnucash on a Mac does update the default system Perl for Finance-Quote.

I'd recommend the following commands entered in a terminal window

find /System -iname tiaacref.pm
find /opt -iname tiaacref.pm

to find other possible finance-quote locations. I'm pretty sure that perl is case sensitive, even if the mac system isn't. The perl 'find' command is definitely case sensitive. The standard name for the file is Tiaacref.pm. -iname is a case insensitive search in order to find accidentally mis-cased file names.

If you find multiple copies of the Tiaacref.pm file, I'd recommend replacing all of them with the modified version. Eventually you'll want to figure out which perl your gnucash application is using so you don't have to do this over again in the future.

Dave
--
David Reiser
dbreiser at earthlink.net






More information about the gnucash-user mailing list