You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: