This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 02 Jun 2009 13:07:49 +0100
- Subject: Re: Trying to install CPAN Math::GMP. Can libgmp3 provide -libgmp?
- References: <23830861.post@talk.nabble.com>
Marc Girod wrote:
> Trying to install the perl CPAN package Math::GMP (as a requisite for
> Net::SSH::Perl).
> I am on cygwin 1.7, and do have:
>
> 2009> cygcheck -c libgmp3
> Cygwin Package Information
> Package Version Status
> libgmp3 4.3.1-1 OK
> 2009> cygcheck -l libgmp3
> /usr/bin/cyggmp-3.dll
> /usr/bin/cygmp-3.dll
>
> However, the Makefile.PL has:
>
> 'LIBS' => ['-lgmp'],
>
> and will refuse to consider the dlls above.
> I tried '-lgmp-3' to no avail.
>
> Is there syntactic sugar to fulfill the expectations?
You need to install the related libgmp-devel package, which contains the
libgmp.dll.a import library in /usr/lib, and the build will then link against
that - avoiding any concern about a version number - instead of trying to link
directly against the DLL as a fallback, which is what is going on here.
cheers,
DaveK
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/