Missing perl DBI/DBD

sikkhosting

Verified User
Joined
Jul 7, 2006
Messages
7
Hello!

my system is missing the perl DBI.pm file and I do not know how to install it.

Could someone please guide me on the installation process?

Thanks!
 
Try these commands as root:

Code:
perl -mcpan -e shell
install DBI (run this command in perl shell)
 
I get this error when I run
perl -mcpan -e shell

PHP:
Can't locate cpan.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .).
BEGIN failed--compilation aborted.

There must be something wrong with my Perl.. Maybe I should reinstall it?

Thanks for trying!
 
Try as root:

Code:
cd /usr/local/src
wget "http://search.cpan.org/CPAN/authors/id/A/AN/ANDK/CPAN-1.87_51.tar.gz"
tar xvfz CPAN*gz
cd CPAN*
perl Makefile.PL

That should at least install cpan for you.

After that is done you can then do:

Code:
cd /usr/local/src
wget "http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.51.tar.gz"
tar xvfz DBI*gz
cd DBI*
perl Makefile.PL
 
Last edited:
Those both worked! Awesome..

Do I need to run

make
make test
make install

now?

Or am I set?

Thanks so much!
 
That perl makefile should do everything you need.

Test the program you got errors on before and see if it works now.

There also should be an INSTALL or README file in those programs that will tell you if you need more commands or not too.
 
Hey There,

The CPAN wasn't working still and I figured out that after I ran Perl Makefile.PL

I get the following

PHP:
[root@server CPAN-1.87_51]# perl Makefile.PL
Importing PAUSE public key into your GnuPG keychain... gpg: failed to create temporary file `/root/.gnupg/.#lk0x8d7d998.server.sikkhosting.com.26746': No such file or directory
gpg: keyblock resource `/root/.gnupg/secring.gpg': general error
gpg: failed to create temporary file `/root/.gnupg/.#lk0x8d7dca8.server.sikkhosting.com.26746': No such file or directory
gpg: keyblock resource `/root/.gnupg/pubring.gpg': general error
gpg: no writable keyring found: eof
gpg: error reading `PAUSE2003.pub': general error
gpg: import from `PAUSE2003.pub' failed: general error
gpg: no writable keyring found: eof
gpg: error reading `PAUSE2005.pub': general error
gpg: import from `PAUSE2005.pub' failed: general error
done!
(You may wish to trust it locally with 'gpg --lsign-key 450F89EC')
Writing Makefile for CPAN

Any idea? Thanks!
 
Well you can run the command like it suggests if you want:

gpg --lsign-key 450F89EC

You may have to do the:

make
make install

after

perl Makefile.PL
 
So I'd need to run

perl Makefile.PL gpg --lsign-key 450F89EC

Because when I do that I get the same errors as before...

Sorry about all this and thanks so much for helping!
 
Back
Top