标签:错误 ati com pre c++ tcp gcc 查看 踩坑
1、准备mysql安装包
mysql-5.5.20.tar.gz
2、解压安装包
tar -zxvf mysql-5.5.20.tar.gz
3、预编译
查看mysql解压包,没有./configure,存在的预编译方式为cmake,系统没有cmake,安装
yum install cmake ncurses-devel ncurses -y
4、直接编译
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql/-DMYSQL_UNIX_ADDR=/tmp/mysql.sock-DMYSQL_DATADIR=/data/mysql-DSYSCONFDIR=/etc-DMYSQL_USER=mysql-DMYSQL_TCP_PORT=3306-DWITH_XTRADB_STORAGE_ENGINE=1-DWITH_INNOBASE_STORAGE_ENGINE=1-DWITH_PARTITION_STORAGE_ENGINE=1-DWITH_BLACKHOLE_STORAGE_ENGINE=1-DWITH_MYISAM_STORAGE_ENGINE=1-DWITH_READLINE=1-DENABLED_LOCAL_INFILE=1-DWITH_EXTRA_CHARSETS=1-DDEFAULT_CHARSET=utf8-DDEFAULT_COLLATION=utf8_general_ci-DEXTRA_CHARSETS=all-DWITH_BIG_TABLES=1-DWITH_DEBUG=0
报错:
CMake Error:CMAKE_C_COMPILER not set,after EnableLanguage
需要安装gcc-c++
yum install gcc-c++ -y
这个时候再重新编译仍会出现报错(错误提示就不写了),需要执行如下操作:
cd mysql-5.5.20 rm CMakeCache.txt
再编译正常
5、安装
make make install
之后,配置...........
标签:错误 ati com pre c++ tcp gcc 查看 踩坑
原文地址:https://www.cnblogs.com/VkeLixt/p/12729192.html