さくらインターネット/local::lib

提供: dsk's note
移動: 案内検索

さくらインターネットでcpan環境を構築

mkdir -p ~/local/var/db/pkg
 
vi .cshrc
setenv PATH $HOME/local/bin:$PATH
setenv PKG_DBDIR $HOME/local/var/db/pkg
setenv PORT_DBDIR $HOME/local/var/db/pkg
setenv LD_LIBRARY_PATH $HOME/local/lib
 
wget http://search.cpan.org/CPAN/authors/id/A/AP/APEIRON/local-lib-2.000015.tar.gz
tar xzvf local-lib-2.000015.tar.gz
cd local-lib-1.008004
perl Makefile.PL --bootstrap=$HOME/local
 
make && make test
make install
 
 
perl -I$HOME/local/lib/perl5 -Mlocal::lib=$HOME/local >> ~/.cshrc
 
source ~/.cshrc

呼び出す

#!/usr/bin/perl
use strict;
use warnings;
use lib '/home/dsktnk/local/lib/perl5';