本文主要是介绍Mysql安装出现的问题Building CXX object sql/CMakeFiles/sql.dir/mysqld.cc.o,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
[ 84%] Building CXX object sql/CMakeFiles/sql.dir/mysqld.cc.o /root/workspace/mysql-5.5.11/sql/mysqld.cc: In function ‘void handle_connections_sockets()’: /root/workspace/mysql-5.5.11/sql/mysqld.cc:5213: error: invalid conversion from ‘size_socket*’ to ‘socklen_t*’ /root/workspace/mysql-5.5.11/sql/mysqld.cc:5213: error: initializing argument 3 of ‘int accept(int, sockaddr*, socklen_t*)’ /root/workspace/mysql-5.5.11/sql/mysqld.cc:5280: error: invalid conversion from ‘int*’ to ‘socklen_t*’ /root/workspace/mysql-5.5.11/sql/mysqld.cc:5280: error: initializing argument 3 of ‘int getsockname(int, 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
解决方案,在mysql的解压目录下执行命令:
>make clean
>rm CMakeCache.txt
这篇关于Mysql安装出现的问题Building CXX object sql/CMakeFiles/sql.dir/mysqld.cc.o的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!