• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1608
  • Last Modified:

installing perl modules on centos 5.7

I need the following three modules, but am getting errors with cpan> install DBD::Sybase - the rest seem to have finished all right:
DBD::Sybase
Data::UUID
Date::Parse

which file is the reference CONFIG to and what do I need to do for this module to work?
cpan> install DBD::Sybase
Running install for module DBD::Sybase
Running make for M/ME/MEWP/DBD-Sybase-1.14.tar.gz
Fetching with LWP:
  ftp://mirror.ox.ac.uk/sites/www.cpan.org/authors/id/M/ME/MEWP/DBD-Sybase-1.14.tar.gz
Fetching with LWP:
  ftp://mirror.ox.ac.uk/sites/www.cpan.org/authors/id/M/ME/MEWP/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/M/ME/MEWP/DBD-Sybase-1.14.tar.gz ok
DBD-Sybase-1.14/
DBD-Sybase-1.14/t/
DBD-Sybase-1.14/t/login.t
DBD-Sybase-1.14/t/autocommit.t
DBD-Sybase-1.14/t/utf8.t
DBD-Sybase-1.14/t/exec.t
DBD-Sybase-1.14/t/place.t
DBD-Sybase-1.14/t/multi_sth.t
DBD-Sybase-1.14/t/nsql.t
DBD-Sybase-1.14/t/screen.jpg
DBD-Sybase-1.14/t/main.t
DBD-Sybase-1.14/t/xblob.t
DBD-Sybase-1.14/t/xblk.t
DBD-Sybase-1.14/t/_test.pm
DBD-Sybase-1.14/t/fail.t
DBD-Sybase-1.14/t/thread.t
DBD-Sybase-1.14/t/base.t
DBD-Sybase-1.14/README.freetds
DBD-Sybase-1.14/Sybase.h
DBD-Sybase-1.14/MANIFEST
DBD-Sybase-1.14/eg/
DBD-Sybase-1.14/eg/Show.cgi
DBD-Sybase-1.14/eg/dbschema.pl
DBD-Sybase-1.14/eg/check-space.pl
DBD-Sybase-1.14/eg/README
DBD-Sybase-1.14/dbdimp.c
DBD-Sybase-1.14/CHANGES
DBD-Sybase-1.14/META.yml
DBD-Sybase-1.14/dbdimp.h
DBD-Sybase-1.14/PWD.factory
DBD-Sybase-1.14/dbivport.h
DBD-Sybase-1.14/README.vms
DBD-Sybase-1.14/CONFIG
DBD-Sybase-1.14/dbd-sybase.pod
DBD-Sybase-1.14/BUGS
DBD-Sybase-1.14/Sybase.pm
DBD-Sybase-1.14/Sybase.xs
DBD-Sybase-1.14/Makefile.PL
DBD-Sybase-1.14/README

  CPAN.pm: Going to build M/ME/MEWP/DBD-Sybase-1.14.tar.gz

Please set SYBASE in CONFIG, or set the $SYBASE environment variable at Makefile.PL line 120, <IN> line 44.
Running make test
  Make had some problems, maybe interrupted? Won't test
Running make install
  Make had some problems, maybe interrupted? Won't install

cpan>

instmodsh
Available commands are:
   l            - List all installed modules
   m <module>   - Select a module
   q            - Quit the program
cmd? l
Installed modules are:
   Data::UUID
   Perl
   TimeDate

Open in new window

0
ee-gd
Asked:
ee-gd
  • 2
  • 2
2 Solutions
 
parparovCommented:
You need to do "look DBD::Sybase" from the CPAN prompt. It will take you to the unpacked contents of the module. There the CONFIG file should reside and there you will point at your Sybase installation.
0
 
PapertripCommented:
While using CPAN to install modules is perfectly fine, using yum to manage them is even better (unless you need a specific version not found in the yum repos).

yum install perl-DBD-Sybase perl-Data-UUID perl-DateTime-Format-DateParse

Open in new window

0
 
ee-gdAuthor Commented:
thanks papertrip

once installed should I be able to see them listed with instmodsh? the output of that has not changed
yum install perl-DBD-Sybase perl-Data-UUID perl-DateTime-Format-DateParse
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.nsc.liu.se
 * centosplus: mirror.nsc.liu.se
 * extras: centosr3.centos.org
 * rpmforge: ftp-stud.fht-esslingen.de
 * updates: centosh2.centos.org
Excluding Packages from CentOS-5 - Base
Finished
Reducing CentOS-5 - Plus to included packages only
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Setting up Install Process
Package perl-DBD-Sybase-1.10-1.el5.rf.x86_64 already installed and latest version
Package perl-Data-UUID-1.203-1.el5.rf.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package perl-DateTime-Format-DateParse.noarch 0:0.04-1.el5.rf set to be updated
--> Processing Dependency: perl(DateTime::TimeZone) for package: perl-DateTime-Format-DateParse
--> Processing Dependency: perl(DateTime) for package: perl-DateTime-Format-DateParse
--> Running transaction check
---> Package perl-DateTime.x86_64 0:0.5300-2.el5.rf set to be updated
--> Processing Dependency: perl(DateTime::Locale) >= 0.41 for package: perl-DateTime
--> Processing Dependency: perl(Params::Validate) >= 0.76 for package: perl-DateTime
---> Package perl-DateTime-TimeZone.noarch 0:1.08-1.el5.rf set to be updated
--> Processing Dependency: perl(Class::Singleton) >= 1.03 for package: perl-DateTime-TimeZone
--> Running transaction check
---> Package perl-Class-Singleton.noarch 0:1.4-1.el5.rf set to be updated
---> Package perl-DateTime-Locale.noarch 0:0.45-1.el5.rf set to be updated
--> Processing Dependency: perl(List::MoreUtils) for package: perl-DateTime-Locale
---> Package perl-Params-Validate.x86_64 0:0.95-1.el5.rf set to be updated
--> Running transaction check
---> Package perl-List-MoreUtils.x86_64 0:0.25.1-1.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================
 Package                                Arch           Version                   Repository        Size
========================================================================================================
Installing:
 perl-DateTime-Format-DateParse         noarch         0.04-1.el5.rf             rpmforge         9.5 k
Installing for dependencies:
 perl-Class-Singleton                   noarch         1.4-1.el5.rf              rpmforge          15 k
 perl-DateTime                          x86_64         0.5300-2.el5.rf           rpmforge         153 k
 perl-DateTime-Locale                   noarch         0.45-1.el5.rf             rpmforge         2.0 M
 perl-DateTime-TimeZone                 noarch         1.08-1.el5.rf             rpmforge         425 k
 perl-List-MoreUtils                    x86_64         0.25.1-1.el5.rf           rpmforge         108 k
 perl-Params-Validate                   x86_64         0.95-1.el5.rf             rpmforge         114 k

Transaction Summary
========================================================================================================
Install       7 Package(s)
Upgrade       0 Package(s)

Total download size: 2.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): perl-DateTime-Format-DateParse-0.04-1.el5.rf.noarch.rpm                   | 9.5 kB     00:00     
(2/7): perl-Class-Singleton-1.4-1.el5.rf.noarch.rpm                              |  15 kB     00:00     
(3/7): perl-List-MoreUtils-0.25.1-1.el5.rf.x86_64.rpm                            | 108 kB     00:00     
(4/7): perl-Params-Validate-0.95-1.el5.rf.x86_64.rpm                             | 114 kB     00:00     
(5/7): perl-DateTime-0.5300-2.el5.rf.x86_64.rpm                                  | 153 kB     00:00     
(6/7): perl-DateTime-TimeZone-1.08-1.el5.rf.noarch.rpm                           | 425 kB     00:00     
(7/7): perl-DateTime-Locale-0.45-1.el5.rf.noarch.rpm                             | 2.0 MB     00:00     
--------------------------------------------------------------------------------------------------------
Total                                                                   2.0 MB/s | 2.8 MB     00:01     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : perl-List-MoreUtils                                                              1/7 
  Installing     : perl-Params-Validate                                                             2/7 
  Installing     : perl-DateTime-Locale                                                             3/7 
  Installing     : perl-Class-Singleton                                                             4/7 
  Installing     : perl-DateTime-TimeZone                                                           5/7 
  Installing     : perl-DateTime                                                                    6/7 
  Installing     : perl-DateTime-Format-DateParse                                                   7/7 

Installed:
  perl-DateTime-Format-DateParse.noarch 0:0.04-1.el5.rf                                                 

Dependency Installed:
  perl-Class-Singleton.noarch 0:1.4-1.el5.rf         perl-DateTime.x86_64 0:0.5300-2.el5.rf             
  perl-DateTime-Locale.noarch 0:0.45-1.el5.rf        perl-DateTime-TimeZone.noarch 0:1.08-1.el5.rf      
  perl-List-MoreUtils.x86_64 0:0.25.1-1.el5.rf       perl-Params-Validate.x86_64 0:0.95-1.el5.rf        

Complete!

Open in new window

0
 
PapertripCommented:
I think instmodsh only shows locally installed modules for that user, not system-wide modules.  Not sure though, I use yum to manage all my perl modules as I don't need anything fancy or custom with them.

Perhaps parparov can shed some light on that.
0
 
parparovCommented:
instmodsh should show all modules installed for this specific perl because Yum installation provides normally .packlist files that instmodsh uses later.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now