当前位置:网站首页>What happens when you get stuck compiling and installing MySQL database in Linux system?
What happens when you get stuck compiling and installing MySQL database in Linux system?
2022-07-19 02:54:00 【What are you doing? Go and study】
When you compile and install half , Card to 77% Don't move
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

When installing the one button package , People often react when installing mysql when “ Get stuck ”,
It's not stuck , It is mysql It takes a long time to compile and install , More than others apache,php,nginx Any one will take a long time
It's usually 10 To 30 Different minutes , The details also depend on the hardware configuration of the machine , High configuration machines will be faster , Low configuration is naturally a little longer
So please use the compile time of one click package , Be patient
It can also be done in the following ways , determine mysql Is it during installation or is it really stuck
stay ssh Connect the terminal , use top See the resources
If you can see something make,cc1,install The process of waiting is beating , The instructions are in the process of installation , Just wait patiently
If there is nothing , Maybe it's really stuck or the network is broken
Sure Ctrl+c Terminate installation , Enter into your mysql Unzip the directory and execute the following command make cleanrm CMakeCache.txt
Then recompile the installation
边栏推荐
猜你喜欢
随机推荐
RHCE ansible second operation
Learning network foundation
二进制安装kubernetes 1.24.1
RHCE Study Guide Chapter 5 VIM editor
Net-Snmp 相关命令
【NoSQL】redis主从、哨兵、集群
升级kubernetes 1.23.2到1.24.1
Let's learn about awk~
2、AsyncTool框架实战使用
Upgrade kubernetes 1.23.2 to 1.24.1
DHCP原理与配置
String Full Permutation Problem
Win10 下OneDrive 失效重装
TCP three handshakes and four disconnects
GFS分布式文件系统
Rip comprehensive experiment
Bladex - a well-designed microservice architecture
MySQL备份和恢复
RHCE8学习指南 第6章 归档与压缩
RHCE8学习指南 第7章 服务管理









