Posted in Perl on June 4, 2008 | 2 Comments »
I hope this is useful to someone…
This is a small script to find the installed perl modules……
#!/usr/local/bin/perl
use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || “???”;
print “$module — $version\n”;
}
#./list-modules.plApache::DBI — 0.94Archive::Tar — 1.30Authen::SASL — 2.08Authen::Smb — 0.91CGI — 3.11CPAN — 1.87Compress::Zlib — 1.42Convert::ASN1 — [...]
Read Full Post »
Perl modules may be installed using the CPAN module or from source.CPAN method
perl -MCPAN -e shell (to get an interactive CPAN shell)perl -MCPAN -e ‘install Time::JulianDay’ (if you know the name of the module, you can install it directly without interacting with the CPAN shell)
Within the CPAN shell:i /expression/ will search for a Perl module [...]
Read Full Post »
Posted in GNU/Linux, Perl on January 24, 2008 | Leave a Comment »
This HowTo Explains the steps needed to install perl’s DBD::Oracle module on servers running Oracle 9.2.
1. Login to the desired machine:
% sudo su -
2. perform the following:
# grep ORACLE /home/oracle/.bash_profile
3. cut and paste the following export commands from the previous grep
# export ORACLE_SID=
# export ORACLE_BASE=/u01/app/oracle
# export ORACLE_HOME=$ORACLE_BASE/product/920
# export LD_LIBRARY_PATH=$ORACLE_HOME/lib
4. change to the work directory:
# cd [...]
Read Full Post »