in reply to LINUX PERL 5.20.2 libraries and modules: "Permission denied" for all users except root

How did you install Perl?
Also, consider perlbrew for installing and managing different versions of Perl.
  • Comment on Re: LINUX PERL 5.20.2 libraries and modules: "Permission denied" for all users except root

Replies are listed 'Best First'.
Re^2: LINUX PERL 5.20.2 libraries and modules: "Permission denied" for all users except root
by Anonymous Monk on Mar 02, 2015 at 19:32 UTC

    Many thanks kroach. I had overlooked the detail that there are indeed several ways to install PERL.

    Yesterday, I had configured the installation as recommended on http://www.cpan.org/src/README.html :

    tar -xzf perl-5.20.2.tar.gz cd perl-5.20.2 ./Configure -des -Dprefix=$HOME/localperl make make test make install

    As I recognize now the -Dprefix=$HOME/localperl makes essentially a "personalized" version of PERL for the installing user. In my case this user is root - that explains the problem of the other users and the entries in @INC.

    Today, I configured as recommended in the INSTALL help and without a prefix:

    tar -xzf perl-5.20.2.tar.gz cd perl-5.20.2 sh Configure -de make make test make install

    Now everything works fine for all users and the entries in @INC are ok!

    With many thanks and kind regards

    mvi