Finance::Quote Install Problem on Mac OSX Mountain Lion

Matt Braunstein matt_braunstein at yahoo.com
Sun Nov 4 06:26:17 EST 2012


OK, so I tried your commands below, but they did not work. I've been upgrading OS's since Snow Leopard, so I decided to do a fresh OS install. I was afraid that there may something specific to my computer that would be causing the issue. I also wanted to make sure anything that may have been lingering was not messing anything else up.

It still gave me the error after the fresh install. But it also mentioned Test::Inter was not found. So I logged onto CPAN and installed this package. Still would not work. Then I deleting the SBECK-* directories. Now I ran the script and had no issues. It now works. I don't know what part of this did the trick, but all is well now. Thank you for your help.



________________________________
 From: John Ralls <jralls at ceridwen.us>
To: Matt Braunstein <matt_braunstein at yahoo.com> 
Cc: John Ralls <jralls at ceridwen.us> 
Sent: Friday, November 2, 2012 6:03 PM
Subject: Re: Finance::Quote Install Problem on Mac OSX Mountain Lion
 

On Nov 2, 2012, at 2:54 PM, Matt Braunstein <matt_braunstein at yahoo.com> wrote:

> From: John Ralls <jralls at ceridwen.us>
> To: schmatt <matt_braunstein at yahoo.com> 
> Cc: gnucash-user at gnucash.org 
> Sent: Friday, November 2, 2012 4:36 PM
> Subject: Re: Finance::Quote Install Problem on Mac OSX Mountain Lion
>> 
>> 
>> On Nov 2, 2012, at 5:44 AM, schmatt <matt_braunstein at yahoo.com> wrote:
>> 
>> > I'm having issues trying to install the finance::quote module. I have
>> > installed Xcode with the command line tools. I run the script via the
>> > command line. I understand there are write permission issues by just running
>> > directly from the .dmg. I get the following output.
>> > 
>> > Going to read '/x/.cpan/Metadata'
>> >  Database was generated on Thu, 01 Nov 2012 07:43:05 GMT
>> > LWP is up to date (6.04).
>> > Running install for module 'Date::Manip'
>> > Running make for S/SB/SBECK/Date-Manip-6.36.tar.gz
>> > Checksum for /x/.cpan/sources/authors/id/S/SB/SBECK/Date-Manip-6.36.tar.gz
>> > ok
>> > Package seems to come without Makefile.PL.
>> >  (The test -f "/x/.cpan/build/SBECK-EQjQt6/Makefile.PL" returned false.)
>> >  Writing one on our own (setting NAME to DateManip)
>> > 
>> >  CPAN.pm: Going to build S/SB/SBECK/Date-Manip-6.36.tar.gz
>> > 
>> > Checking if your kit is complete...
>> > Looks good
>> > Warning: prerequisite Test::Inter 0 not found.
>> > Bareword found where operator expected at ./Makefile.PL line 1, near "30
>> > mtime"
>> >     (Missing operator before mtime?)
>> > Number found where operator expected at ./Makefile.PL line 2, near "30"
>> >     (Missing semicolon on previous line?)
>> > Bareword found where operator expected at ./Makefile.PL line 2, near "30
>> > atime"
>> >     (Missing operator before atime?)
>> > Number found where operator expected at ./Makefile.PL line 3, near "30"
>> >     (Missing semicolon on previous line?)
>> > Bareword found where operator expected at ./Makefile.PL line 3, near "30
>> > ctime"
>> >     (Missing operator before ctime?)
>> > ERROR from evaluation of
>> > /x/.cpan/build/SBECK-EQjQt6/Date-Manip-6.36/Makefile.PL: ERROR from
>> > evaluation of
>> > /x/.cpan/build/SBECK-EQjQt6/Date-Manip-6.36/PaxHeaders.11917/Makefile.PL:
>> > syntax error at ./Makefile.PL line 1, near "30 mtime"
>> > Warning: No success on command[/usr/bin/perl Makefile.PL]
>> > 'YAML' not installed, will not store persistent state
>> >  SBECK/Date-Manip-6.36.tar.gz
>> >  /usr/bin/perl Makefile.PL -- NOT OK
>> > Running make test
>> >  Make had some problems, won't test
>> > Running make install
>> >  Make had some problems, won't install
>> > HTML::Parser is up to date (3.69).
>> > HTML::TableExtract is up to date (2.11).
>> > Crypt::SSLeay is up to date (0.64).
>> > Finance::Quote is up to date (1.18).
>> > 
>> > Any help with why this will not install properly would be appreciated. I've
>> > never had a problem prior to upgrading to mountain lion.
>> 
>> Looks to me like the author of Date::Manip made a bad Makefile.PL. It looks like you're updating, and that you have an otherwise current installation. Is F::Q failing to run?
>> 
>> Regards,
>> John Ralls
> 
> Yes, the finance::quote module stopped working once I upgraded to Mountain Lion. I realized that I needed to re-install Xcode, because of the upgrade. Ever since then, I have been having this problem when I tried to update the finance::quote module.
> 

Please CC the list on all replies, using "Reply All" (the double-arrow thing).

I had a look at the package and found that the problem can be fixed pretty easily:

cd ~/.cpan/build/SBECK-DklzIi/Date-Manip-6.36
sudo rm PaxHeaders.11917/Makefile.PL 
perl Makefile.PL
make
sudo make install

I've filed a bug on CPAN.

Regards,
John Ralls


More information about the gnucash-user mailing list