[rhn-users] How to install perl-DBD-MySQL RPM package

Daniel Wittenberg daniel-wittenberg at starken.com
Thu May 5 15:12:15 UTC 2005


up2date --get-source perl-DBD-MySQL
rpmbuild --rebuild /var/spool/up2date/mysql-3.23.58-15.RHEL3.1*.src.rpm

Basically, just download and reubild the src.rpm and then you should be
able to install.  It just needs to be rebuilt against your current
version mysql libraries.  You can force this version to be installed,
but I can pretty much guarantee it won't work right.

Dan

On Thu, 2005-05-05 at 17:07 +0200, SSI - Benjamin Morel wrote:
> Hello all,
> I've got a problem while trying to install package perl-DBD-MySQL.
> I've installed MySQL 4.1 from mysql.com's rpms, and they do not
> provide rpm for perl-DBD-MySQL
> So I decided to try to install the package from rhn, with up2date,
> here are the results :
>  
> ---------------------------------------------------------------------------------------------
> 
> [root at xxx i386]# up2date --install perl-DBD-MySQL
>  
> Fetching Obsoletes list for channel: rhel-i386-es-3...
>  
> Fetching rpm headers...
> ########################################
>  
> Name                                    Version        Rel
> ----------------------------------------------------------
> perl-DBD-MySQL                          2.1021         3
> i386
>  
> 
> Testing package set / solving RPM inter-dependencies...
> ########################################
> RPM package conflict error.  The message was:
> Test install failed because of package conflicts:
> The following packages were added to your selection to satisfy
> dependencies:
> Name                                    Version        Release
> --------------------------------------------------------------
> mysql                                   3.23.58        15.RHEL3.1
>  
> file /usr/bin/comp_err from install of mysql-3.23.58-15.RHEL3.1
> conflicts with file from package MySQL-devel-4.1.11-0
> file /usr/bin/mysql_config from install of mysql-3.23.58-15.RHEL3.1
> conflicts with file from package MySQL-devel-4.1.11-0
>  
> ---------------------------------------------------------------------------------------------
>  
> As you can see, it can not understand that mysql is already installed
> (but not under the package name "mysql", but "MySQL-client")
> It tries to install mysql, but as we can expect the packages conflict.
>  
> So, what is the solution ? How can I find a perl-DBD-MySQL rpm package
> compatible with my version of MySQL (4.1) ?
> I also tried to install the module from CPAN, without success : perl -
> MCPAN -e 'install DBD::mysql', without success (still have errors),
> and I really want to install it from RPM since I need it as a
> dependency for another package...
>  
> Any help greatly appreciated !
>  
> Regards,
> Ben
> _______________________________________________
> rhn-users mailing list
> rhn-users at redhat.com
> https://www.redhat.com/mailman/listinfo/rhn-users
-- 
=======================
Daniel Wittenberg
RHCE
President/CTO
The Starken Group Ltd.
http://www.starken.com




More information about the rhn-users mailing list