Hi Pablo,
Yes, you are seeing that typemap bug triggered by the newer version of
ExtUtils::ParseXS. If you are installing PDL from CPAN you can get the latest
developer release which should fix it for you. But you have to specify the
distribution explicitly in this case since it is not a stable release. Here
are the instructions from the 2.4.9_008 release notes:
- Manual build/install is recommended although the
cpan shell may be used by specifying the distribution
path rather than just the module name, e.g.:
cpan> get CHM/PDL-2.4.9_008.tar.gz
cpan> make CHM/PDL-2.4.9_008.tar.gz
cpan> test CHM/PDL-2.4.9_008.tar.gz
cpan> look CHM/PDL-2.4.9_008.tar.gz
I think you can also just do a
cpan> install CHM/PDL-2.4.9_008.tar.gz
and that should take care of it.
cheers,
Derek
On Sep 25, 2011, at 5:47 PM, pablo marin-garcia wrote:
> Hello, I was trying to install PDL 2.4.9 in Ubuntu 11.04 with perl
> 5.10.1, and the installation failed because:
>
> ----
> /usr/bin/perl "-I../../blib/arch" "-I../../blib/lib" Core.xs.PL Core.xs
> Extracting Core.xs (WITH bad value support)
> /usr/bin/perl -I../../blib/arch -I../../blib/lib -I/usr/lib/perl/5.10
> -I/usr/share/perl/5.10 Core.xs.PL Core.xs
> Extracting Core.xs (WITH bad value support)
> /usr/bin/perl /usr/local/share/perl/5.10.1/ExtUtils/xsubpp -typemap
> /usr/share/perl/5.10/ExtUtils/typemap -typemap typemap Core.xs >
> Core.xsc && mv Core.xsc Core.c
> Could not find a typemap for C type 'PDL_Long *' in Core.xs, line 1144
> make[2]: *** [Core.o] Error 1
> make[2]: Leaving directory `/home/pmg/.cpan/build/PDL-2.4.9-t9ZY6B/Basic/Core'
> make[1]: *** [subdirs] Error 2
> make[1]: Leaving directory `/home/pmg/.cpan/build/PDL-2.4.9-t9ZY6B/Basic'
> make: *** [subdirs] Error 2
> CHM/PDL-2.4.9.tar.gz
> /usr/bin/make -- NOT OK
> ----
>
> I have seen that there is a bug report about this from one month ago
> but it says that is fixed:
>
> ----
> failure to find PDL typemap - ID: 3377113
> resolution:Fixed
> ----
>
> I have checked my version of ExtUtils::ParseXS and is the latest one:
> ----
> ExtUtils::ParseXS is up to date (3.04).
> ----
>
> Not knowing how to solve this problem I have installed PDL with
> apt-get (pdl version 2.4.7) but now I have problems updating some
> packages that want the latest PDL:
>
> ----
> PDL::Stats::GLM has known issue with PDL-2.4.7. Please update PDL and
> retry installation.
> No 'Makefile' created MAGGIEXYZ/PDL-Stats-0.5.5.tar.gz
> /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
> ----
>
> How should report this CPAN install failure. The bug entry is closed
> and I don't know if it is appropriate to open a new bug, or if it is
> indeed solved and I am missing something trivial.
>
> Any help would be truly appreciated.
>
>
>
> --
> - Pablo Marin-Garcia
>
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl