RPMS for MySQL version 4?
Jima
yellowdog-general@lists.terrasoftsolutions.com
Sun, 8 Aug 2004 00:45:01 -0500 (CDT)
On Sat, 7 Aug 2004, John M. Wright wrote:
> > Anyway, that can be shortened to:
> >
> > 1. download SRPM
> > 2. # rpmbuild --rebuild MySQL-4.0.20-0.src.rpm
> >
> > Jima
>
> OK, but I fail to see how this would produce different binary RPMS
> than: #rpm -Uvh MySQL-4.0.20-0.src.rpm
>
> followed by: #rpmbuild -ba /usr/src/rpm/SPECS/MySQL-4.0.20-0.spec
Nope, it's just a shortcut, if you didn't have to tweak it before
rebuilding.
> that fail to install because:
>
> # rpm -Uvh MySQL*
> error: Failed dependencies:
> libmysqlclient.so.10 is needed by (installed) perl-DBD-MySQL-2.1017-3
> libmysqlclient.so.10 is needed by (installed) php-mysql-4.2.2-16
Okay, this is probably ugly and hackish, but I think it might be the
easiest step:
1. install SRPM
2. edit mysql-4.0.20.spec
3. add this line
ln -s libmysqlclient.so.12 $RBR%{_libdir}/libmysqlclient.so.10
after these two:
# Install shared libraries (Disable for architectures that don't support it)
(cd $RBR%{_libdir}; tar xf $RBR/shared-libs.tar; rm -f $RBR/shared-libs.tar)
4. rpmbuild -ba mysql-4.0.20.spec
It (should?) satisfy the dependency for that file (I hope?). Otherwise,
a rebuild of PHP (against MySQL 4, and ergo libmysqlclient.so.12) is
probably in order. Ugh.
> My original question was:
>
> > On Fri, 6 Aug 2004, John M. Wright wrote:
> > > Forgive my ignorance; what do you mean by "the compiled-in
> > > data directory"?
>
> which referred to some manual tweaking you had suggested was necessary
> to the MySQL source and/or spec files before compiling.
That tweak was in regards to someone else's specific needs in MySQL 4.
> Thanks for any suggestions,
Just hope I can help.
Jima