Skip to content

Instantly share code, notes, and snippets.

@libitte
Created June 21, 2014 04:37
Show Gist options
  • Select an option

  • Save libitte/70f7ca83bb6597080e6c to your computer and use it in GitHub Desktop.

Select an option

Save libitte/70f7ca83bb6597080e6c to your computer and use it in GitHub Desktop.

install plenv

$ git clone git://github.com/tokuhirom/plenv.git ~/.plenv
$ git clone git://github.com/tokuhirom/Perl-Build.git ~/.plenv/plugins/perl-build/
$ echo 'export PATH="$HOME/.plenv/bin:$PATH"' >> ~/.bash_profile
$ echo 'eval "$(plenv init -)"' >> ~/.bash_profile
$ exec $SHELL -l

version 確認, install可能なperl一覧

$ plenv --version
$ plenv install -l

install perl & switch perl version

% plenv install 5.18.2
% plenv version                                                                               (git)-[master]
system (set by /Users/hachiya.nobuto/.plenv/version)

% plenv local 5.18.2

% plenv version                                                                               (git)-[master]
5.18.2 (set by /Users/hachiya.nobuto/.plenv/.perl-version)
@libitte
Copy link
Copy Markdown
Author

libitte commented Jun 21, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment