root?
no root no party?
#!/usr/bin/perl
use strict;
use warnings;
use lib ‘/path/to/...’
Brutto per distribuire!
Installazione moduli?
local::lib
local::lib
Installazione

wget... && tar && cd
perl Makefile.PL --bootstrap
make test && make install
Installazione

wget... && tar && cd
perl Makefile.PL --bootstrap
make test && make install
Installazione

wget... && tar && cd
perl Makefile.PL --bootstrap
make test && make install
Attivazione

echo 'eval $(
 perl -I$HOME/perl5/lib/perl5 
   -Mlocal::lib
)' >>~/.bashrc
Attivazione

echo 'eval $(
  perl -I$HOME/perl5/lib/perl5 
    -Mlocal::lib
)' >>~/.bashrc
Attivazione

echo 'eval $(
  perl -I$HOME/perl5/lib/perl5 
    -Mlocal::lib
)' >>~/.bashrc
Attivazione

echo 'eval $(
  perl -I$HOME/perl5/lib/perl5 
    -Mlocal::lib
)' >>~/.bashrc
Basta!
Uso? Automatico?


shell$ perl -e 'print "@INC"'
/home/pippo/perl5 ...
Uso? Automatico?


shell$ echo $PERL5LIB
/home/pippo/perl5 ...
Installazione? Automatica?
  shell$ cpan
  cpan shell -- CPAN exploration
  and modules installation
  (v1.9301)
  ReadLin...
Installazione? Automatica?


  shell$ echo $MODULEBUILDRC
  /home/pippo/perl5/.modulebuildrc
Installazione? Automatica?


  shell$ echo $PERL_MM_OPT
  INSTALL_BASE=/home/pippo/perl5
Blame
 Him
T HA NK
Blame
 Him
Upcoming SlideShare
Loading in...5
×

local::lib

972

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
972
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
8
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
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×