学习笔记

导航

 
yum -y install libxslt-devel net-snmp-devel pspell-devel postgresql-devel unixODBC-devel mysql-devel pcre-devel libxml2-devel libxslt-devel net-snmp-devel aspell-devel sqlite-devel postgresql-devel unixODBC-devel openldap-devel libc-client-devel gmp-devel libXpm-devel libpng-devel libjpeg-devel db4-devel curl-devel bzip2-devel libxslt-devel net-snmp-devel postgresql-devel openldap-devel openldap libc-client-devel

 1. 下载包

wget http://mirrors.sohu.com/php/php-5.6.2.tar.gz

  2. 解压

 tar -zxvf php-5.6.2.tar.gz
 cd php-5.6.2

 3. 编译安装

 依赖的话提示缺啥就安装

  

'./configure'  '--prefix=/usr/local/php5.4.9' '--enable-fpm'  '--enable-inline-optimization' '--disable-debug' '--disable-rpath' '--enable-shared' '--enable-soap' '--with-xmlrpc' '--with-openssl' '--with-mcrypt' '--with-pcre-regex' '--with-sqlite3' '--with-zlib' '--enable-bcmath' '--with-iconv' '--with-bz2' '--enable-calendar' '--with-curl' '--with-cdb' '--enable-dom' '--enable-exif' '--enable-fileinfo' '--enable-filter' '--with-pcre-dir' '--enable-ftp' '--with-gd' '--with-openssl-dir' '--with-jpeg-dir' '--with-png-dir' '--with-freetype-dir' '--enable-gd-native-ttf' '--enable-gd-jis-conv' '--with-gettext' '--with-gmp' '--with-mhash' '--enable-json' '--enable-mbstring' '--enable-mbregex' '--enable-mbregex-backtrack' '--with-libmbfl' '--with-onig' '--with-mysql=mysqlnd' '--enable-pdo' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-zlib-dir' '--with-pdo-sqlite' '--with-readline' '--enable-session' '--enable-shmop' '--enable-simplexml' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--with-libxml-dir' '--with-xsl' '--enable-zip' '--enable-mysqlnd-compression-support' '--with-pear'
make && make install

 

 


 

 

posted on 2022-12-08 20:57  weizy81  阅读(24)  评论(0编辑  收藏  举报