亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

PHP安裝

標簽:
PHP

下载php:

[rot@localhost httpd-2.2.16]# cd /usr/local/src[root@localhost src]# wget http://am1.php.net/distributions/php-5.3.27.tar.gz

解压:

[root@localhost src]# tar zxf php-5.3.27.tar.gz

配置编译参数:

[root@localhost src]# cd php-5.3.27
[root@localhost php-5.3.27]# ./configure \

--prefix=/usr/local/php \

--with-apxs2=/usr/local/apache/bin/apxs \

--with-config-file-path=/usr/local/php/etc  \
--with-mysql=/usr/local/mysql \
--with-libxml-dir \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--with-iconv-dir \
--with-zlib-dir \
--with-bz2 \
--with-openssl \
--with-mcrypt \
--enable-soap \
--enable-gd-native-ttf \
--enable-mbstring \
--enable-sockets \
--enable-exif \
--disable-ipv6



error: jpeglib.h not found.

解决办法: yum install libjpeg-devel


error: mcrypt.h not found. Please reinstall libmcrypt.

解决办法: wget -P /etc/yum.repos.d/  http://mirrors.aliyun.com/repo/epel-6.repo

               yum install -y  libmcrypt-devel 

error: Please reinstall the BZip2 distribution

解决办法: yum install bzip2-devel.x86_64 -y

error: Cannot find OpenSSL's <evp.h>

解决办法: yum install openssl openssl-devel

               ln -s /usr/lib64/libssl.so /usr/lib/

error: xml2-config not found. Please check your libxml2 installation.

解决办法:yum install libxml2-devel


error: mcrypt.h not found. Please reinstall libmcrypt”

解决方法:

解决办法一
1、安装第三方yum源
wget http://www.atomicorp.com/installers/atomic
sh ./atomic
2、使用yum命令安装

yum  install  php-mcrypt  libmcrypt  libmcrypt-devel

解决办法二、

使用php mcrypt 前必须先安装Libmcrypt

libmcrypt源码安装方法:


cd /usr/local/src

wget http://softlayer.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.8.tar.gz

tar -zxvf libmcrypt-2.5.8.tar.gz

cd /usr/local/src/libmcrypt-2.5.8

./configure --prefix=/usr/local

make

make install



configure: error: png.h not found.
复制代码 代码如下:
yum -y install libpng-devel

configure: error: freetype.h not found.
复制代码 代码如下:
yum -y install freetype-devel

點擊查看更多內容
TA 點贊

若覺得本文不錯,就分享一下吧!

評論

作者其他優質文章

正在加載中
  • 推薦
  • 評論
  • 收藏
  • 共同學習,寫下你的評論
感謝您的支持,我會繼續努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進行掃碼打賞哦
今天注冊有機會得

100積分直接送

付費專欄免費學

大額優惠券免費領

立即參與 放棄機會
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號

舉報

0/150
提交
取消