Tuesday, November 3, 2009

Perl

http://www.perl.com/pub/a/2002/04/10/mod_perl.html

http://search.cpan.org/~jmm/Heap-0.80/lib/Heap.pm

http://search.cpan.org/CPAN/authors/id/J/JM/JMM/Heap-0.80.tar.gz

% perl Makefile.PL PREFIX=$HOME

% make
% make test
% make install # if you 'su' then to quit su mode
% make clean

export PERL5LIB=$HOME/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/:$HOME/lib/perl5/site_perl/5.8.8

% man stats
% export MANPATH=$HOME/man/:$MANPATH
% man -M $HOME/man Heap
% man --manpath=$HOME/man Heap
% man --manpath=$HOME/man AI::Pathfinding::AStar
% perl -e 'use lib "$ENV{HOME}/lib/site_perl"; use Heap;';
% perl -e 'use lib "$ENV{HOME}/lib/site_perl"; use AI::Pathfinding::AStar;'

http://www.perlhowto.com/extending_the_library_path

% export PERL5LIB=$HOME/lib/site_perl/

No comments: