Dear Daisuke Maki,
When I was installing using CPANPLUS, it went off and automatically tried to install Math::BigInt::GMP, and that process failed because I didn't have GMP amongst my libraries. Now, that might be because it was 'recommended' rather than 'optional', or it may be for another reason. I wasn't asked whether to install it - it just went ahead and tried to do so. I'll let you see any settings you need to see if they'll help you.
When you build Perl 5.8.3, could you experiment with disabling your GMP installation (move the library out of its normal position) and see what happens? If Math::BigInt::GMP isn't yours, then maybe we need to report the trouble to the maintainer(s) of M::BI::GMP?
On the logarithmic scale of disasters (1 didn't happen to 10 the universe ended), this registers at 1.2 - not a massive one. But the out-of-box experience is not as enjoyable when you have to go and manually install something to get the automatic install to complete.
--
Jonathan Leffler ([EMAIL PROTECTED])
STSM, Informix Database Engineering, IBM Data Management
4100 Bohannon Drive, Menlo Park, CA 94025
Tel: +1 650-926-6921 Tie-Line: 630-6921
"I don't suffer from insanity; I enjoy every minute of it!"
Daisuke Maki <[EMAIL PROTECTED]>
01/16/2004 03:29 PM | To: Jonathan Leffler/Menlo Park/[EMAIL PROTECTED] cc: datetime <[EMAIL PROTECTED]> Subject: Re: Chinese/Japanese calendars - GMP is a pre-requisite |
Hi, thanks for the feedback!
GMP in itself is not necessary -- it's much faster if you have it,
though. Did it *force* you to install GMP? I thought I put that
requirement in the "recommends" parameter (like this:
http://search.cpan.org/src/DMAKI/DateTime-Util-Calc-0.01/Build.PL).
Perhpas I don't quite understand how Module::Build works... Please let
me know.
From the next release on, I should make sure that GMP is an optional
package, and that Math::BigInt/Math::BigFloat is the bare minimum. After
that I should be able to put some code in Build.PL that probes for GMP.
--d
> I've had an entertaining morning building Perl 5.8.3 and getting
> DateTime::Calendar::Japanese etc installed. Perl 5.8.3 itself was trivial
> - I'm glad to say.
>
> I ran into a bigger problem with DateTime::Calendar::Japanese etc -- they
> need the GMP (GNU Multi-Precision Math) library installed. I didn't have
> it, so I had to build it - twice, because the first time it opted to build
> 64-bit interfaces on a system (Solaris 8) where I still run mainly in
> 32-bit mode. With GMP built and installed, I could get Math::BigInt::GMP
> installed, and hence everything else. That was done first with 5.8.2 and
> then with 5.8.3.
>
> I don't know if there's an effective way for ensuring that a non-Perl
> prerequisite such as the GMP libraries are available. In DBD::Informix, my
> Makefile.PL does a lot of poking around to ensure that the prerequisite
> non-Perl ESQL/C product (library and headers) is both installed and usable
> - basically because I had so many people running into problems when it was
> not because they didn't know it was necessary.
>
> Also, when a test takes a long time, as many of yours do, you very kindly
> output a warning that the test will take a while, but it is really helpful
> to know when the test started, so you can easily determine how long the
> test has taken so far.
>
> So, once I had GMP installed (outside the Perl installation, but where Perl
> expects to find libraries), then the new modules installed OK.
>
> --
> Jonathan Leffler ([EMAIL PROTECTED])
> STSM, Informix Database Engineering, IBM Data Management
> 4100 Bohannon Drive, Menlo Park, CA 94025
> Tel: +1 650-926-6921 Tie-Line: 630-6921
> "I don't suffer from insanity; I enjoy every minute of it!"
>
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
<<inline: pic26071.gif>>
