PDA

View Full Version : Missing perl DBI/DBD


sikkhosting
07-10-2006, 07:20 PM
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!

chatwizrd
07-10-2006, 07:56 PM
Try these commands as root:


perl -mcpan -e shell
install DBI (run this command in perl shell)

sikkhosting
07-10-2006, 08:01 PM
I get this error when I run
perl -mcpan -e shell


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!

chatwizrd
07-10-2006, 08:11 PM
Try as root:


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:


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

sikkhosting
07-10-2006, 08:43 PM
Those both worked! Awesome..

Do I need to run

make
make test
make install

now?

Or am I set?

Thanks so much!

chatwizrd
07-11-2006, 09:35 AM
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.

sikkhosting
07-11-2006, 09:46 AM
Hey There,

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

I get the following


[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!

chatwizrd
07-11-2006, 09:55 AM
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

sikkhosting
07-11-2006, 10:03 AM
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!

chatwizrd
07-11-2006, 10:26 AM
gpg --lsign-key 450F89EC

is a command on its own