• Like

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Perl5環境構築 Kansaipm#13

  • 1,916 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,916
On Slideshare
0
From Embeds
0
Number of Embeds
3

Actions

Shares
Downloads
2
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide









































































































Transcript

  • 1. % curl -LO http://xrl.us/perlbrew # wget --no-check-certificate http://xrl.us/perlbrew % chmod +x ./perlbrew % ./perlbrew install % rm perlbrew
  • 2. % export PERLBREW_ROOT=/mnt/perlbrew % ./perlbrew install
  • 3. % ~/perl5/perlbrew/perlbrew init % echo source~/perl5/perlbrew/etc/bashrc >> ~/.zshrc #(or .bashrc) % echo source ~/perl5/perlbrew/etc/cshrc >> ~/.cshrc #(or .tcshrc)
  • 4. #perl % perlbrew install perl-5.12.2 # % perlbrew switch perl-5.12.2
  • 5. # perl % perlbrew off # perl % perlbrew use perl-5.12.2
  • 6. # % perlbrew install perl-5.12.2 --as myperl # git clone % git clone git://github.com/mirrors/ perl.git % perlbrew install perl
  • 7. # mirror # or URL/ % perlbrew mirror
  • 8. #cpanm # % perlbrew install_cpanm
  • 9. % curl -LO http://xrl.us/perlbrew % perl perlbrew install % rm perlbrew
  • 10. fpath=($HOME/.zsh/functions $fpath) autoload -Uz compinit compinit
  • 11. % curl -L http://cpanmin.us/ | perl - App::cpanminus % wget --no-check-certificate -O - http://cpanmin.us/ | perl - App::cpanminus
  • 12. # Module % cpanm Module # full distribution path % cpanm MIYAGAWA/Plack-1.0000.tar.gz # from localfile % cpanm ~/mydists/MyCompany- Framework-1.0.tar.gz
  • 13. # from URL % cpanm http://example.com/ MyModule-0.1.tar.gz # from github % cpanm http://github.com/miyagawa/ Tatsumaki/tarball/master # % cpanm --interactive Task::Kensho
  • 14. # # # # git % cpanm --installdeps .
  • 15. # minicpan darkpan % cpanm --mirror ~/minicpan Module % cpanm --mirror http:// mycompany.example.com/DPAN
  • 16. # mirror # CPAN Meta DB search.cpan.org % cpanm --mirror ~/minicpan -- mirror-only Module
  • 17. # % alias minicpanm='cpanm --mirror ~/minicpan --mirror-only' % alias darkpan='cpanm --mirror http://mycompany.example.com/DPAN --mirror-only'
  • 18. #local::lib % cpanm local::lib #extlib % cpanm -l extlib Module # % cpanm -L extlib Module
  • 19. % cpanm App::cpanoutdated
  • 20. # % cpan-outdated # % cpan-outdated | cpanm
  • 21. # % cpan-outdated --mirror ~/minicpan # % cpan-outdated --mirror ~/minicpan | cpanm --mirror ~/minicpan
  • 22. #local::lib % cpan-outdated -L extlib #local::lib % cpan-outdated -L extlib | cpanm -L extlib
  • 23. % cpanm App::pmuninstall
  • 24. % pm-uninstall Module