orfiyus has asked for the wisdom of the Perl Monks concerning the following question:

Hey I have perl and mysql installed and I need to install the perl DBI, mysql-dbd and csv-dbd. I download the .gz files from dbi.perl.org but I can not seem to find the installation instructions there. Can someone tell me the commands to install it? I am running fedora core 5 Thanks

Replies are listed 'Best First'.
Re: Need Help Installing DBI and DBD
by chargrill (Parson) on Feb 04, 2007 at 03:31 UTC
Re: Need Help Installing DBI and DBD
by bobf (Monsignor) on Feb 04, 2007 at 03:33 UTC
Re: Need Help Installing DBI and DBD
by shigetsu (Hermit) on Feb 04, 2007 at 02:45 UTC
    Does
    # perl -MCPAN -e shell > install DBI
    work?
Re: Need Help Installing DBI and DBD
by nacredata (Sexton) on Feb 04, 2007 at 03:43 UTC
    It's worth noting that DBD::mysql runs tests which require mysql to have been installed, configured and running with open access to the "test" database when it is installed by CPAN or when using make test in a manual install.
Re: Need Help Installing DBI and DBD
by Tux (Canon) on Feb 04, 2007 at 10:29 UTC

    In which case I presume you now have a file called DBI-1.53.tar.gz

    The references the previous answers posted are to the point, and absolutely worth reading. Evene if some modules do not follow the standards, and some use Module::Build instead of MakeMaker, almost every module has a file called README and/or INSTALL.

    Always start with unpacking thearchive

    # tar -x -v -z -f DBI-1.53.tar.gz # cd DBI-1.53

    Complex modules, like Tk and DBD-Oracle (and of course the CORE itself) also provide README's that are OS specific. Please do read them!

    DBI's README is very clear:

    QUICK START GUIDE: The DBI requires one or more 'driver' modules to talk to databases +, but they are not needed to build or install the DBI. Check that a DBD::* module exists for the database you wish to use +. Read the DBI README then Build/test/install the DBI by doing perl Makefile.PL make make test make install Then delete the source directory tree since it's no longer needed. Use the 'perldoc DBI' command to read the DBI documentation. See GETTING HELP section in DBI.pm for how to get help.

    Enjoy, Have FUN! H.Merijn
Re: Need Help Installing DBI and DBD
by logie17 (Friar) on Feb 04, 2007 at 05:52 UTC
    I really suggest checking out the CPAN utility.

    s;;5776?12321=10609$d=9409:12100$xx;;s;(\d*);push @_,$1;eg;map{print chr(sqrt($_))."\n"} @_;
Re: Need Help Installing DBI and DBD
by lima1 (Curate) on Feb 04, 2007 at 12:53 UTC
    why not using redhats packaged version of DBI and friends? google gave perl-DBI as package name.