-
Notifications
You must be signed in to change notification settings - Fork 51
Perl version of 5.24 is inconsistent with debian perl package version (which is also installed). #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@pergh thanks for the report! I think the Docker Hub documentation and README here can be improved towards indicating the use and priority of the perl installed from source tarball over the Debian system perl (as I think it was an implicit expectation in here and in other language images that the language runtime comes from a source install.) Let me see about removing the Debian perl as well (though I reckon that might be trickier due to some of Debian's scripts depending on a |
Hmm so removing perl will try to remove git as well:
Setting aside for the moment that the git install comes from our Docker |
I have a problem I think is related. I need to install postgres so that some of my
I'm getting:
At first glance, I reckon that's a related issue to: https://bugs.launchpad.net/ubuntu/+source/postgresql-common/+bug/1407744 |
@pjlsergeant thanks, and yes, you could set a FROM perl:5.20
ENV PERL5LIB /usr/share/perl5
RUN apt-get update && apt-get -y install postgresql This should allow you to install
|
Hi!
All Perl modules are installed into system perl 5.20.2, not into 5.24. |
Hi all, sorry for the late reply to this issue; I'm looking at what options to resolve this. On one hand, @pergh has a point that there is a system perl in On the other hand, switching base images might be too expensive (e.g. it would introduce new layers into the image history, I think,) so maybe another option (and perhaps simpler) is to document how to install CPAN modules clearly (and what to do wrt dependencies on system-installed packages such as dev headers to database modules.) I'm leaning toward the latter option for now and will try to push another doc update. |
@parserpro
Or use perlbrew |
We're using
Am I correct that this is an example of the problem described in this ticket? In the meantime, we can't quite find the right combination of ENV vars to fix the installation into the Perl 5.28 that's installed by this base image.
Maybe our problem is the way this specific package manages deps? If so, I'll take my comment out of this thread 😄
We’re having better luck using the |
@AnthonyMastrean :
because different modules uses as installer makemaker or makebuild we are required to manage both env variables. These two variables
are just used to instruct perl where to look to find required modules. So if you even setup Thus use those four variables or To my mind usage of |
Hi @AnthonyMastrean! I think that if you wish to install Net-SNMP into Perl v5.28 in |
So to recap, this issue can be resolved by
I'll close this issue as it is old now; feel free to open a new issue and reference this if needed later. Thanks! |
This means that if you pull perl modules through apt-get, they will be installed for perl version 5.20, not 5.24. The perl 5.24 version which is first in the path, must have its packages installed through cpan to work.
Suggest you use either debian packaged version 5.20, or remove it and install perl 5.24 only. Having both will probably cause confusion.
The text was updated successfully, but these errors were encountered: