求助:安装mysql++
我需要编译一个cxx文件,里面提到#include <mysql++>;
从mysql.com下载了一个rpm,安装后再编译,但好象没起作用。又从mysql.com下了mysql++的源代码,但make的时候报错。有没有哪位大虾能帮个忙,给小弟说说怎么弄啊?
我的操作系统是fedora的,mysql是fedora自带的,gcc是3.2.3版。fedora是完全安装,5G多。 贴出错误信息~~~ # automake
configure.in:11: your implementation of AM_INIT_AUTOMAKE comes from an
configure.in:11: old Automake version.You should recreate aclocal.m4
configure.in:11: with aclocal and run automake again.
Makefile.am: required file `./INSTALL' not found
Makefile.am: required file `./NEWS' not found
Makefile.am: required file `./COPYING' not found
Makefile.am: required file `./AUTHORS' not found
Makefile.am: required file `./ChangeLog' not found
examples/Makefile.am: required file `./depcomp' not found
/usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.6/am/lang-compile.am: AMDEP does not appear in AM_CONDITIO
NAL
/usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.6/am/lang-compile.am: AMDEP does not appear in AM_CONDITIO
NAL
# autoconf
# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether make sets $(MAKE)... (cached) yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ranlib... ranlib
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
loading cache /dev/null within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
updating cache /dev/null
checking whether to enable maintainer-specific portions of Makefiles... no
checking for MySQL library directory... /usr/lib/mysql
checking for MySQL include directory... /usr/include/mysql
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for main in -lintl... no
checking for main in -lsocket... no
checking for main in -lnsl... yes
checking for mysql_store_result in -lmysqlclient... yes
checking if malloc debugging is wanted... no
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for strtol... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sqlplusint/Makefile
config.status: creating examples/Makefile
config.status: creating config.h
config.status: creating sqlplusint/exceptions.hh
config.status: executing default-1 commands
# make
makeall-recursive
make: Entering directory `/usr/src/redhat/SOURCES/mysql++-1.7.9'
Making all in sqlplusint
make: Entering directory `/usr/src/redhat/SOURCES/mysql++-1.7.9/sqlplusint'
Makefile:220: *** missing separator.Stop.
make: Leaving directory `/usr/src/redhat/SOURCES/mysql++-1.7.9/sqlplusint'
make: *** Error 1
make: Leaving directory `/usr/src/redhat/SOURCES/mysql++-1.7.9'
make: *** Error 2 我的系统是 redhat 9.0 mysql 版本是3.23.54 ?????
MySQL 需要运行 automake & autoconf 么? 下载forgcc的补丁。。。
页:
[1]