LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-29-2009, 05:06 AM   #1
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Rep: Reputation: 30
Want a complete&latest perl package


Hi all,

I have a CentOS server with the following details.


Code:
$ uname -a
Linux myserver 2.6.9-67.ELsmp #1 SMP Fri Nov 16 12:49:06 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/redhat-release 
CentOS release 4.6 (Final)
$ rpm -qa|grep perl
perl-Filter-1.30-6
perl-libxml-perl-0.07-30
perl-Compress-Zlib-1.42-1.el4
perl-XML-SAX-0.12-7
perl-DBI-1.40-8
perl-Parse-Yapp-1.05-32
perl-IO-Zlib-1.04-4.2.el4
perl-Convert-ASN1-0.18-3
perl-XML-LibXML-Common-0.13-7
perl-URI-1.30-4
mod_perl-1.99_16-4.5
perl-DateManip-5.42a-3
perl-libwww-perl-5.79-5
perl-XML-Encoding-1.01-26
perl-Digest-HMAC-1.01-13
perl-Time-HiRes-1.55-3
perl-XML-NamespaceSupport-1.08-6
perl-XML-Twig-3.13-6
perl-XML-LibXML-1.58-1
perl-HTML-Tagset-3.03-30
perl-XML-Parser-2.34-5
perl-libxml-enno-1.02-31
perl-Digest-SHA1-2.07-5
perl-Net-DNS-0.48-2.el4
perl-XML-Grove-0.46alpha-27
perl-HTML-Parser-3.35-6
perl-Archive-Tar-1.30-1.el4
perl-Crypt-SSLeay-0.51-5
perl-5.8.5-36.el4_5.2
newt-perl-1.08-7
perl-XML-Dumper-0.71-2
perl-LDAP-0.31-5
I have issues with oracle DBD module

Code:
perl test.pl
install_driver(oracle) failed: Can't locate DBD/oracle.pm in @INC (@INC contains: /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.3/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.2/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.1/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.0/x86_64-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/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.2/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.1/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.0/x86_64-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 .) at (eval 1) line 3.
Perhaps the DBD::oracle perl module hasn't been fully installed,
or perhaps the capitalisation of 'oracle' isn't right.
Available drivers: ExampleP, Proxy, Sponge.
 at test.pl line 2

The perl am using is the one available with the OS itself.

Is there any Package of perl available , which I can install and update the current one along with all the available modules.

Am not familiar with perl and its modules .

Please Advise .
Thanks
 
Old 01-29-2009, 05:27 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,802

Rep: Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540Reputation: 2540
Login at the cmd line as root and try

perl -e shell -MCPAN
cpan> install DBD::Oracle




FYI Perl is case sensitive
Quote:
or perhaps the capitalisation of 'oracle' isn't right.
To check/find modules, go to search.cpan.org

BTW, CENTOS (== RHEL) 4.6 is pretty old, they're on 5.3 http://en.wikipedia.org/wiki/Red_Hat_Enterprise_Linux
 
Old 01-29-2009, 05:32 AM   #3
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
The module is found here: http://search.cpan.org/search?module=DBD::Oracle

And the syntax would be "use DBD::Oracle;" (capital O)

and you install Perl module ideally from the CPAN shell:

perl -MCPAN -e shell

That show an interactive command prompt. Issue "install DBD::Oracle" and say "y" everywhere.

Don't forget to set ORACLE_HOME correctly or the module will fail.
 
Old 01-30-2009, 04:04 AM   #4
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Original Poster
Rep: Reputation: 30
Thank you Su-shee and chrism.


My server is not allowed to connect to Internet directly. I have downloaded the DBD-Oracle-1.22.tar.gz thro other way. Where can I extract this directory?

Code:
Don't forget to set ORACLE_HOME correctly or the module will fail.

Is it Ok, If I extract the DBD-Oracle-1.22.tar.gz in a directory and add that path to the ORACLE_HOME in .bash_profile
 
Old 01-30-2009, 01:36 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,391

Rep: Reputation: 3604Reputation: 3604Reputation: 3604Reputation: 3604Reputation: 3604Reputation: 3604Reputation: 3604Reputation: 3604Reputation: 3604Reputation: 3604Reputation: 3604
.... No, that won't do ...
You will have to build it, start reading "README"

....

'cd DBD-Oracle-1.16/'
'perl Makefile.PL'
'make' ... 'make test'
and finally when all tests have passed :
'su' ... 'make install'

....

Last edited by knudfl; 01-31-2009 at 08:29 AM.
 
Old 01-30-2009, 11:17 PM   #6
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Original Poster
Rep: Reputation: 30
Thanks a Lot for knudfl and all others here.

I have configured the module and its working fine. The thing here is I learnt how to configure modules for Perl , not only DBD::Oracle, others also.

Cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Latest checkinstall package merchtemeagle Slackware 6 05-10-2008 12:22 PM
Latest package ust Linux - Software 0 01-24-2006 10:11 AM
Latest distro- yet easiest for complete newbie? H4rM Linux - Newbie 4 10-14-2005 08:20 PM
Wmaker latest package Sader Slackware 3 11-05-2004 04:31 PM
COMPLETE development package Milkman00 Linux - Software 1 03-26-2004 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration