CentOS安装mariadb-10.0.12和php-5.5.15

1:

yum install cmake make ncurses-devel gcc-c++ bison

2:

cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql

3:

yum install wget make gcc gcc-c++ bison autoconf patch 
pcre-devel zlib-devel openssl-devel net-snmp-devel 
ncurses-devel libxml2-devel bzip2-devel gd-devel libcurl-devel 
libmcrypt-devel

4:

./configure --prefix=/usr/local/php 
--enable-fpm --enable-gd-native-ttf --enable-gd-jis-conv --enable-soap 
--enable-zip --enable-pcntl --enable-sockets --enable-mbstring --enable-xml 
--with-bz2 --with-openssl --with-iconv --with-zlib --with-curl 
--with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-mcrypt 
--with-mysql=/usr/local/mysql 
--with-mysqli=/usr/local/mysql/bin/mysql_config
飞儿传媒www.firadio.com
原文地址:https://www.cnblogs.com/firadio/p/3899351.html