Hi Ed,
I think that works because Homebrew installs to /usr/local and
/usr/local/include is one of the hard-coded paths in the IO/GD/Makefile.PL. I
thought it was strange that Makefile generation didn't complain about libgd for
me, just gd.h. That's because the Makefile.PL looks in $Config{libpth}, which
for my perl includes /opt/local/lib. I opened an issue last night with a
half-patch.
Derek
> On Jun 11, 2021, at 11:46 AM, Ed . <[email protected]> wrote:
>
> Hi Derek,
>
> On my Mac I use Homebrew’s GD and it gets found by PDL’s build without
> needing to specify anything. Could you try installing Homebrew GD?
>
> Best regards,
> Ed
>
> From: Bryan Jurish <mailto:[email protected]>
> Sent: 10 June 2021 05:52
> To: Derek Lamb <mailto:[email protected]>
> Cc: perldl <mailto:[email protected]>
> Subject: Re: [Pdl-general] removal of ~/.perldl.conf support
>
> hi Derek,
>
> Not sure about how/whether these propagate, but I usually use the "INC"
> attribute of ExtUtils::MakeMaker for custom -I flags, e.g.:
>
> $ perl Makefile.PL INC="-I/opt/local/include" && make
>
> ... it might also work to pass INC directly to 'make' itself:
>
> $ perl Makefile.PL && make INC="-I/opt/local/include"
>
> ... or via the environment:
>
> $ export INC="-I/opt/local/include" && perl Makefile.PL && make
>
> You can even set the environment variable PERL_MM_OPT for common EU::MM
> options, e.g. in ~/.bashrc
>
> export PERL_MM_OPT='INC="-I/opt/local/include" OPTIMIZE="-O2 -pipe
> -march=native -mtune=native"'
>
> ... and then just calling:
>
> $ perl Makefile.PL && make
>
> more gory details in https://metacpan.org/pod/ExtUtils::MakeMaker
> <https://metacpan.org/pod/ExtUtils::MakeMaker>
>
> marmosets,
> Bryan
>
> On Thu, Jun 10, 2021 at 6:16 AM Derek Lamb <[email protected]
> <mailto:[email protected]>> wrote:
> Hi all (esp. Ed),
>
> So I just caught up on about 3 months of PDL emails. And I'm trying to build
> the current git master. At Makefile.PL stage, the build is complaining that
> it can't find gd.h. The file is at /opt/local/include/gd.h on my Mac (w/
> MacPorts). My ~/.perldl.conf used to tell PDL where to look, but in commit
> 48e24ed
> <https://github.com/PDLPorters/pdl/commit/48e24ed636d43bb9b40cc12d6f2adc4fe8fb4c16>,
> support for that was removed "because it's 2021". Indeed :-) . So, what's
> the hip and modern way to tell Makefile.PL where to look?
>
> thanks,
> Derek
> _______________________________________________
> pdl-general mailing list
> [email protected] <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/pdl-general
> <https://lists.sourceforge.net/lists/listinfo/pdl-general>
>
>
> --
> Bryan Jurish "There is *always* one more bug."
> [email protected] <mailto:[email protected]> -Lubarsky's
> Law of Cybernetic Entomology
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general