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

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.
  • Comment on Re^8: PDL::Graphics::PLplot fails on install

Replies are listed 'Best First'.
Re^9: PDL::Graphics::PLplot fails on install
by syphilis (Archbishop) on Aug 22, 2020 at 02:15 UTC
    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.