2

When I use

perlbrew lib create testlibs

to have a folder to store test libraries from CPAN, it creates a folder under the following path:

$HOME/.perlbrew/libs/perl-5.32.0@testlibs/lib/perl5

How can I tell perlbrew to store the libs folder ( perl-5.32.0@testlibs ) under a different folder such as /opt/perl5/libs, etc.?

I have very little disk space for home mountpoint on my server, so I need libs folders to be created on a different mountpoint. I already have PERLBREW_ROOT set to a different mountpoint, but that only makes perlbrew install new perl installation folders under it. It doesn't do it for the libs folders, which was surprising.

I already read the documentation and googled the hell out of this, but I can't find some env variable I can use to tell perlbrew where to install libs folders.

I know I can manipulate locallib env variables and even use lib on my scripts to point to some other folder, but it would be nice to have this all included within perlbrew.

JohnnyLoo
  • 877
  • 1
  • 11
  • 22
  • 2
    It appears to be relative to `PERLBREW_HOME` – ikegami Aug 22 '20 at 19:26
  • I read the doc for that env variable, but I totally missed the point to related to this. Thank you very much. This worked. I hope the perlbrew admin adds this to "libs" section in the documentation. – JohnnyLoo Aug 22 '20 at 19:37

0 Answers0