- 论坛徽章:
- 0
|
在CentOS 下源码安装mysql,系统环境如下:
CentOS 6.5
ncurses-devel-5.7-3.20090208.e16.i686
gcc-4.4.7-4.e16.i686
bison-2.4.1-5.e16.i686
cmake-2.6.4-5.e16.i686
make-3.81-20.e16.i686
gcc-c++ -4.4.7-4.e16.i686
MySQL源码包:mysql-5.6.20.tar.gz
解压完源码包之后执行cmake命令如下:
[root@localhost mysql]# cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/usr/local/mysql/data -DSYSCONFDIR=/etc
-DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1
-DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock
-DMYSQL_TCP_PORT=3306 -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8 -DMYSQL_USER=mysql
-DDEFAULT_COLLATION=utf8-general_ci
以上cmake命令执行成功;
接下来执行make命令:
[root@localhost mysql]# make
出现错误如下:
/usr/local/mysql/mysql-5.6.20/sql/mysqld.cc: In function ‘void handle_connections_sockets()’:
/usr/local/mysql/mysql-5.6.20/sql/mysqld.cc:6321: error: invalid conversion from ‘size_socket*’ to ‘socklen_t*’
/usr/local/mysql/mysql-5.6.20/sql/mysqld.cc:6321: error: initializing argument 6 of ‘MYSQL_SOCKET inline_mysql_socket_accept(const char*, uint, PSI_socket_key, MYSQL_SOCKET, sockaddr*, socklen_t*)’
make[2]: *** [sql/CMakeFiles/sql.dir/mysqld.cc.o] Error 1
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make: *** [all] Error 2
不知道这个问题是什么原因造成的?求大神指导 |
|