As Rob mentioned, you can disable the libproj build by editing the perldl.conf file in the top level of the PDL build tree. In general, to diagnose this type of issue, I recommend a clean, manual build of PDL collecting all the logs:
1) extract PDL-NNN.tar.gz and cd to that directory 2) perl Makefile.PL 2>&1 | tee -a ../pdl-build-log.txt 3) make 2>&1 | tee -a ../pdl-make-log.txt 4) make test 2>&1 | tee -a ../pdl-test-log.txt That will give you a full log of the build process at each stage to check if anything fails. Please report the specific failure and we can help work through it. Another option might be a package install for your system. Some instructions for getting PDL can be found on our web site: http://pdl.perl.org . Hope this helps, Chris On Tue, Jul 19, 2011 at 7:05 AM, Dan Kortschak <[email protected]> wrote: > Hi, > > I'm trying to install PDL from CPAN on an Ubuntu Lucid machine, but the > install fails with: > > ... > make[4]: Entering directory > `/root/.cpanplus/5.10.1/build/PDL-2.4.9/Lib/GSL/SF/zeta' > make[4]: Leaving directory > `/root/.cpanplus/5.10.1/build/PDL-2.4.9/Lib/GSL/SF/zeta' > make[3]: Leaving directory `/root/.cpanplus/5.10.1/build/PDL-2.4.9/Lib/GSL/SF' > make[2]: Leaving directory `/root/.cpanplus/5.10.1/build/PDL-2.4.9/Lib/GSL' > make[2]: Entering directory `/root/.cpanplus/5.10.1/build/PDL-2.4.9/Lib/FFTW' > **** > Skipping build of PDL::FFTW. > **** > make[2]: Leaving directory `/root/.cpanplus/5.10.1/build/PDL-2.4.9/Lib/FFTW' > make[2]: Entering directory `/root/.cpanplus/5.10.1/build/PDL-2.4.9/Lib/GIS' > make[3]: Entering directory > `/root/.cpanplus/5.10.1/build/PDL-2.4.9/Lib/GIS/Proj' > make[3]: Makefile: No such file or directory > make[3]: *** No rule to make target `Makefile'. Stop. > make[3]: Leaving directory > `/root/.cpanplus/5.10.1/build/PDL-2.4.9/Lib/GIS/Proj' > make[2]: *** [subdirs] Error 2 > make[2]: Leaving directory `/root/.cpanplus/5.10.1/build/PDL-2.4.9/Lib/GIS' > make[1]: *** [subdirs] Error 2 > make[1]: Leaving directory `/root/.cpanplus/5.10.1/build/PDL-2.4.9/Lib' > make: *** [subdirs] Error 2 > > [ERROR] [Tue Jul 19 20:17:45 2011] Unable to create a new distribution object > for 'PDL::Core' -- cannot continue > > (More than a little galling since I don't actually want GIS). > > Any suggestions about what might be causing this? See above for how to collect build diagnostic logs. > I have tried with and without libproj-dev installed and have tried to > find other people with the same problem to no avail. > > When I manually perl Makefile.PL in the offending dir, I get: > > # perl Makefile.PL > PDL::GIS::Proj: Found /usr/lib64/libproj.so > Undefined subroutine &main::trylink called at Makefile.PL line 142. > BEGIN failed--compilation aborted at Makefile.PL line 171. This won't work because the perl Makefile.PL stage in the subdirectories needs setup that is done at the top level perl Makefile.PL. See step 2 above. > or > > # perl Makefile.PL > PDL::GIS::Proj: Found /usr/local/lib/libproj.a > Testing support libraries for PDL::GIS::Proj: > Cannot find Proj header file, proj_api.h. > Please add the correct library path to Makefile.PL or install Proj. > Skipping build of PDL::GIS::Proj. > > Undefined subroutine &main::write_dummy_make called at Makefile.PL line 129. > BEGIN failed--compilation aborted at Makefile.PL line 171. > > depending on whether libproj is installed or not. > > thanks for any help tinfo/perldl > _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
