Skip to content
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

Couldn't find module or a distribution Net::DNS #252

Open
KES777 opened this issue Mar 6, 2019 · 3 comments
Open

Couldn't find module or a distribution Net::DNS #252

KES777 opened this issue Mar 6, 2019 · 3 comments

Comments

@KES777
Copy link

KES777 commented Mar 6, 2019

https://github.com/perl-carton/carton/files/2935113/cpanfile.snapshot.txt

My cpanfile contain: requires 'Email::Valid';
When I install modules locally I get:

  Email-Valid-1.202
    pathname: R/RJ/RJBS/Email-Valid-1.202.tar.gz
    provides:
      Email::Valid 1.202
    requirements:
      ExtUtils::MakeMaker 0
      Mail::Address 0
      Scalar::Util 0
      Test::More 0
      perl 5.006

On local machine it works fine, but when I RUN source $PERLBREW_ROOT/etc/bashrc && carton install --deployment in my dockerfile I get the error:

! Couldn't find module or a distribution Net::DNS
! Installing the dependencies failed: Module 'Net::DNS' is not installed
! Bailing out the installation for Email-Valid-1.202.

I have checked Email::Valid and it does something special.

Should it be sufficient to just require 'Net::DNS' into cpanfile? how to detect such requirements?

@Madskill
Copy link

Madskill commented Apr 15, 2019

+1
Can i use options (--no-lwp --curl) from cpanm when run carton install --deployment?

@jonasbn
Copy link

jonasbn commented Apr 15, 2019

@Madskill you should be able specify arguments to your cpanm invocation using the environment variable: PERL_CPANM_OPT, please see the documentation

@jonasbn
Copy link

jonasbn commented Apr 15, 2019

I might be mistaken, there seems to be an issue with using PERL_CPANM_OPT and Carton, see #203

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants