local::lib

  • 885 views
Uploaded on

Installare ed utilizzare local::lib è semplice... e può risolvere un vostro annoso problema!

Installare ed utilizzare local::lib è semplice... e può risolvere un vostro annoso problema!

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

Views

Total Views
885
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
7
Comments
0
Likes
0

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. root?
  • 2. no root no party?
  • 3. #!/usr/bin/perl use strict; use warnings; use lib ‘/path/to/...’
  • 4. Brutto per distribuire!
  • 5. Installazione moduli?
  • 6. local::lib
  • 7. local::lib
  • 8. Installazione wget... && tar && cd perl Makefile.PL --bootstrap make test && make install
  • 9. Installazione wget... && tar && cd perl Makefile.PL --bootstrap make test && make install
  • 10. Installazione wget... && tar && cd perl Makefile.PL --bootstrap make test && make install
  • 11. Attivazione echo 'eval $( perl -I$HOME/perl5/lib/perl5 -Mlocal::lib )' >>~/.bashrc
  • 12. Attivazione echo 'eval $( perl -I$HOME/perl5/lib/perl5 -Mlocal::lib )' >>~/.bashrc
  • 13. Attivazione echo 'eval $( perl -I$HOME/perl5/lib/perl5 -Mlocal::lib )' >>~/.bashrc
  • 14. Attivazione echo 'eval $( perl -I$HOME/perl5/lib/perl5 -Mlocal::lib )' >>~/.bashrc
  • 15. Basta!
  • 16. Uso? Automatico? shell$ perl -e 'print "@INC"' /home/pippo/perl5 ...
  • 17. Uso? Automatico? shell$ echo $PERL5LIB /home/pippo/perl5 ...
  • 18. Installazione? Automatica? shell$ cpan cpan shell -- CPAN exploration and modules installation (v1.9301) ReadLine support enabled cpan[1]> install Foo::Bar
  • 19. Installazione? Automatica? shell$ echo $MODULEBUILDRC /home/pippo/perl5/.modulebuildrc
  • 20. Installazione? Automatica? shell$ echo $PERL_MM_OPT INSTALL_BASE=/home/pippo/perl5
  • 21. Blame Him
  • 22. T HA NK Blame Him