QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2226|回复: 5

求助:安装mysql++

[复制链接]
发表于 2004-2-3 18:16:02 | 显示全部楼层 |阅读模式
我需要编译一个cxx文件,里面提到
#include <mysql++>;
从mysql.com下载了一个rpm,安装后再编译,但好象没起作用。又从mysql.com下了mysql++的源代码,但make的时候报错。有没有哪位大虾能帮个忙,给小弟说说怎么弄啊?
我的操作系统是fedora的,mysql是fedora自带的,gcc是3.2.3版。fedora是完全安装,5G多。
发表于 2004-2-4 21:26:33 | 显示全部楼层
贴出错误信息~~~
回复

使用道具 举报

发表于 2004-2-29 11:39:16 | 显示全部楼层
[root@dreamfly mysql++-1.7.9]# 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
[root@dreamfly mysql++-1.7.9]# autoconf
[root@dreamfly mysql++-1.7.9]# ./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
[root@dreamfly mysql++-1.7.9]# make
make  all-recursive
make[1]: Entering directory `/usr/src/redhat/SOURCES/mysql++-1.7.9'
Making all in sqlplusint
make[2]: Entering directory `/usr/src/redhat/SOURCES/mysql++-1.7.9/sqlplusint'
Makefile:220: *** missing separator.  Stop.
make[2]: Leaving directory `/usr/src/redhat/SOURCES/mysql++-1.7.9/sqlplusint'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/SOURCES/mysql++-1.7.9'
make: *** [all] Error 2
回复

使用道具 举报

发表于 2004-2-29 11:40:03 | 显示全部楼层
我的系统是 redhat 9.0   mysql 版本是3.23.54
回复

使用道具 举报

发表于 2004-2-29 12:06:01 | 显示全部楼层
?????
MySQL 需要运行 automake & autoconf 么?
回复

使用道具 举报

发表于 2004-6-19 13:04:36 | 显示全部楼层
下载forgcc的补丁。。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-16 11:59 , Processed in 0.080897 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表