DBI experts, I'm a novice of DBI, appreciate any help you can provide.
I'm working on Solaris 2.8, coding a Perl script to connect to DB2 using DB2 connect. The sample program I got from IBM uses following to connect:
use DBI; use DB2Util; print "\nCalled DB2Util\n"; my(%database,$user,$password)=CmdLineArgChk(@ARGV); print "\nConnect to datbase... \n"; my $dbh=DBI->connect($database,$user,$password) ||die "Cannot connect +o database :$DBI:errstr";
But DBI is not installed on the Unix box.
After reading FAQ and DBI pages on cpan.org website, I found DBI-1.48.tar.gz is free for download that has the Database Independence Interface for Perl I need. Can I just download the file and copy Unix server ? After download, where (which directory) on Unix should I install DBI.pm ? Is DBI.pm the only file I need to copy or all the files in the zip file.
From reading other nodes, it seems DBI needs to be installed. Is it free that can be download from the web ? Where ?
Appreciate your help.
Kiang

In reply to Install DBI on Unix by Kiang

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.