From 904f62a049681ea53448656a17def1502c5a803e Mon Sep 17 00:00:00 2001 From: Yehor Levchenko Date: Thu, 1 Nov 2018 23:44:38 +0200 Subject: [PATCH] Expanded \"Installing modules without root\" section --- .gitignore | 1 + content/article/cpan-introduction.md | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 825c4d180..90a72d307 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.old *.sw? public/ +.DS_Store diff --git a/content/article/cpan-introduction.md b/content/article/cpan-introduction.md index e1934c9ed..055b869dd 100644 --- a/content/article/cpan-introduction.md +++ b/content/article/cpan-introduction.md @@ -79,7 +79,13 @@ Some modules require extra libraries. For example, if you want to install the My ### Installing modules without root -XXX: cover local::lib +Using CPAN is convenient when you have root rights. If not, the workaround for you is local::lib. You can think of it as a "virtual environment" from other languages (like Python's pip with virtualenv). + +It will let you to build and install Perl modules without building and installing your own Perl. Local::lib will use your "system" Perl but won't install new modules there. Instead of that it will do a trick with your system's environment. + +This approach obviously have some cons. They are mostly about transitions (those modules are not portable and other user don't have access to your local::lib), but also you might be trapped in using old version of Perl. + +[Local:lib page](https://metacpan.org/pod/distribution/local-lib/lib/local/lib.pm) on CPAN has a comprehensive documentation on how to properly install and use this glorious module. ### MetaCPAN - browsing, downloading