I have come with a question! Basic set up is:
- Dockerfile FROM debian:stretch-slim (though this seems unrelated because I am actually debugging an issue I saw in a non-docker Debian environment)
- everything is necessarily being done as a non-privileged user
- perl 5.32.0 installed as a non-privileged user using perlbrew
The problem: following the prescribed steps (e.g, setting
MAGICK_HOME) and using
--with-perl, making sure the
perl I want is provided by the
perlbrew environment as expected, there is an issue with the build process finding
-lperl.
I have noted the following:
- perlbrew provides libperl.a (but I have also tried by making it build libperl.so)
- using the options, --enable-shared --with-modules and passing in LINKTYPE=static LD_RUN_PATH=/path/to/CORE to ExtUtils::MakeMaker via --with-perl-options allows it to build; however testing with perl -MImage::Magick fails due to not finding a method Image::Magick is using called constant.
If I install
libperl-dev via
apt-get, it all works perfectly. This just feels wrong to me. Anyone ever deal with this? I do not get the same issues on Ubuntu doing anything special with
perlbrew or passing in anything via
--with-perl-options. Though it now occurs to me that I didn't ensure that
libperl-dev was
not installed as a dependency for something else.
I've been pouring over
https://imagemagick.org/script/advanced-linux-installation.php for the better part of a day, and no luck. I also found
https://legacy.imagemagick.org/discourse-server/viewtopic.php?t=8133, but it's a very old post and didn't seem to give me any good ideas.
My last resort is to,
apt-get install libperl-dev - but I still want to use the newer version of
perl provided by
perlbrew. Any ideas? I can provide more detailed errors, but was hoping this could be recognized by someone here. TIA.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.