local::lib

1,244 views
1,168 views

Published on

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

Published in: Self Improvement
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,244
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • local::lib

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

    ×