LAMP架构安装mysql出现错误

LAMP架构安装mysql出现错误

报错提示

LAMP架构安装mysql出现错误_第1张图片

cmake
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql
-DDEFAULT_CHARSET=utf8
-DDEFAULT_COLLATION=utf8_general_ci
-DEXTRA_CHARSETS=all
-DSYSCONFIDIR=/etc
-DMYSQL_DATADIR=/home/mysql/
-DMYSQL_UNIX_ADDR=/home/mysql/mysql.sock
– Running cmake version 2.8.12.2
– Could NOT find Git (missing: GIT_EXECUTABLE)
– MySQL 5.6.26
– Packaging as: mysql-5.6.26-Linux-x86_64
– HAVE_VISIBILITY_HIDDEN
– HAVE_VISIBILITY_HIDDEN
– HAVE_VISIBILITY_HIDDEN
– Using cmake version 2.8.12.2
– Not building NDB
– Library mysqlclient depends on OSLIBS -lpthread;m;dl
Warning: Bison executable not found in PATH
– Library mysqlserver depends on OSLIBS -lpthread;m;crypt;dl
– CMAKE_BUILD_TYPE: RelWithDebInfo
– COMPILE_DEFINITIONS: HAVE_CONFIG_H
– CMAKE_C_FLAGS: -Wall -Wextra -Wformat-security -Wvla -Wwrite-strings -Wdeclaration-after-statement
– CMAKE_CXX_FLAGS: -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter
– CMAKE_C_FLAGS_RELWITHDEBINFO: -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF
– CMAKE_CXX_FLAGS_RELWITHDEBINFO: -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF
– Configuring done
– Generating done
– Build files have been written to: /opt/mysql/mysql-5.6.26

解决办法

yum install -y git

rm CMakeCache.txt

你可能感兴趣的:(故障集结地)