in reply to Re^7: PDL installation
in thread PDL installation

here is m.txt. Thanks for your help.

/usr/bin/perl.exe "-Iblib/arch" "-Iblib/lib" pdldoc.PL pdldoc Extracting pdldoc (WITH bad value support) make[1]: Entering directory `/cygdrive/c/Documents and Settings/Mahzar +i/Desktop/PDL/PDL-2.4.6/Basic' cp Reduce.pm ../blib/lib/PDL/Reduce.pm cp PDL.pm ../blib/lib/PDL.pm cp Lite.pm ../blib/lib/PDL/Lite.pm cp Options.pm ../blib/lib/PDL/Options.pm cp LiteF.pm ../blib/lib/PDL/LiteF.pm cp default.perldlrc ../blib/lib/PDL/default.perldlrc cp AutoLoader.pm ../blib/lib/PDL/AutoLoader.pm cp Lvalue.pm ../blib/lib/PDL/Lvalue.pm cp Matrix.pm ../blib/lib/PDL/Matrix.pm make[2]: Entering directory `/cygdrive/c/Documents and Settings/Mahzar +i/Desktop/PDL/PDL-2.4.6/Basic/Pod' PERL5OPT='' podselect ../Gen/Inline/Pdlpp.pm > PP-Inline.pod cp BadValues.pod ../../blib/lib/PDL/BadValues.pod cp Impatient.pod ../../blib/lib/PDL/Impatient.pod cp Internals.pod ../../blib/lib/PDL/Internals.pod cp Tips.pod ../../blib/lib/PDL/Tips.pod cp PP-Inline.pod ../../blib/lib/PDL/PP-Inline.pod cp Dataflow.pod ../../blib/lib/PDL/Dataflow.pod cp Delta.pod ../../blib/lib/PDL/Delta.pod cp FAQ.pod ../../blib/lib/PDL/FAQ.pod cp Philosophy.pod ../../blib/lib/PDL/Philosophy.pod cp Indexing.pod ../../blib/lib/PDL/Indexing.pod cp Objects.pod ../../blib/lib/PDL/Objects.pod cp Intro.pod ../../blib/lib/PDL/Intro.pod cp PP.pod ../../blib/lib/PDL/PP.pod cp API.pod ../../blib/lib/PDL/API.pod make[2]: Leaving directory `/cygdrive/c/Documents and Settings/Mahzari +/Desktop/PDL/PDL-2.4.6/Basic/Pod' make[2]: Entering directory `/cygdrive/c/Documents and Settings/Mahzar +i/Desktop/PDL/PDL-2.4.6/Basic/Gen' /usr/bin/perl.exe PP/dump.pp > PP/Dump.pm.tmp mv PP/Dump.pm.tmp PP/Dump.pm /usr/bin/perl.exe "-I../../blib/arch" "-I../../blib/lib" pptemplate.PL + pptemplate Extracting pptemplate (with variable substitutions) PERL5OPT='' podselect pptemplate > pptemplate.pod cp PP.pm ../../blib/lib/PDL/PP.pm cp PP/Var.pm ../../blib/lib/PDL/PP/Var.pm cp PP/CType.pm ../../blib/lib/PDL/PP/CType.pm cp PP/PDLCode.pm ../../blib/lib/PDL/PP/PDLCode.pm cp PP/SymTab.pm ../../blib/lib/PDL/PP/SymTab.pm cp PP/PdlParObj.pm ../../blib/lib/PDL/PP/PdlParObj.pm cp PP/Signature.pm ../../blib/lib/PDL/PP/Signature.pm cp PP/XS.pm ../../blib/lib/PDL/PP/XS.pm cp PP/Dump.pm ../../blib/lib/PDL/PP/Dump.pm cp pptemplate.pod ../../blib/lib/PDL/pptemplate.pod cp PP/Struct.pm ../../blib/lib/PDL/PP/Struct.pm cp PP/Dims.pm ../../blib/lib/PDL/PP/Dims.pm make[3]: Entering directory `/cygdrive/c/Documents and Settings/Mahzar +i/Desktop/PDL/PDL-2.4.6/Basic/Gen/Inline' cp Pdlpp.pm ../../../blib/lib/Inline/Pdlpp.pm cp MakePdlppInstallable.pm ../../../blib/lib/Inline/MakePdlppInstallab +le.pm make[3]: Leaving directory `/cygdrive/c/Documents and Settings/Mahzari +/Desktop/PDL/PDL-2.4.6/Basic/Gen/Inline' cp pptemplate ../../blib/script/pptemplate /usr/bin/perl.exe "-MExtUtils::MY" -e "MY->fixin(shift)" ../../blib/sc +ript/pptemplate make[2]: Leaving directory `/cygdrive/c/Documents and Settings/Mahzari +/Desktop/PDL/PDL-2.4.6/Basic/Gen' make[2]: Entering directory `/cygdrive/c/Documents and Settings/Mahzar +i/Desktop/PDL/PDL-2.4.6/Basic/SourceFilter' cp NiceSlice.pm ../../blib/lib/PDL/NiceSlice.pm make[2]: Leaving directory `/cygdrive/c/Documents and Settings/Mahzari +/Desktop/PDL/PDL-2.4.6/Basic/SourceFilter' make[2]: Entering directory `/cygdrive/c/Documents and Settings/Mahzar +i/Desktop/PDL/PDL-2.4.6/Basic/Core' /usr/bin/perl.exe -I../../blib/arch -I../../blib/lib -I/usr/lib/perl5/ +5.10/i686-cygwin -I/usr/lib/perl5/5.10 Core.pm.PL Core.pm Extracting Core.pm (WITH bad value support) /usr/bin/perl.exe -I../../blib/arch -I../../blib/lib -I/usr/lib/perl5/ +5.10/i686-cygwin -I/usr/lib/perl5/5.10 Core.pm.PL Core.pm Extracting Core.pm (WITH bad value support) /usr/bin/perl.exe pdl.h.PL pdl.h adding... #define PDL_U PDL_US #define PDL_Q PDL_LL Extracting pdl.h /usr/bin/perl.exe -I../../blib/arch -I../../blib/lib -I/usr/lib/perl5/ +5.10/i686-cygwin -I/usr/lib/perl5/5.10 pdl.h.PL pdl.h adding... #define PDL_U PDL_US #define PDL_Q PDL_LL Extracting pdl.h /usr/bin/perl.exe pdlcore.h.PL pdlcore.h Extracting pdlcore.h /usr/bin/perl.exe -I../../blib/arch -I../../blib/lib -I/usr/lib/perl5/ +5.10/i686-cygwin -I/usr/lib/perl5/5.10 pdlcore.h.PL pdlcore.h Extracting pdlcore.h /usr/bin/perl.exe pdlsimple.h.PL pdlsimple.h adding... #define PDL_U PDL_US #define PDL_Q PDL_LL Extracting pdlsimple.h (with variable substitutions) /usr/bin/perl.exe -I../../blib/arch -I../../blib/lib -I/usr/lib/perl5/ +5.10/i686-cygwin -I/usr/lib/perl5/5.10 pdlsimple.h.PL pdlsimple.h adding... #define PDL_U PDL_US #define PDL_Q PDL_LL Extracting pdlsimple.h (with variable substitutions) cp Dbg.pm ../../blib/lib/PDL/Dbg.pm cp pdl.h ../../blib/lib/PDL/Core/pdl.h cp Core.pm ../../blib/lib/PDL/Core.pm cp Config.pm ../../blib/lib/PDL/Config.pm cp Types.pm ../../blib/lib/PDL/Types.pm cp Char.pm ../../blib/lib/PDL/Char.pm cp Basic.pm ../../blib/lib/PDL/Basic.pm cp pdlthread.h ../../blib/lib/PDL/Core/pdlthread.h cp ppport.h ../../blib/lib/PDL/Core/ppport.h cp Exporter.pm ../../blib/lib/PDL/Exporter.pm cp Version.pm ../../blib/lib/PDL/Version.pm cp pdlcore.h ../../blib/lib/PDL/Core/pdlcore.h cp pdlsimple.h ../../blib/lib/PDL/Core/pdlsimple.h cp typemap.pdl ../../blib/lib/PDL/Core/typemap.pdl cp pdlmagic.h ../../blib/lib/PDL/Core/pdlmagic.h cp Dev.pm ../../blib/lib/PDL/Core/Dev.pm /usr/bin/perl.exe "-I../../blib/arch" "-I../../blib/lib" Core.xs.PL Co +re.xs Extracting Core.xs (WITH bad value support) /usr/bin/perl.exe -I../../blib/arch -I../../blib/lib -I/usr/lib/perl5/ +5.10/i686-cygwin -I/usr/lib/perl5/5.10 Core.xs.PL Core.xs Extracting Core.xs (WITH bad value support) /usr/bin/perl.exe /usr/lib/perl5/5.10/ExtUtils/xsubpp -typemap /usr/l +ib/perl5/5.10/ExtUtils/typemap -typemap typemap Core.xs > Core.xsc && + mv Core.xsc Core.c gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing + -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"2.4.6\" +-DXS_VERSION=\"2.4.6\" "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" Co +re.c /usr/bin/perl.exe "-I../../blib/arch" "-I../../blib/lib" pdlcore.c.PL +pdlcore.c Extracting pdlcore.c (WITH bad value support) Trying finite: math.h... YES /usr/bin/perl.exe -I../../blib/arch -I../../blib/lib -I/usr/lib/perl5/ +5.10/i686-cygwin -I/usr/lib/perl5/5.10 pdlcore.c.PL pdlcore.c Extracting pdlcore.c (WITH bad value support) Trying finite: math.h... YES /usr/bin/perl.exe -I../../blib/arch -I../../blib/lib -I/usr/lib/perl5/ +5.10/i686-cygwin -I/usr/lib/perl5/5.10 pdlcore.c.PL pdlcore.c Extracting pdlcore.c (WITH bad value support) Trying finite: math.h... YES gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing + -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"2.4.6\" +-DXS_VERSION=\"2.4.6\" "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" pd +lcore.c gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing + -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"2.4.6\" +-DXS_VERSION=\"2.4.6\" "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" pd +lapi.c gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing + -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"2.4.6\" +-DXS_VERSION=\"2.4.6\" "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" pd +lhash.c gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing + -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"2.4.6\" +-DXS_VERSION=\"2.4.6\" "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" pd +lthread.c pdlthread.c:501:1: warning: "croak" redefined In file included from /usr/lib/perl5/5.10/i686-cygwin/CORE/perl.h:971, from pdlcore.h:9, from pdlthread.c:6: /usr/lib/perl5/5.10/i686-cygwin/CORE/embed.h:4704:1: warning: this is +the location of the previous definition /usr/bin/perl.exe "-I../../blib/arch" "-I../../blib/lib" pdlconv.c.PL +pdlconv.c Extracting pdlconv.c /usr/bin/perl.exe -I../../blib/arch -I../../blib/lib -I/usr/lib/perl5/ +5.10/i686-cygwin -I/usr/lib/perl5/5.10 pdlconv.c.PL pdlconv.c Extracting pdlconv.c gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing + -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"2.4.6\" +-DXS_VERSION=\"2.4.6\" "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" pd +lconv.c gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing + -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"2.4.6\" +-DXS_VERSION=\"2.4.6\" "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" pd +lmagic.c /usr/bin/perl.exe -e 'require "/cygdrive/c/Documents and Settings/Mahz +ari/Desktop/PDL/PDL-2.4.6/Basic/Core/Dev.pm"; \ PDL::Core::Dev->import(); \ genpp()' pdlsections.g > pdlsections.c gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing + -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 -DVERSION=\"2.4.6\" +-DXS_VERSION=\"2.4.6\" -I/usr/lib/perl5/5.10/i686-cygwin/CORE pdlse +ctions.c rm -f ../../blib/arch/auto/PDL/Core/Core.dll g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,- +-stack,8388608 -Wl,--enable-auto-image-base -L/usr/local/lib Core.o p +dlcore.o pdlapi.o pdlhash.o pdlthread.o pdlconv.o pdlmagic.o pdlsecti +ons.o -o ../../blib/arch/auto/PDL/Core/Core.dll \ /usr/lib/perl5/5.10/i686-cygwin/CORE/libperl.dll.a \ chmod 755 ../../blib/arch/auto/PDL/Core/Core.dll test -s Core.bs && cp Core.bs ../../blib/arch/auto/PDL/Core/Core.bs && + \ chmod 644 ../../blib/arch/auto/PDL/Core/Core.bs make[2]: [../../blib/arch/auto/PDL/Core/Core.dll] Error 1 (ignored) make[2]: Leaving directory `/cygdrive/c/Documents and Settings/Mahzari +/Desktop/PDL/PDL-2.4.6/Basic/Core' make[2]: Entering directory `/cygdrive/c/Documents and Settings/Mahzar +i/Desktop/PDL/PDL-2.4.6/Basic/Bad' make[2]: *** No rule to make target `/cygdrive/c/Documents', needed by + `Bad.pm'. Stop. make[2]: Leaving directory `/cygdrive/c/Documents and Settings/Mahzari +/Desktop/PDL/PDL-2.4.6/Basic/Bad' make[1]: *** [subdirs] Error 2 make[1]: Leaving directory `/cygdrive/c/Documents and Settings/Mahzari +/Desktop/PDL/PDL-2.4.6/Basic' make: *** [subdirs] Error 2

Replies are listed 'Best First'.
Re^9: PDL installation
by syphilis (Archbishop) on Feb 04, 2010 at 01:33 UTC
    First thing I notice with p.txt is that none of the pre-requisites (OpenGL, Astro-FITS-Header, Inline) are installed in /usr/bin/perl. I'm starting to seriously consider the possibility that the cpan shell you were using was, in fact, attached to ActivePerl. Are OpenGL, Inline and Astro-FITS-Header installed in ActivePerl ?

    As regards m.txt, the failure occurs because the the path to your working directory contains spaces in it - ie the two spaces in "Documents and Settings". I think this may have been fixed in the git source. Best thing to do would be to build PDL in a directory that doesn't contain any spaces in its name - then you might have success.

    But first, install Parse::RecDescent (needed by Inline), Inline (agree to the prompt during the perl Makefile.PL stage to install Inline::C), Astro-FITS-Header and OpenGL. Use the same "manual" method as you've just tried with PDL and see how it goes. I'm not sure about OpenGL with Cygwin, but the rest should build and install fine with perl Makefile.PL, make test and make install. If OpenGL won't build, just skip it for the moment, and we can come back to it later.

    Cheers,
    Rob
      I followed what you said and manually installed the prerequisites. Astro and inline were installed, however OpenGL did not work. Then I tried to install PDL, it took a while and finished with this statement:

      found 611 functions saving... couldn't open /usr/lib/perl5/site_perl/5.10/i686-cygwin/PDL/Index.pod +at Doc/sca ntree.pl line 46. make: *** [doc_site_install] Error 13

      Is there a way to ckeck if PDL was installed successfully?

      Thanks,
        Looking at http://osdir.com/ml/lang.perl.quality-assurance/2008-11/msg00035.html, it seems you might have come up against a permissions issue. I don't know how that has impacted upon your PDL installation, nor do I know what to do about it. It's likely that you have a functional PDL, though there could be something missing. Start with perl -MPDL -le 'print $PDL::VERSION'
        If that prints out 2.4.6, things are looking promising. Then check to see that entering perldl puts you into the perldl shell (ie gives you a perldl> prompt). Others would be better able to advise on how to do more extensive testing. (I guess you could run the test scripts and check that they perform correctly.)

        If you want to do any graphics stuff with PDL, OpenGL seems to be the best way to go. You should seek help with that on the PDL mailing list as the main OpenGL developer is subscribed there. He's also one of the most active PDL developers ... and he uses Cygwin extensively as well !

        Cheers,
        Rob