日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > php >内容正文

php

ubuntu 编译php5.6,Ubuntu 16.04 源码编译 PHP5.6

發布時間:2024/1/23 php 21 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ubuntu 编译php5.6,Ubuntu 16.04 源码编译 PHP5.6 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

源碼編譯PHP5.6

//更新依賴

sudo apt-get update

sudo apt-get install build-essential

//安裝依賴

sudo apt-get install -y autoconf libtool re2c libxml2-dev openssl libcurl4-openssl-dev libbz2-dev libjpeg-dev libpng12-dev libfreetype6-dev libldap2-dev libmcrypt-dev libmysqlclient-dev libxslt1-dev libxt-dev libpcre3-dev libxpm-dev libt1-dev libgmp-dev libpspell-dev librecode-dev libreadline6-dev bison libtidy-dev libxpm-dev libssl-dev libgmp-dev

//鏈接到合適的地方

sudo ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/

sudo ln -s /usr/lib/x86_64-linux-gnu/liblber.so /usr/lib/

sudo ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h

//下載PHP源碼

wget -O php.tar.xz https://secure.php.net/get/php-5.6.32.tar.xz/from/this/mirror

//解壓源碼

tar -Jxf /usr/src/php.tar.xz -C /usr/src/php --strip-components=1

//更新依賴

sudo apt-get update

sudo apt-get install build-essential

//安裝依賴

sudo apt-get install -y autoconf libtool re2c libxml2-dev openssl libcurl4-openssl-dev libbz2-dev libjpeg-dev libpng12-dev libfreetype6-dev libldap2-dev libmcrypt-dev libmysqlclient-dev libxslt1-dev libxt-dev libpcre3-dev libxpm-dev libt1-dev libgmp-dev libpspell-dev librecode-dev libreadline6-dev bison libtidy-dev libxpm-dev libssl-dev libgmp-dev libpspell-dev libsnmp-dev

//鏈接到合適的地方

sudo ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/

sudo ln -s /usr/lib/x86_64-linux-gnu/liblber.so /usr/lib/

sudo ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h

//configure

sudo ./buildconf

sudo ./configure \

--prefix=/usr/local/etc/php \

--includedir=/usr/include \

--enable-opcache \

--enable-ctype \

--enable-fpm \

--enable-tokenizer \

--enable-fileinfo \

--enable-pdo \

--enable-sockets \

--enable-exif \

--enable-soap \

--enable-ftp \

--enable-wddx \

--enable-pcntl \

--enable-soap \

--enable-bcmath \

--enable-mbstring \

--enable-dba \

--enable-gd-native-ttf \

--enable-gd-jis-conv \

--enable-zip \

--enable-calendar \

--enable-shmop \

--enable-sysvmsg \

--enable-sysvsem \

--enable-sysvshm \

--with-mysqli \

--with-pdo-mysql \

--with-pdo-sqlite \

--with-iconv \

--with-gmp \

--with-pspell \

--with-gettext \

--with-xmlrpc \

--with-openssl \

--with-mhash \

--with-mcrypt \

--with-xsl \

--with-curl \

--with-pcre-regex \

--with-gd \

--with-jpeg-dir=/usr \

--with-png-dir=/usr \

--with-zlib-dir=/usr \

--with-xpm-dir=/usr \

--with-freetype-dir=/usr \

--with-gettext=/usr \

--with-zlib=/usr \

--with-bz2=/usr \

--with-recode=/usr \

--with-ldap \

--with-pear \

--with-readline \

--with-config-file-path=/usr/local/etc/php \

--with-config-file-scan-dir=/usr/local/etc/php/conf.d

//生成和安裝

make

sudo make install

創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎

總結

以上是生活随笔為你收集整理的ubuntu 编译php5.6,Ubuntu 16.04 源码编译 PHP5.6的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。