资讯专栏INFORMATION COLUMN

debian7.0 编译安装php7.0.1

AlexTuan / 3458人阅读

摘要:安装编译器获取安装包安装包进行编译安装用来生成脚本编译安装报错处理

安装编译器

apt-get install build-essential autoconf automake libtool bison re2c

获取php安装包

wget https://downloads.php.net/~ab/php-7.0.13RC1.tar.gz

安装dev包

apt-get install libxml2-dev libssl-dev libbz2-dev libjpeg-dev libpng-dev libxpm-dev libfreetype6-dev libgmp-dev libgmp3-dev libmcrypt-dev libmysqlclient15-dev libpspell-dev librecode-dev

进行编译安装

./buildconf            //用来生成configure脚本
./configure 
 --prefix=/usr 
 --with-config-file-path=/etc 
 --enable-mbstring 
 --enable-zip 
 --enable-bcmath 
 --enable-pcntl 
 --enable-ftp 
 --enable-exif 
 --enable-calendar 
 --enable-sysvmsg 
 --enable-sysvsem 
 --enable-sysvshm 
 --enable-wddx 
 --with-curl 
 --with-mcrypt 
 --with-iconv 
 --with-gmp 
 --with-pspell 
 --with-gd 
 --with-jpeg-dir=/usr 
 --with-png-dir=/usr 
 --with-zlib-dir=/usr 
 --with-xpm-dir=/usr 
 --with-freetype-dir=/usr 
 --with-t1lib=/usr 
 --enable-gd-native-ttf 
 --enable-gd-jis-conv 
 --with-openssl 
 --with-pdo-mysql=/usr 
 --with-gettext=/usr 
 --with-zlib=/usr 
 --with-bz2=/usr 
 --with-recode=/usr 
 --with-mysqli=/usr/bin/mysql_config

编译 安装

make && make install

报错处理

Please reinstall the libcurl distribution
aptitude search libcurl4
aptitude install libcurl4-gnutls-dev
 Cannot find OpenSSL’
wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz

tar -zxvf openssl-1.0.2j.tar.gz

cd openssl-1.0.2j

./config

make && make install
configure: error: Unable to locate gmp.h
sudo apt-get install libgmp-dev libgmp3-dev 
ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
Can not find recode.h anywhere under /usr /usr/local /usr /opt.
apt-get install librecode-dev
Cannot find pspell
apt-get install libpspell-dev
Please reinstall the mysql distribution
apt-get install libmysqlclient15-dev
mcrypt.h not found. Please reinstall libmcrypt.
apt-get install libmcrypt-dev
xml2-config not found
apt-get install libxml2-dev

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/60936.html

相关文章

  • debian7.0 编译安装php7.0.1

    摘要:安装编译器获取安装包安装包进行编译安装用来生成脚本编译安装报错处理 安装编译器 apt-get install build-essential autoconf automake libtool bison re2c 获取php安装包 wget https://downloads.php.net/~ab/php-7.0.13RC1.tar.gz 安装dev包 apt-get insta...

    baihe 评论0 收藏0
  • CentOS7编译安装Apache Httpd 2.4.20及rpm包制作小记

    摘要:但是执行这个命令后我们发现,它会提示我们缺少相关依赖包。通常依赖包可以通过指令直接安装,下面是需要特殊安装的依赖包。安装完依赖包后,编译就是已经很轻松的事情了。相信很多同学都是在本地编译,然后上传到生产环境安装的吧,所以这一点需要提示一下。 showImg(https://segmentfault.com/img/remote/1460000006768765); httpd(Apac...

    crossea 评论0 收藏0
  • CentOS7编译安装Apache Httpd 2.4.20及rpm包制作小记

    摘要:但是执行这个命令后我们发现,它会提示我们缺少相关依赖包。通常依赖包可以通过指令直接安装,下面是需要特殊安装的依赖包。安装完依赖包后,编译就是已经很轻松的事情了。相信很多同学都是在本地编译,然后上传到生产环境安装的吧,所以这一点需要提示一下。 showImg(https://segmentfault.com/img/remote/1460000006768765); httpd(Apac...

    187J3X1 评论0 收藏0
  • CentOS7编译安装Apache Httpd 2.4.20及rpm包制作小记

    摘要:但是执行这个命令后我们发现,它会提示我们缺少相关依赖包。通常依赖包可以通过指令直接安装,下面是需要特殊安装的依赖包。安装完依赖包后,编译就是已经很轻松的事情了。相信很多同学都是在本地编译,然后上传到生产环境安装的吧,所以这一点需要提示一下。 showImg(https://segmentfault.com/img/remote/1460000006768765); httpd(Apac...

    oogh 评论0 收藏0
  • Elam的caffe笔记之配置篇(一):CentOS6.5编译安装gcc4.8.2

    配置要求: 系统:centos6.5 目标:基于CUDA8.0+Opencv3.1+Cudnnv5.1+python3.6接口的caffe框架 gcc是linux编译安装必备的编译器 CentOS6.5自带的gcc版本是4.4.7,并不支持C++11查询后可得需要版本高于4.8.1的gcc才能支持C++11输入 yum info gcc 发现可升级的gcc版本低于4.8.1,只能手动编译安装4....

    wing324 评论0 收藏0

发表评论

0条评论

最新活动
阅读需要支付1元查看
<