[Shipwright] Errors importing GnuPG::Interface
sunnavy
sunnavy at bestpractical.com
Thu Aug 23 20:47:29 EDT 2012
Hi Wenck
the Math::BigInt issue is just a warning because Shipwright first searches
clean INC(if error happens, it will search the whole INC automatically)
Shipwright will import latest version on CPAN if the module is not in perl
core, so you don't need to worry about the warnings.
so your problem is not there. note the following lines:
> running source cpan-Math-BigInt-GMP: /root/.shipwright/downloads/cpan/authors/id/P/PJ/PJACKLAM/Math-BigInt-GMP-1.37.tar.gz
> running cmd: /usr/bin/perl -MShipwright::Util::CleanINC Makefile.PL
> err:
> Can't link/include 'gmp.h', 'gmp'
> running cmd: /usr/bin/perl Makefile.PL
> err:
> Can't link/include 'gmp.h', 'gmp'
> read_file 'Makefile' - sysopen: No such file or directory at
your machine seems doesn't have package like "libgmp-dev" installed?
Regards
sunnavy
On 12-08-23 16:15, Wenck, Samuel wrote:
> I am attempting to import the cpan:GnuPG::Interface Perl module into a Shipwright vessel using Shipwright version 2.4.32 running under Centos 6.3 x86. I am having issues ewith one of its dependencies, Math::BigInt, which Shipwright is having problems determining the version locally installed on the build host.
>
> Usually, when I encounter these issues, I install the Perl module in question onto the build host which I did successfully:
>
> cpan[3]> i GnuPG::Interface
> Module id = GnuPG::Interface
> DESCRIPTION OO interface to GNU Privacy Guard
> CPAN_USERID FTOBIN (Frank J. Tobin <ftobin at cpan.org>)
> CPAN_VERSION 0.44
> CPAN_FILE J/JE/JESSE/GnuPG-Interface-0.44.tar.gz
> UPLOAD_DATE 2011-05-03
> DSLIP_STATUS MdpO? (mature,developer,perl,object-oriented,)
> MANPAGE GnuPG::Interface - Perl interface to GnuPG
> INST_FILE /usr/local/share/perl5/GnuPG/Interface.pm
> INST_VERSION 0.44
>
>
> I also made sure that the dependency, Math::BigInt was installed locally:
>
> cpan[4]> i Math::BigInt
> Module id = Math::BigInt
> DESCRIPTION Arbitrary size integer math package
> CPAN_USERID TELS (Tels <nospam-abuse at bloodgate.com>)
> CPAN_VERSION 1.997
> CPAN_FILE P/PJ/PJACKLAM/Math-BigInt-1.997.tar.gz
> UPLOAD_DATE 2011-09-04
> DSLIP_STATUS SupOp (standard,comp.lang.perl.*,perl,object-oriented,Standard-Perl)
> MANPAGE Math::BigInt - Arbitrary size integer/float math package
> INST_FILE /usr/local/share/perl5/Math/BigInt.pm
> INST_VERSION 1.997
>
>
> However, when the Shipwright import command executes, it somehow gets confused about the locally installed BigInt module version:
>
> running source cpan-Math-BigInt: /root/.shipwright/downloads/cpan/authors/id/P/PJ/PJACKLAM/Math-BigInt-1.997.tar.gz
> skipping Test::More
> skipping ExtUtils::MakeMaker
> preparing to run source: bignum
> running source cpan-bignum: /root/.shipwright/downloads/cpan/authors/id/F/FL/FLORA/bignum-0.29.tar.gz
> /tmp/shipwright_source_VZgMmw/cpan-bignum is a Module::Install based distribution
> running cmd: /usr/bin/perl -Mversion -MShipwright::Util::CleanINC shipwright_makefile.pl
> running cmd: /usr/bin/make clean
> preparing to run source: Math::BigRat
> running source cpan-Math-BigRat: /root/.shipwright/downloads/cpan/authors/id/P/PJ/PJACKLAM/Math-BigRat-0.2602.tar.gz
> /tmp/shipwright_source_VZgMmw/cpan-Math-BigRat is a Module::Install based distribution
> running cmd: /usr/bin/perl -Mversion -MShipwright::Util::CleanINC shipwright_makefile.pl
> err:
> Warning: prerequisite Math::BigInt 1.991 not found. We have 1.89.
> running cmd: /usr/bin/make clean
>
> I believe that CentOS might include the older version of the BigInt module in its Perl RPM but I thought that Shipwright would pick up the locally installed newer version first. I checked on the installed version this way:
>
> # perl -MMath::BigInt -e 'print "$Math::BigInt::VERSION\n";'
> 1.997
>
> So the installed Perl sees the newer version but Shipwright does not and does not want to import the newer version as a dependency for the GnuPG::Interface module. I have attached the full output of the import command for reference.
>
> I have successfully built the same shipwright vessel under CentOS 5.8 with no issues and I am wondering the cause and a work around or solution.
>
> Thanks in advance, Sam
>
>
> _______________________________________________
> Shipwright mailing list
> Shipwright at lists.bestpractical.com
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/shipwright
More information about the Shipwright
mailing list