Home About Contact Archives
Validate the HTML of this page

dope.sh (Discover Oracle-Perl Environment)

dope - information, especially from a reliable source

This shell script utility is designed to help determine what different versions of Perl, Oracle, and Perl DBI and DBD::Oracle modules have been installed on a Unix (Solaris) system.

This script was created to help troubleshoot New Books List and ShelfLister installation problems. This is a minimally tested beta version -- no warranties, use at your own risk, yada, yada. Feedback appreciated.

Source Code

dope.sh.txt

Sample output

/export/home/doran/bin> ./dope.sh
DOPE 0.9 beta - Discover Oracle-Perl Environment

SunOS servername 5.9 Generic_123456-01 sun4u sparc SUNW,[Platform] 

Searching for Solaris Perl packages...
  SUNWpl5m Perl 5.6.1 Reference Manual Pages
  SUNWpl5p Perl 5.6.1 (POD Documentation) 
  SUNWpl5u Perl 5.6.1 (core)  
  SUNWpl5v Perl 5.6.1 (non-core)  

Searching for 'perl' executables...
  /usr/perl5/5.6.1/bin/perl
    Inode#: 3687        Version: 5.6.1
  /usr/local/bin/perl
    Inode#: 54779       Version: 5.8.5
    ...has these 'after market' modules:
      Authen::SASL 2.08
      Bit::Vector 6.4
      Carp::Clan 5.3
      Convert::ASN1 0.18
      DBD::Oracle 1.08
      DBI 1.45
      Date::Calc 5.4
      IO::Socket::SSL 0.96
      MARC 1.13
      MARC::Record 1.4
      Net::LDAP 0.32
      Net::SSLeay 1.25
      URI 1.34
      XML::SAX::Base 1.02
  Note: Identical inode numbers indicate hard-linked files.
  Note: There may be Perl executables under a different name.

Searching for Perl symbolic links...
  /usr/bin/perl -> /usr/local/bin/perl (5.8.5)

Searching for locations of Perl DBI module(s)...
  /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/DBI.pm
 
Searching for locations of Perl DBD::Oracle module(s)...
  /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris/DBD/Oracle.pm
 
Searching for Oracle versions on this system...
  /m1/oracle/app/oracle/product has these versions...
     8.0.5 8.1.7