# Note: If you are
behind a proxy server read this
# The CPAN shell is a very effective and methodic
way to add perl modules to your system.
# This is the advised and best method to use if your machine can
connect to the Internet.
# Configure the CPAN Shell
/usr/bin/perl -MCPAN -e shell
no
install Bundle::CPAN
yes
exit <PRESS ENTER when asked>
exit
# Re-launch the CPAN shell anytime
/usr/bin/perl -MCPAN -e shell
exit
# Exit and relaunch the CPAN shell
once or twice to verify basic operation (Choose "no" if it asks you
for detailed config)
/usr/bin/perl -MCPAN -e shell
exit
# CPAN shell commands to know
? <--
Display Help Menu
reload cpan <-- Reloads CPAN interface
i /DBD/ <-- Searches for any module with
"DBD" in the name
install DBI <-- Installs module "DBI"
# Add a few basic Perl Modules
perl -MCPAN -e
"install Net::Telnet"
perl -MCPAN -e "install IPC::Signal"
perl -MCPAN -e "install Proc::WaitStat"
# Add a few modules the hard way via source!
# mime-construct
cd /usr/src
fetch http://search.cpan.org/CPAN/authors/id/R/RO/ROSCH/mime-construct-1.9.tar.gz
tar xvf mime-construct-1.9.tar.gz
cd mime-construct-1.9
perl Makefile.PL
make
make install
# Asterisk-perl
cd /usr/src
fetch http://asterisk.gnuinter.net/files/asterisk-perl-0.09.tar.gz
tar xvf asterisk-perl-0.09.tar.gz
cd asterisk-perl-0.09
perl Makefile.PL
make
make install