|more useful options|
Re: Install DBI on Unixby Codon (Friar)
|on Sep 14, 2005 at 19:46 UTC||Need Help??|
The easiest way to go about getting DBI installed on a *nix machine is to use Perl's CPAN interface. You will most likely need your sysadmin to do this. DBI by itself, however, does not know how to talk to any database. You need to install a database driver. Since you mentioned DB2, you will want Bundle::DBD::DB2. This includes Bundle::DBI which in turn includes DBI, DBI::Shell, Storable, Net::Daemon,RPC::PlServer, and DBD::Multiplex. If you have root on the box, try the following.
This will ask you if you want to manually configure. I generally say 'No' on my dev boxes; Perl seems to select reasonable defaults and it all works. Once configuration is done, you should get a cpan> prompt. Here you can just type:
This will download the latest sources; determine any pre-dependencies; download and install any missing pre-dependencies; then make && make test && make install all of the packages mentioned above.
Note: DBD::DB2 will need to know the libraries and paths for DB2 in order to properly build and possibly even how to connect to a database to run make test.
Sr. Software Engineer, DAS Lead