1、安裝依賴
yum -y install gcc gcc-c++ ncurses ncurses-devel cmake bison
2、新建使用者組和使用者mysql
groupadd mysql
useradd -g mysql -s /sbin/nologin mysql 這裡設定不讓mysql使用者登入shell
3、建立mysql安裝目錄和data目錄
mkdir /usr/local/mysql
mkdir /usr/local/mysql/data
並賦予許可權
chown -r mysql:mysql /usr/local/mysql
wget
5、解壓原始碼包
tar -xzvf mysql-5.6.40.tar.gz
進入解壓後的目錄
cd mysql-5.6.40
6、預編譯mysql
cmake -dcmake_install_prefix=/usr/local/mysql -dmysql_datadir=/usr/local/mysql/data -dsysconfdir=/etc -dwith_myisam_storage_engine=1 -dwith_innobase_storage_engine=1 -dwith_memory_storage_engine=1 -dwith_readline=1 -dmysql_unix_addr
CentOS7下原始碼編譯安裝MySQL5 6 4
cd usr local src mysql5.6.4 mkdir usr local mysql yum install make cmake gcc gcc c bison bison devel ncurses ncurses devel autoconf automake yum insta...
centos7下原始碼編譯安裝FreeSwitch
3 安裝freewitch軟體的依賴安裝包 yum install y autoconf automake libtool gcc c ncurses devel make zlib devel libjpeg devel libevent openssl devel e2fsprogs devel...
centos7下原始碼編譯greenplum
安裝必備的包 yum install y perl extutils embed readline devel zlib devel pam devel libxml2 devel libxslt devel openldap devel python devel gcc c openssl dev...