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

Do not change current working directory #231

Open
KES777 opened this issue Dec 24, 2022 · 2 comments
Open

Do not change current working directory #231

KES777 opened this issue Dec 24, 2022 · 2 comments

Comments

@KES777
Copy link

KES777 commented Dec 24, 2022

This does not work (Notice relative path for libraries):

 PERL5LIB=lib:local/lib/perl5 local/bin/cpm install -w 16 --no-test -L ./local --snapshot ./cpanfile.snapshot --cpanfile ./cpanfile
Can't locate Parse/PMFile.pm in @INC (you may need to install the Parse::PMFile module) (@INC contains: lib local/lib/perl5/5.36.0/x86_64-linux local/lib/perl5/5.36.0 local/lib/perl5/x86_64-linux local/lib/perl5 /root/perl5/perlbrew/perls/perl-5.36.0/lib/site_perl/5.36.0/x86_64-linux /root/perl5/perlbrew/perls/perl-5.36.0/lib/site_perl/5.36.0 /root/perl5/perlbrew/perls/perl-5.36.0/lib/5.36.0/x86_64-linux /root/perl5/perlbrew/perls/perl-5.36.0/lib/5.36.0) at local/lib/perl5/Menlo/CLI/Compat.pm line 2320.

This does:

PERL5LIB=lib:$(pwd)/local/lib/perl5 local/bin/cpm install -w 16 --no-test -L ./local --snapshot ./cpanfile.snapshot --cpanfile ./cpanfile
DONE install Sort-Naturally-1.03
DONE install Data-Printer-1.001000
...

I often face into this issue, when cpm blame that libraries are not provided, but they actually they are.

@skaji
Copy link
Owner

skaji commented Dec 24, 2022

perl Makefile.PL
make
make test
make install

must be executed in distribution's directory.

@KES777
Copy link
Author

KES777 commented Dec 24, 2022

May you please document then, that it is required to provide absolute path to local/lib/perl5 if cpm was installed into local library.

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

2 participants