MySQL CPP连接器编译问题

时间:2012-11-07 14:01:28

标签: c++ linux mysql-connector

我收到了以下错误  版本< 4.1.13(对于MySQL 4.1.x)和< 5.0.7 for(MySQL 5.0.x)不是

但我在系统上安装了mysql55-devel.x86_64版本。 可能是什么问题?

完成cmake消息:

-- Environment compile flags:   
-- Environment link flags: 
-- Boost version: 1.49.0
-- BOOST_INCLUDE_DIRS=/home/ec2-user/build/2_0/build_server/lib/linux/gcc/64/include
-- ENV{MYSQL_DIR} = 
-- MySQL Include dir: /home/ec2-user/build/2_0/build_server/lib/linux/gcc/64/include
-- MySQL Library    : /usr/lib64/mysql/libmysqlclient_r.so
-- MySQL Library dir: /usr/lib64/mysql
-- MySQL CXXFLAGS: 
-- MySQL Link flags: 
-- Looking for mysql_set_character_set
-- Looking for mysql_set_character_set - not found
CMake Error at FindMySQL.cm:182 (MESSAGE):
  Versions < 4.1.13 (for MySQL 4.1.x) and < 5.0.7 for (MySQL 5.0.x) are not
  supported.  Please update your libraries.
Call Stack (most recent call first):
  CMakeLists.txt:173 (INCLUDE)

我认为错误是找不到mysql_set_character_set并且显示错误的错误消息。

0 个答案:

没有答案