PDL installation to Windows fail.

I try to install PDL to Windows, but I can't install PDL to Windows.

I try to install in Active Perl and Strawberry Perl.

1. Active Perl(5.16.3 32bit and PDL 2.007)

Installation of ppm is ok, but install by cpan fail.

cpan PDL

The reason is error of Devel-CheckLib-1.01. assertlib error popup and test fail.

Writing Makefile for Devel::CheckLib
Writing MYMETA.yml and MYMETA.json
cp lib/Devel/CheckLib.pm blib\lib\Devel\CheckLib.pm
C:\Perl-5.16.3\bin\perl.exe -MExtUtils::Command -e cp -- bin/use-devel-checklib blib\script\use-devel-chec
pl2bat.bat blib\script\use-devel-checklib
  MATTN/Devel-CheckLib-1.01.tar.gz
  C:\PERL-5~1.3\site\bin\dmake.exe -- OK
Running make test
C:\Perl-5.16.3\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.
t/00-load.t ................... ok
t/bad-single-word-compiler.t .. ok
t/cmdline-LIBS-INC.t ..........
t/cmdline-LIBS-INC.t .......... 1/3 #   Failed test 'linked OK: LIBS=-lmsvcrt'
#   at t/cmdline-LIBS-INC.t line 51.
#       STDOUT:
#       STDERR: wrong result: 'msvcrt'
#
Terminating on signal SIGINT(2)
Caught SIGINT. Trying to quit ...
Terminating on signal SIGINT(2)

2. Strawberry Perl(5.18.1.1 32bit and PDL 2.007)

Installation by cpan fail.

cpan PDL

In t/slice.t, Perl interpreter die and test fail.

C:\strawberry\perl\bin\perl.exe -MPod::Select -e "podselect('pdl2');" > pdl2.pod
Skip ..\blib\lib\PDL/pdl2.pod (unchanged)
Skip ..\blib\lib\PDL/Perldl2/Script.pm (unchanged)
C:\strawberry\perl\bin\perl.exe -MPod::Select -e "podselect('pdldoc');" > pdldoc.pod
C:\strawberry\perl\bin\perl.exe -MPod::Select -e "podselect('perldl');" > perldl.pod
Skip blib\lib/PDL/perldl.pod (unchanged)
Skip blib\lib/PDL/pdldoc.pod (unchanged)
Skip blib\lib/PDL/Bugs.pod (unchanged)
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')"
t/aaa_load.t ................ ok
t/argtest.t ................. ok
t/autoload.t ................ ok
t/bad.t ..................... ok
t/basic.t ................... "my" variable $a masks earlier declaration in same scope at t/basic.t line 5
"my" variable $z masks earlier declaration in same scope at t/basic.t line 71.
t/basic.t ................... ok
t/bess.t .................... ok
t/bool.t .................... ok
t/callext.t ................. ok
t/clump.t ................... ok
t/complex.t ................. ok
t/config.t .................. ok
t/constants.t ............... ok
t/constructor.t ............. ok
t/conv.t .................... ok
t/core.t .................... ok
t/croak.t ................... ok
t/diskcache.t ............... ok
t/dumper.t .................. ok
t/erf.t ..................... ok
t/erfi.t .................... ok
t/familyfree.t .............. ok
t/fastraw.t ................. ok
t/fft.t ..................... ok
t/fits.t .................... ok
t/flexraw.t ................. ok
t/flexraw_fortran.t .........
ExtUtils::F77: Version 1.17
t/flexraw_fortran.t ......... ok
t/flow.t .................... ok
t/foo.t ..................... ok
t/func.t .................... ok
t/gauss.t ................... ok
t/gd_oo_tests.t ............. ok
t/gd_tests.t ................ ok
t/gis_proj.t ................ skipped: PDL::GIS::Proj module not compiled.
t/gsl_diff.t ................ skipped: PDL::GSL::DIFF not compiled.
t/gsl_integ.t ............... skipped: PDL::GSL::INTEG not compiled.
t/gsl_interp.t .............. skipped: PDL::GSL::INTERP not compiled.
t/gsl_mroot.t ............... skipped: PDL::GSL::MROOT not compiled.
t/gsl_rng.t ................. skipped: PDL::GSL::RNG not compiled.
t/gsl_sf.t .................. skipped: PDL::GSLSF::BESSEL not compiled.
t/hdf_sd.t .................. skipped: PDL::IO::HDF module not compiled.
t/hdf_vdata.t ............... skipped: PDL::IO::HDF module not compiled.
t/hdf_vgroup.t .............. skipped: PDL::IO::HDF module not compiled.
t/hdrs.t .................... ok
t/hist.t .................... ok
t/howbig.t .................. ok
t/ica.t ..................... ok
t/image2d.t ................. ok
t/imagend.t ................. ok
t/imagergb.t ................ ok
t/inline-comment-test.t ..... ok
t/inlinepdlpp.t ............. ok
t/interp.t .................. ok
t/interp_slatec.t ........... ok
t/interpol.t ................ ok
t/iotypes.t ................. ok
t/lgamma.t .................. ok
t/limits_00.t ............... ok
t/limits_errb.t ............. ok
t/limits_keyspecs.t ......... ok
t/limits_normalize_dsets.t .. ok
t/limits_range.t ............ ok
t/limits_round.t ............ ok
t/limits_trans.t ............ ok
t/limits_trans_err.t ........ ok
t/limits_ulimits.t .......... ok
t/linfit.t .................. ok
t/lut.t ..................... ok
t/lvalue.t .................. ok
t/magic.t ................... ok
t/matmult.t ................. ok
t/matrix.t .................. ok
t/matrixops.t ............... ok
t/minuit.t .................. # Opening file C:\DOCUME~1\staff\LOCALS~1\Temp\cZTYUzMjZI\minuit.log.5172...
t/minuit.t .................. ok
t/misc.t .................... ok
t/niceslice.t ............... ok
t/nsdatahandle.t ............ ok
t/ones.t .................... ok
t/opengl.t .................. skipped: TriD graphics not compiled
t/ops.t ..................... ok
t/pdl_from_string.t ......... ok
t/pdlchar.t ................. ok
t/pgplot.t .................. skipped: Skipped: PDL::Graphics::PGPLOT not installed
t/physical.t ................ ok
t/pic_16bit.t ............... ok
t/picnorgb.t ................ ok
t/picrgb.t .................. ok
t/plplot.t .................. skipped: PDL::Graphics::PLplot not installed
t/pnm.t ..................... ok
t/poly.t .................... ok
t/polyroots.t ............... ok
t/pp_croaking.t ............. ok
t/pp_line_numbers.t ......... ok
t/pptest.t .................. ok
t/primitive.t ............... ok
t/primitive2.t .............. ok
t/proj_transform.t .......... skipped: PDL::Transform::Proj4 module not compiled.
t/proj_transform2.t ......... skipped: PDL::Transform::Proj4 module not compiled.
t/pthread.t ................. ok
t/pthread_auto.t ............ ok
t/pthreadBarf.t ............. ok
t/reduce.t .................. ok
t/refs.t .................... ok
t/requiredmods.t ............ ok
t/rim.t ..................... ok
t/round.t ................... ok
t/scope.t ................... ok
t/segfault.t ................ ok
t/simplex.t ................. ok
t/slatec.t .................. ok
t/slice-exceptions.t ........ ok
t/slice.t ................... Useless use of string in void context at t/slice.t line 92.
Useless use of string in void context at t/slice.t line 111.
Useless use of string in void context at t/slice.t line 112.
Useless use of string in void context at t/slice.t line 113.
Useless use of string in void context at t/slice.t line 114.
Useless use of string in void context at t/slice.t line 115.
t/slice.t ................... Dubious, test returned 5 (wstat 1280, 0x500)

3. The following page PDL installation process fail(ActivePerl 5.16.3 64bit)

I can't PDL by ppm in the following documentation.

Installing PDL on Windows

# Failing list. The reason seem to lack some package
ppm install http://www.sisyphusion.tk/ppm/File-Map.ppd --force
ppm install http://www.sisyphusion.tk/ppm/PDL-CCS.ppd --force
ppm install http://www.sisyphusion.tk/ppm/PDL-Drawing-Prima.ppd --force
ppm install http://www.sisyphusion.tk/ppm/PDL-Fit-Levmar --force
ppm install http://www.sisyphusion.tk/ppm/PDL-Graphics-Gnuplot.ppd --force 
ppm install http://www.sisyphusion.tk/ppm/PDL-Graphics-Prima.ppd --force
ppm install http://www.sisyphusion.tk/ppm/PDL-LinearAlgebra --force
ppm install http://www.sisyphusion.tk/ppm/PDL-Graphics-PLplot.ppd --force

4 Comments

I think the ActivePerl issue happens because you have Visual Studio installed and available in your global path and CheckLib being unable to deal with that. Try removing that and running `cpan` under ActivePerl to get it to install MinGW and dmake.

As for the Strawberry Perl issue, i think the warnings in slice.t are a red herring. Please run that test manually with `prove -bv t/slice.t` and see how far it gets, then report that in the PDL bug tracker.

blogs.perl.org is not a bugtracker. Please use the appropriate channels for that.

Yuki -

Chris Marshall, the current PDL release manager, is far and away the best resource for issues with PDL on Windows. It is best to send mail to the mailing list. To do that, you have to subscribe because anonymous mailing is not allowed. The relevant link is this: http://mailman.jach.hawaii.edu/mailman/listinfo/perldl. Fill out your email address and name. Pick a password if you like. Then hit subscribe. After you've done that, you should be able to send mail to the list. If you report this trouble to the mailing list, be sure to include your architecture and the versions of Perl you're trying. Also indicate if this is an install from CPAN or from the latest Git sources. For most PDL bugs, you should also include the full output of "perldl -V", but since pdl isn't installed on your system, you won't have perldl available.

I look forward to seeing your email on the list soon!

David

Leave a comment

About Yuki Kimoto

user-pic I'm Perl Programmer. I LOVE Perl. I want to contribute Perl community and Perl users.