mysql c++ connector with default fedora mysql installation
Danny Anderson
danderson at dfisystems.com
Fri Jan 16 19:22:01 UTC 2004
Hola, Fedora folk!
Forgive me for the length of my explanation, chalk it up to trying to
find a solution on my own first...
I installed Fedora on a machine to use as a web/database server. As
part of the initial OS install , I let Fedora install
mysql-3.23.50-something in its 'default' locations. I now want to add
the c++ connector to the mysql installation. I dowloaded source rpms
from mysql.com. I installed those and now I am following these
instructions from linuxgems.com:
1)patch -p1 -d mysql++-1.7.9 < mysql++-gcc-3.0.patch
2)patch -p1 -d mysql++-1.7.9 < mysql++-gcc-3.2.patch
3)patch -p1 -d mysql++-1.7.9 < mysql++-gcc-3.2.2.patch
4)patch -p1 -d mysql++-1.7.9 < mysql++-prefix.patch
5)patch -p1 -d mysql++-1.7.9 < mysql++-versionfix.patch
6)cd mysql++-1.7.9
7)rm Makefile.in aclocal.m4 build.sh config.guess config.h
config.status config.sub configure install-sh libtool ltconfig
ltmain.sh missing mkinstalldirs stamp* examples/Makefile.in
sqlplusint/Makefile.in
8)libtoolize
9)aclocal
10)automake --foreign --add-missing
11)autoconf
12)./configure
13)make
I cannot get this to work. I either choke on the prefix patch or, if I
skip that patch, I choke on the ./configure step looking for the mysql
components installation.
//--->Errors applying prefix patch:
$ patch -p1 -d mysql++-1.7.9 < mysql++-prefix.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- mysql++-1.7.9q/Makefile 2002-10-17 00:12:00.000000000 +0200
|+++ mysql++-1.7.9/Makefile 2002-10-17 15:10:15.000000000 +0200
--------------------------
File to patch: <---//cursor waiting for file input
this is the third line of the prefix patch:
@@ -18,7 +18,7 @@
//--->Errors on configure if I skip the prefix patch:
checking for MySQL library directory... configure: error: Didn't find
the mysql library dir in ''
Has anybody out there experienced this and found a workaround? Any
useful comments and suggestion appreciated.
Thanks!
Danny
More information about the fedora-list
mailing list