首頁  >  問答  >  主體

centos 6.6 x86_64 安装 mysql 5.5.32出错

安装命令如下

cmake -DCMAKE_INSTALL_PREFIX=/application/mysql-5.5.32 \
-DMYSQL_DATADIR=/application/mysql-5.5.32/data \
-DMYSQL_UNIX_ADDR=/application/mysql-5.5.32/tmp/mysql.sock \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DEXTRA_CHARSETS=gbk,gb2312,utf8,ascii \
-DENABLED_LOCAL_INFILE=ON \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_FEDERATED_STORAGE_ENGINE=1 \
-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \
-DWITH_FAST_MUTEXES=1 \
-DWITH_ZLIB=bundled \
-DENABLED_LOCAL_INFILE=1 \
-DWITH_READLINE=1 \
-DWITH_EMBEDDED_SERVER=1 \
-DWITH_DEBUG=0 \
-DWITHOUT_PARTITION_STORAGE_ENGINE=1 \ 
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_ARCHIVE_STORAGE_ENGINE=1 \
-DENABLED_LOCAL_INFILE=1 \
-DEXTRA_CHARSETS=all

出错代码如下

Linking CXX static library libsql.a
[ 84%] Built target sql
Scanning dependencies of target explain_filename-t
[ 84%] Building CXX object unittest/mysys/CMakeFiles/explain_filename-t.dir/explain_filename-t.cc.o
Linking CXX executable explain_filename-t
../../sql/libsql.a(handler.cc.o): In function `get_ha_partition(partition_info*)':
/root/download/mysql-5.5.32/sql/handler.cc:347: undefined reference to `ha_partition::ha_partition(handlerton*, partition_info*)'
/root/download/mysql-5.5.32/sql/handler.cc:349: undefined reference to `ha_partition::initialize_partition(st_mem_root*)'
../../sql/libsql.a(sql_partition_admin.cc.o): In function `Alter_table_truncate_partition_statement::execute(THD*)':
/root/download/mysql-5.5.32/sql/sql_partition_admin.cc:167: undefined reference to `ha_partition::truncate_partition(Alter_info*, bool*)'
collect2: ld returned 1 exit status
make[2]: *** [unittest/mysys/explain_filename-t] Error 1
make[1]: *** [unittest/mysys/CMakeFiles/explain_filename-t.dir/all] Error 2
make: *** [all] Error 2

PHP中文网PHP中文网2742 天前636

全部回覆(0)我來回復

無回覆
  • 取消回覆