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

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

Replies are listed 'Best First'.
Re^8: PDL::Graphics::PLplot fails on install
by newperldeveloper (Sexton) on Aug 21, 2020 at 18:13 UTC
    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.
      So then I was just missing the libplplot.so file

      Strictly speaking, I expect that there would have been more than just the libplplotd.so file that was missing (eg. the plplot header files, too), so I don't know why libplplotd.so was singled out.
      I think a more appropriate message would have been something like "Cannot find the plplot library".
      But yes, it was the absence of the plplot (and no other) library that was preventing PDL-Graphics-PLplot from building.
      Those other libraries that you installed are used by modules located within the PDL source package. ("PDL" and "PDL-Graphics-PLplot" are separate packages.)

      I am not sure why cpan doesnt go and get libplplot

      The cpan utility will grab the perl modules as necessary, but it's mostly up to the user to ensure that any third party requirements of those modules (such as libraries like plplot) are already available to the build.
      Some modules will take steps to download and install missing requisite libraries - but, IMO, it's far better to just leave that up to the user.

      I'll file a bug report about the deceptive behaviour of PDL::Graphics::PLplot that you struck, after I've checked that it hasn't already been fixed in development.
      Update: Bug has now been reported

      Cheers,
      Rob
        Thanks.
        Update: As of PDL::Graphics::PLplot 0.79, it now uses Alien::PLplot as made by the mighty Zaki Mughal to install PLplot if it is not already available.