views:

1481

answers:

3
cant open perl script "Makefile.PL":No such file or directory.

While installing perl-DBI im getting this error. kindly suggest some solution.

+1  A: 

If you have access to from your server install the DBI directory from CPAN

On linux,

    # perl -MCPAN -e shell
    cpan> install DBI

The another way is to download the full bundle from CPAN and install:

    perl Makefile.PL
    make
    make test
    make install
Space
If you use the cpan command with an argument, it puts you into the shell. However, you can just use "cpan DBI" to do the same thing you showed. However, in your second example doesn't handle dependencies.
brian d foy
+3  A: 

Using your OS's package manager when possible is a much better strategy than building modules by hand unless you are using a custom built perl.

Sinan Ünür
+4  A: 

For Ubuntu the command would be

sudo aptitude install libdbi-perl
Pat