centos 6.4 x86_64 (minimal) 编译安装percona
2023-09-14 09:00:07 时间
开始准备工作
yum install gcc* c++ * autoconf automake zlib* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel* yum install cmake* yum install make
开始编译工作,使用默认编译参数
tar zxvf Percona-Server-5.5.24-rel26.0.tar.gz cd Percona-Server-5.5.24-rel26.0
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/data/mysql -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DMYSQL_USER=mysql -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_DEBUG=0 -Wno-dev
编译错误
CMake Error at cmake/bison.cmake:78 (MESSAGE): Bison (GNU parser generator) is required to build MySQL.Please install bison. Call Stack (most recent call first): sql/CMakeLists.txt:189 (RUN_BISON)
安装依赖库
yum install bison.x86_64 bison-devel.x86_64
重新编译
make clean rm -f CMakeCache.txt cmake .... make make install
如果发现以下编译问题
DEFAULT_CHARSET=utf8 -DMYSQL_USER=mysql -DWITH_DEBUG=0 -- MySQL 5.5.24 -- Packaging as: mysql-5.5.24-Linux-x86_64 -- Configuring done CMake Warning (dev) in sql/CMakeLists.txt: Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link interface. Run "cmake --help-policy CMP0022" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Target "mysqld" has an INTERFACE_LINK_LIBRARIES property which differs from its LINK_INTERFACE_LIBRARIES properties. INTERFACE_LINK_LIBRARIES: -lpthread;sql;mysys LINK_INTERFACE_LIBRARIES: rt This warning is for project developers. Use -Wno-dev to suppress it.
先安装依赖库
yum install ncurses ncurses-*
编译成功后,开始安装二进制包
#准备工作目录 mkdir -p /data/mysql groupadd mysql useradd -r -g mysql mysql cd /usr/local/mysq chown -R mysql . chgrp -R mysql . scripts/mysql_install_db --user=mysql --datadir=/data/mysql chown -R root . chown -R mysql /data/mysql # Next command is optional cp support-files/my-medium.cnf /etc/my.cnf bin/mysqld_safe --user=mysql & # Next command is optional cp support-files/mysql.server /etc/init.d/mysql.server
相关文章
- CentOS 6.3 中安装VirtualBOX增强工具失败:Building the main Guest Additions module[FAILED]
- CentOS安装NVIDIA驱动记
- 在CentOS 7上安装Nginx服务器
- Centos系统安装JDK详细图文教程
- centos下编译安装mysql5.6
- CentOS 7.4安装nodejs & nginx & pm2
- CentOS 7下编译安装Nginx+PHP
- CentOS 6.4下编译安装MySQL 5.6.14
- 在CentOS 6.4中编译安装gcc 4.8.1
- centos 6.5 搭建php
- 在 CentOS 6.x上安装 docker.io成功
- Centos 编译安装nodejs&express框架
- Centos 6.4 安装dnsmasq
- centos 7修改主机名
- centos 7 下 rabbitmq 3.8.0 & erlang 22.1 源码编译安装
- CentOS 6.4 64-bit编译安装ffmpeg
- CentOS 7下编译安装Nginx+PHP
- CentOS 文件搜索find
- CentOS 7 安装 vsftpd
- centos 7 docker 安装seafile
- Centos 6.5 安装和使用docker
- 安装CentOS 7.4 可能会出现的坑以及解决方案
- Docker安装CentOS
- 008-Centos 7.x安装 Ambari 2.2.2 + HDP 2.4.2 搭建Hadoop集群
- 【Linux之Shell脚本实战】Centos最小化安装环境配置脚本
- CentOS 7 源码编译安装openssl —— 筑梦之路
- 最具体的历史centos下一个 postfix + extmail + dovecot + maildrop 安装注意事项2014更新
- linux(centos)查看chrome版本号
- CentOS Linux搭建SVN服务器
- centos'的yum安装php的memcache扩展
- 怎样安装CentOS 6.6之三:磁盘分区的划分和修改
- CentOS 7 安装 Ansible