Difference between revisions of "Perlbrew"

From HalfgeekKB
Jump to navigation Jump to search
(Created page with "'''perlbrew''' is a manager for sudo-free, user-level perl installations. ==Installation== <syntaxhighlight lang=bash> cd ~/tmp wget --no-check-certificate https://raw.g...")
 
Line 38: Line 38:
  
 
I believe it is supposed to work to install the same version twice as long as the names are different. However, don't try to perform the actual installs simultaneously; wait for one to finish before starting the next.
 
I believe it is supposed to work to install the same version twice as long as the names are different. However, don't try to perform the actual installs simultaneously; wait for one to finish before starting the next.
 +
 +
==Image::Magick==
 +
 +
One process that is claimed to work for installing Image::Magick is given [http://perltricks.com/article/57/2014/1/1/Shazam-Use-Image-Magick-with-Perlbrew-in-minutes on perltricks.com].
 +
 +
The given process has a new IM library installed under ~/local. I'm likely to modify it to something like ~/opt/ImageMagick-VERSION-NAME. This should be documented here.

Revision as of 13:40, 15 April 2014

perlbrew is a manager for sudo-free, user-level perl installations.

Installation

cd ~/tmp
wget --no-check-certificate https://raw.github.com/gugod/App-perlbrew/master/perlbrew
perl perlbrew self-install
cat 'source ~/perl5/perlbrew/etc/bashrc' >> ~/.bashrc # restart bash for this to take effect

At this point, you should also install patchperl, but the default command to do this,

perl perlbrew install-patchperl

failed for me because of a certificate issue. A workaround is to get it directly:

curl -kL https://raw.github.com/gugod/patchperl-packing/master/patchperl > ~/perl5/perlbrew/bin/patchperl
chmod +x ~/perl5/perlbrew/bin/patchperl

Alternatively, perlbrew can be patched to add the -k option to ignore cert issues. However, the program is minified, so this is currently more straightforward.

Add a new perl install

perlbrew install --as $your_install_name stable
  • The --as switch is optional. Omitting it causes the version to be used instead of a name when managing.
  • The stable specifier may be replaced with any version number or blead.
  • Other options are available.

This is a full perl install process and will take a substantial about of time. You will be given a tail -f command to follow the log if desired.

I believe it is supposed to work to install the same version twice as long as the names are different. However, don't try to perform the actual installs simultaneously; wait for one to finish before starting the next.

Image::Magick

One process that is claimed to work for installing Image::Magick is given on perltricks.com.

The given process has a new IM library installed under ~/local. I'm likely to modify it to something like ~/opt/ImageMagick-VERSION-NAME. This should be documented here.