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

Can't install on CentOS 7 due to missing @INC entries #424

Closed
Daikamar opened this issue Oct 13, 2014 · 1 comment
Closed

Can't install on CentOS 7 due to missing @INC entries #424

Daikamar opened this issue Oct 13, 2014 · 1 comment

Comments

@Daikamar
Copy link

When trying to install on CentOS 7 using:

\curl -L http://install.perlbrew.pl | bash

you get the error:

Can't locate constant.pm in @INC (@INC contains: FatPacked::32708256=HASH(0x1f316a0) /usr/share/perl5 /usr/lib64/perl5 /usr/local/share/perl5 /usr/local/lib64/perl5) at /usr/local/share/perl5/Getopt/Long.pm line 215. BEGIN failed--compilation aborted at /usr/local/share/perl5/Getopt/Long.pm line 215. Compilation failed in require at ./perlbrew line 34. BEGIN failed--compilation aborted at ./perlbrew line 34. Compilation failed in require at ./perlbrew line 5807. BEGIN failed--compilation aborted at ./perlbrew line 5807.

This happens because constant.pm is located in /usr/share/perl5/vendor_perl (we also need /usr/lib64/perl5/vendor_perl to complete self-install as that is where File/Spec.pm is found)

Changing:

BEGIN { use Config; @INC = @Config{qw(privlibexp archlibexp sitelibexp sitearchexp)} };

to:

BEGIN { use Config; @INC = @Config{qw(privlibexp archlibexp sitelibexp sitearchexp vendorarchexp vendorlibexp)} };

adds the needed paths to @inc and removes the errors.

@Daikamar
Copy link
Author

Duplicate issue to:

#409

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

1 participant