Skip to content

Commit

Permalink
Merge pull request #174 from yehorlevchenko/master
Browse files Browse the repository at this point in the history
Added "Installing modules without root" section to "CPAN instroduction" article
  • Loading branch information
briandfoy authored Apr 23, 2019
2 parents 6f9bf48 + 5978f83 commit 7368e82
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.sw?
public/
collations/

8 changes: 7 additions & 1 deletion content/article/cpan-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7368e82

Please sign in to comment.