in reply to Re^4: PDL::Graphics::PLplot fails on install
in thread PDL::Graphics::PLplot fails on install

I did get a few others that I am going to install. Cannot find hdf library, libdf.a. Cannot find GD library and Cannot find Proj library

Those messages regarding missing libraries would have appeared during the building of the PDL module. When building the PDL module, no attempt is made to locate PLplot. You won't get to see Cannot find plplot library (libplplotd.so) until you attempt to build the PDL::Graphics::PLplot module (if libplplotd.so can't be found).

Having installed hdf, GD, and Proj you will then have to rebuild PDL in order for PDL to make use of those libraries. (I think cpan -fi PDL will provide you with that rebuild.)

I am going to try cpan -i PDL::Graphics::PLplot to see if I get any different messages.
Yes, I think that's probably the best approach.

Cheers,
Rob

Replies are listed 'Best First'.
Re^6: PDL::Graphics::PLplot fails on install
by newperldeveloper (Sexton) on Aug 20, 2020 at 16:26 UTC
    After installing HDF, GD,Proj and making sure I have libplplotd.so it has worked. I do not have the correct permissions to use cpan -i. So I couldn't see the libplplotd error if any. But after having the network guy install the first 3 modules cpanm -L local/ PDL::Graphics::PLplot worked. Now to try this on a server.
      After installing HDF, GD,Proj and making sure I have libplplotd.so it has worked.

      Excellent - thanks for the update.
      (Note that the success of building PDL::Graphics::PLplot does not rely on the availability of HDF, GD, or Proj.)

      To make sure that PDL does indeed now provide HDF, GD, and Proj support, you could run the following 3 commands:
      $ perl -MPDL::IO::HDF -e 1 $ perl -MPDL::IO::GD -e 1 $ perl -MPDL::Transform::Proj4 -e 1
      If all is good, then all three of those commands will not produce any output.

      When I built PDL yesterday (for the first time in quite a while) I noticed that the fortran routines (eg PDL::Slatec) were missing.
      I think this happened because ExtUtils::F77 had not been installed.
      You can check for the presence of the fortran stuff with:
      $ perl -MPDL::Slatec -e 1
      If it turns out that PDL::Slatec is not available, and you want that support, I would suggest installing ExtUtils::F77 and then rebuilding PDL.

      Cheers,
      Rob
        So then I was just missing the libplplot.so file. I had them install everything and that worked. Thanks for all of the help. Ran the commands and got no output. I am not sure why cpan doesnt go and get libplplot. It grabs other dependencies.