系统:Linux VM_136_197 2.6.16.60-0.21-64-domU-STATE-OC-110325 #3 SMP Fri Mar 25 12:19:39 CST 2011 x86_64 x86_64 x86_64 GNU/Linux
mysql版本:mysql-5.5.16
安装命令是:cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/var/tmp/mysql/ -DSYSCONFDIR=/etc -DMYSQL_UNIX_ADDR=/var/tmp/mysql/mysqld.sock -DDEFAULT_CHARSET=utf8 -DEXTRA_CHARSETS=all -DDEFAULT_COLLATION=utf8_general_ci -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_SPHINX_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DENABLED_LOCAL_INFILE=1 -DMYSQL_USER=mysql && make && make install
操作:安装成功后删除/usr/local/mysql后怎么也装不上去,报错误:
[ 66%] Built target qa_auth_interface
Scanning dependencies of target qa_auth_server
[ 67%] Building C object plugin/auth/CMakeFiles/qa_auth_server.dir/qa_auth_server.c.o
Linking C shared module qa_auth_server.so
[ 67%] Built target qa_auth_server
Scanning dependencies of target ftexample
[ 67%] Building C object plugin/fulltext/CMakeFiles/ftexample.dir/plugin_example.c.o
/home/server/mysql-5.5.24/plugin/fulltext/plugin_example.c:246: warning: type-punning to incomplete type might break strict-aliasing rules
/home/server/mysql-5.5.24/plugin/fulltext/plugin_example.c:247: warning: type-punning to incomplete type might break strict-aliasing rules
/home/server/mysql-5.5.24/plugin/fulltext/plugin_example.c:248: warning: type-punning to incomplete type might break strict-aliasing rules
/home/server/mysql-5.5.24/plugin/fulltext/plugin_example.c:249: warning: type-punning to incomplete type might break strict-aliasing rules
Linking C shared module mypluglib.so
[ 67%] Built target ftexample
Scanning dependencies of target audit_null
[ 67%] Building C object plugin/audit_null/CMakeFiles/audit_null.dir/audit_null.c.o
Linking C shared module adt_null.so
[ 67%] Built target audit_null
Scanning dependencies of target daemon_example
[ 67%] Building CXX object plugin/daemon_example/CMakeFiles/daemon_example.dir/daemon_example.cc.o
Linking CXX shared module libdaemon_example.so
[ 67%] Built target daemon_example
Scanning dependencies of target semisync_master
[ 67%] Building CXX object plugin/semisync/CMakeFiles/semisync_master.dir/semisync.cc.o
[ 67%] Building CXX object plugin/semisync/CMakeFiles/semisync_master.dir/semisync_master.cc.o
[ 67%] Building CXX object plugin/semisync/CMakeFiles/semisync_master.dir/semisync_master_plugin.cc.o
/home/server/mysql-5.5.24/plugin/semisync/semisync_master_plugin.cc:200: warning: type-punning to incomplete type might break strict-aliasing rules
/home/server/mysql-5.5.24/plugin/semisync/semisync_master_plugin.cc:201: warning: type-punning to incomplete type might break strict-aliasing rules
/home/server/mysql-5.5.24/plugin/semisync/semisync_master_plugin.cc:202: warning: type-punning to incomplete type might break strict-aliasing rules
/home/server/mysql-5.5.24/plugin/semisync/semisync_master_plugin.cc:203: warning: type-punning to incomplete type might break strict-aliasing rules
Linking CXX shared module semisync_master.so
[ 67%] Built target semisync_master
Scanning dependencies of target semisync_slave
[ 68%] Building CXX object plugin/semisync/CMakeFiles/semisync_slave.dir/semisync.cc.o
[ 68%] Building CXX object plugin/semisync/CMakeFiles/semisync_slave.dir/semisync_slave.cc.o
[ 68%] Building CXX object plugin/semisync/CMakeFiles/semisync_slave.dir/semisync_slave_plugin.cc.o
/home/server/mysql-5.5.24/plugin/semisync/semisync_slave_plugin.cc:167: warning: type-punning to incomplete type might break strict-aliasing rules
/home/server/mysql-5.5.24/plugin/semisync/semisync_slave_plugin.cc:168: warning: type-punning to incomplete type might break strict-aliasing rules
Linking CXX shared module semisync_slave.so
[ 68%] Built target semisync_slave
Scanning dependencies of target vio
[ 68%] Building C object vio/CMakeFiles/vio.dir/vio.c.o
[ 68%] Building C object vio/CMakeFiles/vio.dir/viosocket.c.o
[ 68%] Building C object vio/CMakeFiles/vio.dir/viossl.c.o
[ 69%] Building C object vio/CMakeFiles/vio.dir/viosslfactories.c.o
Linking C static library libvio.a
[ 69%] Built target vio
Scanning dependencies of target regex
[ 69%] Building C object regex/CMakeFiles/regex.dir/regcomp.c.o
[ 69%] Building C object regex/CMakeFiles/regex.dir/regerror.c.o
[ 69%] Building C object regex/CMakeFiles/regex.dir/regexec.c.o
[ 69%] Building C object regex/CMakeFiles/regex.dir/regfree.c.o
[ 69%] Building C object regex/CMakeFiles/regex.dir/reginit.c.o
Linking C static library libregex.a
[ 69%] Built target regex
Scanning dependencies of target thr_lock
[ 69%] Building C object mysys/CMakeFiles/thr_lock.dir/thr_lock.c.o
Linking C executable thr_lock
[ 69%] Built target thr_lock
Scanning dependencies of target clientlib
[ 69%] Building C object libmysql/CMakeFiles/clientlib.dir/get_password.c.o
[ 69%] Building C object libmysql/CMakeFiles/clientlib.dir/libmysql.c.o
[ 69%] Building C object libmysql/CMakeFiles/clientlib.dir/errmsg.c.o
[ 69%] Building C object libmysql/CMakeFiles/clientlib.dir/__/sql-common/client.c.o
/home/server/mysql-5.5.24/sql-common/client.c:1936: error: ‘cli_list_fields’ undeclared here (not in a function)
/home/server/mysql-5.5.24/sql-common/client.c:1937: error: ‘cli_read_prepare_result’ undeclared here (not in a function)
/home/server/mysql-5.5.24/sql-common/client.c:1938: error: ‘cli_stmt_execute’ undeclared here (not in a function)
/home/server/mysql-5.5.24/sql-common/client.c:1939: error: ‘cli_read_binary_rows’ undeclared here (not in a function)
/home/server/mysql-5.5.24/sql-common/client.c:1940: error: ‘cli_unbuffered_fetch’ undeclared here (not in a function)
/home/server/mysql-5.5.24/sql-common/client.c:1942: error: ‘cli_read_statistics’ undeclared here (not in a function)
/home/server/mysql-5.5.24/sql-common/client.c:2325: warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/server/mysql-5.5.24/sql-common/client.c:2326: warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/server/mysql-5.5.24/sql-common/client.c:2327: warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/server/mysql-5.5.24/sql-common/client.c: In function ‘run_plugin_auth’:
/home/server/mysql-5.5.24/sql-common/client.c:2840: warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/server/mysql-5.5.24/sql-common/client.c:2910: warning: dereferencing type-punned pointer will break strict-aliasing rules
/home/server/mysql-5.5.24/sql-common/client.c: In function ‘cli_read_query_result’:
/home/server/mysql-5.5.24/sql-common/client.c:3807: warning: implicit declaration of function ‘handle_local_infile’
make[2]: *** [libmysql/CMakeFiles/clientlib.dir/__/sql-common/client.c.o] Error 1
make[1]: *** [libmysql/CMakeFiles/clientlib.dir/all] Error 2
make: *** [all] Error 2