----- Original Message ----- From: "P Kishor" <[email protected]> To: <[email protected]> Sent: Thursday, March 05, 2009 12:57 AM Subject: Re: [Perldl] trouble installing PDL on Intel Macbook
> On Wed, Mar 4, 2009 at 7:32 AM, Chris Marshall <[email protected]> wrote: >> Another thing that makes testing go faster: >> >> Edit the perldl.conf file to disable all the >> optional component that you don't need for >> build testing. Some of the libraries take >> a long time to configure and build---time >> you don't need to spend every time you change >> an option for the HDF stuff. >> >> --Chris >> >> Sisyphus wrote: >>> >>> ----- Original Message ----- From: "P Kishor" <[email protected]> >>> >>>>>> ----- >>>>>> [11:39 PM] /usr/local/lib$ls libh* >>>>>> libhdf5.6.dylib* libhdf5.dylib@ libhdf5.settings >>>>>> libhdf5_hl.a libhdf5_hl.la* libhdf5.a >>>>>> libhdf5.la* libhdf5_hl.0.dylib* libhdf5_hl.dylib@ >>> >>> Which of those do you need to link to ? >>> (I don't have the hdf library, or a mac ... so I'm not in a position to >>> test any of this.) >>> >>> Assuming you need to link libhdf5.a, you could change the PDL::IO::HDF >>> section in perldl.conf from: >>> >>> # Whether or not to build the PDL::IO::HDF module >>> # 0 -> don't use >>> # true -> force use >>> WITH_HDF => undef, >>> HDF_LIBS => undef, >>> HDF_INC => undef, >>> >>> to: >>> >>> # Whether or not to build the PDL::IO::HDF module >>> # 0 -> don't use >>> # true -> force use >>> WITH_HDF => 1, >>> HDF_LIBS => '-L/usr/local/lib -lhdf5', >>> HDF_INC => '-I/usr/local/include', >>> >>> and see if that helps. Or perhaps that section instead needs to be: >>> >>> # Whether or not to build the PDL::IO::HDF module >>> # 0 -> don't use >>> # true -> force use >>> WITH_HDF => 1, >>> HDF_LIBS => '/usr/local/lib', >>> HDF_INC => '/usr/local/include', >>> >>> (Just something you can try while you're waiting for someone who knows >>> this stuff to come forward.) >>> >>> Make your changes to perldl.conf, then run: >>> make realclean >>> perl Makefile.PL >>> make test >>> >>> Cheers, >>> Rob >>> > > > Thanks guys. As I noted in my other email, I have PDL working now, but > without HDF and PLPlot. > > Re. HDF, I have both HDF5 and HDF4 installed, but, for some reason, > PDL is croaking because it seems to look for the hdf.h header file > instead of the installed libs in /usr/local/lib and No - it needs to be able to find both hdf.h and the installed libs. > To reiterate, here is the error message > >>> ----- >>> WARNING: Unknown cpu type i386! Not setting $hdf_defs. (This may not >>> be a bad thing) >>> Final $hdf_defs flags: '' >>> >>> Cannot find hdf library, libdf.a. Makes sense - you don't have libdf.a. This won't necessarily be a problem. Have you set WITH_HDF => 1, HDF_LIBS => '-L/usr/local/lib -lhdf5', HDF_INC => '-I/usr/local/include', >>> Please add the correct library path to Makefile.PL or install HDF >>> Cannot find hdf header file, hdf.h. Where is hdf.h located ? >>> Please add the correct library path to Makefile.PL or install HDF >>> >>> Skipping build of PDL::IO::HDF. That should mean that you *haven't* set WITH_HDF => 1 (But as I said earlier, I can't test any of this ... and therefore, the PDL::IO::HDF build procedure could, afaik, be *really* broken.) Cheers, Rob _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
