OSX: Simplify the new local Perl section, just mention what perlbrew as it's obvious enough how to use it from the webpage and most people probably won't be interested anyway.

develop
TheBloke 2015-12-15 14:16:51 +00:00
parent 417f9a26aa
commit e1777fcc6b
1 changed files with 6 additions and 16 deletions

@ -240,24 +240,14 @@ following environment variable::
* In a separate, local Perl install * In a separate, local Perl install
This method gives you a cleaner, local Perl 5 setup. Rather than using system Perl, you might also want to consider
the Perl manager, `Perlbrew <http://perlbrew.pl>`_.
* Visit http://perlbrew.pl/ in a browser This installs Perl 5 locally in ``~/perl5/`` and provides an easy
* Copy and run the first listed command, that begins ``\curl -L ...`` way to install the latest Perl 5 and run CPAN against it, without
* Re-login to your shell ``sudo``.
You now have a new, local copy of the latest version of Perl installed in ``~/perl5``. See http://perlbrew.pl/ for more details.
It will now be the default perl for your user as perlbrew adds appropriate shell
commands to your current shell's .profile (or equivalent file.)
You can now run ``cpan`` and the install commands shown above. You do not need
to prefix it with ``sudo`` (and should not do so.) The resulting CPAN setup
will be much quicker than with system Perl.
This also means you can migrate your
current Perl setup - including CPAN setup/modules - by migrating your home directory,
and it is also immune to changes from OS updates.
* Get the DFHack source as per section `compile-how-to-get-the-code`, above. * Get the DFHack source as per section `compile-how-to-get-the-code`, above.
* Set environment variables * Set environment variables