Koozali.org: home of the SME Server

perl-DBI with e-smith?

Manuel Fink

perl-DBI with e-smith?
« on: March 10, 2001, 10:08:23 PM »
i need to install perl-DBI, perl-DBD and perl-Data-Show-Table, so i downloaded the newest rpm's from RedHat:

-perl-DBI-1.13-1.i386.rpm
-mysql-DBI-perl-bin-1.825-1.i386.rpm
-perl-DBD-msql-mysql-1.2214-1.i386.rpm
-perl-Data-ShowTable-3.3-7.i386.rpm

but when i try to install perl-DBI-1.13-1.i386.rpm i get this message:
----
error: failed dependencies:
        perl >= 5.00503 is needed by perl-DBI-1.13-1
----

sombody help? can i use --force to install it?

aniston

Re: perl-DBI with e-smith?
« Reply #1 on: March 11, 2001, 02:07:02 AM »
that will depend on wether your homemade script which needs to use perl DBI 1.13-1 is using the new functions (I dont know what are the new functions) which have been added in the ver 5.00503.

So if you know if your perl script is kind of old then try with the -f option in rpm

anyways if it does not work then you will have to try after getting the perl 5.005.3 version installed.

I'm not a perl guru but that should make some common sense.

...aniston.

Charlie Brady

Re: perl-DBI with e-smith?
« Reply #2 on: March 11, 2001, 02:14:12 AM »
Manuel Fink wrote:
>
> i need to install perl-DBI, perl-DBD and
> perl-Data-Show-Table, so i downloaded the newest rpm's from
> RedHat:
>
> -perl-DBI-1.13-1.i386.rpm
> -mysql-DBI-perl-bin-1.825-1.i386.rpm
> -perl-DBD-msql-mysql-1.2214-1.i386.rpm
> -perl-Data-ShowTable-3.3-7.i386.rpm
>
> but when i try to install perl-DBI-1.13-1.i386.rpm i get this
> message:
> ----
> error: failed dependencies:
>         perl >= 5.00503 is needed by perl-DBI-1.13-1
> ----
>
> sombody help? can i use --force to install it?

No, but you can use --nodeps.

The problem is that e-smith 4.1.x has perl 5.6.0-9 installed, and RPM does not recognise that that is >= 5.00503 (6 is not greater than 503).

An alternative would be to obtain properly compatible RPMs. I notice that there is a perl-DBI 1.14-8 RPM in the RedHat 7 powertools directory.

Regards

Charlie

Manuel Fink

Re: perl-DBI with e-smith?
« Reply #3 on: March 11, 2001, 08:55:30 PM »
Charlie Brady wrote:
>
> No, but you can use --nodeps.
>
> The problem is that e-smith 4.1.x has perl 5.6.0-9 installed,
> and RPM does not recognise that that is >= 5.00503 (6 is not
> greater than 503).
>
> An alternative would be to obtain properly compatible RPMs. I
> notice that there is a perl-DBI 1.14-8 RPM in the RedHat 7
> powertools directory.
>
> Regards
>
> Charlie


Thank you, it worked!

But i have still one problem:

When i install 'perl-DBD-msql-mysql-1.2214-1.i386.rpm' it goes to '/usr/lib/perl5/site_perl/5.005/i386-linux/' but i thing i need it in '/usr/lib/perl5/site_perl/5.6.0/i386-linux'

Here is the error:
----
[root@e-smith scripts]# perl filldatabase.pl
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at (eval 7) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: ADO, ExampleP, Multiplex, Proxy.
 at filldatabase.pl line 88
---

Can i copy the files from '/usr/lib/perl5/site_perl/5.005/i386-linux' to '/usr/lib/perl5/site_perl/5.6.0/i386-linux'?

The Script i want to use is "storyteller-beta1.12" (http://www.planethalflife.com/storyteller), it's a logs parser script for my Half-Life Server.

Des Dougan

Re: perl-DBI with e-smith?
« Reply #4 on: May 06, 2002, 03:49:27 AM »
You've used the source rpm (.src). You need the i386 or noarch version (depending on how it's built).

Des Dougan