1:
cd cmake-2.8.11.2
./configure --prefix=/usr/local/cmake
make
make install
###到此cmake已经安装
2:
tar zxvf Percona-Server-5.6.12-rc60.4.tar.gz
cd Percona-Server-5.6.12-rc60.4
/usr/local/cmake/bin/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql5.6/ -DMYSQL_USER=mysql -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=all -DWITH_READLINE=1 -DWITH_SSL=system -DWITH_EMBEDDED_SERVER=1 -DWITH_ZLIB=system -DWITH_LIBWRAP=1 -DWITH_INNOBASE_STORAFE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DWITH_MYISAM_STORAGE_ENGINE=1 -DENABLE_LOCAL_INFILE=1 -DMYSQL_UNIX_ADDR=/tmp/mysql.sock
make
make install 即可安装
但在configure和make的时候遇到了几个问题,记录如下:
1:
解决方法:
yum install tcp_wrappers-devel
安装后,再percona-mysql所在地文件夹下,执行cmake *** 还是报和上面同样的错误
解决方法:
/root/Percona-Server-5.6.14-rel62.0
rm -f CMakeCache.txt
尽管cmake可以过去,但make时还是报错,最好的解决方法是删除已经解压后的目录,
重新tar zxvf Percona-Server-5.6.14-rel62.0.tar.gz 生成
然后cmake,make 即可正常
2:
-- Library
mysqlclient depends on OSLIBS
-lpthread;/usr/lib64/libz.so;m;rt;/usr/lib64/libssl.so;/usr/lib64/libcrypto.so;dl
-- Googlemock was
not found. gtest-based unit tests will be disabled. You can run cmake .
-DENABLE_DOWNLOADS=1 to automatically download and build required components
from source.
解决方法:
在camke的最后添加参数-DENABLE_DOWNLOADS=1
3:
解决方法:
yum –y install
bison
yum –y install
bison-devel
到此就可以configure过去了!
4:
但在make时却报错:
/root/Percona-Server-5.6.12-rc60.4/sql/mysqld.cc: In function ‘void handle_connections_sockets()’:
/root/Percona-Server-5.6.12-rc60.4/sql/mysqld.cc:6357: error: ‘ip_sock’ was not declared in this scope
make[2]: *** [sql/CMakeFiles/sql.dir/mysqld.cc.o] Error 1
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make: *** [all] Error 2
解决方法:
make clean
rm -f CMakeCache.txt
再次make即可
然后就和前面的版本处理没什么区别了!
5:空间太小了
删除多余的数据,腾出些空间就可以了
阅读(1953) | 评论(0) | 转发(0) |