• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

php8编译安装

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

wget https://www.php.net/distributions/php-8.0.0.tar.gz

tar zxvf php-8.0.0.tar.gz

cd php-8.0.0

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-opcache --enable-shmop --enable-pcntl --enable-cgi --enable-fpm --enable-sockets --enable-soap --enable-bcmath --enable-mbstring --enable-xml --with-zlib --with-mysqli --enable-pdo --with-pdo-mysql --with-curl --with-mhash --with-mcrypt --with-openssl --with-iconv

 

No package 'libcurl' found
yum install libcurl-devel

yum install libxml2-devel.x86_64

php编译安装报错:make: *** [sapi/cli/php] Error 1 解决办法
wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz
tar zxvf libiconv-1.15.tar.gz
cd libiconv-1.15
# ./configure --prefix=/usr/local
make
make install
ln -s /usr/local/lib/libiconv.so.2 /usr/lib64/

 

No package 'oniguruma' found
yum install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
zlib1g-dev \
libxml2-dev \
libzip-dev \
graphviz \

make 和 make install 报错

undefined reference to `curl_pushheader_bynum'
1
解决方法
yum remove curl-devel

 

 

Build complete.
Don't forget to run 'make test'.

[root@crius php-8.0.0]# make install
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20200930/
Installing PHP CLI binary: /usr/local/php/bin/
Installing PHP CLI man page: /usr/local/php/php/man/man1/
Installing PHP FPM binary: /usr/local/php/sbin/
Installing PHP FPM defconfig: /usr/local/php/etc/
Installing PHP FPM man page: /usr/local/php/php/man/man8/
Installing PHP FPM status page: /usr/local/php/php/php/fpm/
Installing phpdbg binary: /usr/local/php/bin/
Installing phpdbg man page: /usr/local/php/php/man/man1/
Installing PHP CGI binary: /usr/local/php/bin/
Installing PHP CGI man page: /usr/local/php/php/man/man1/
Installing build environment: /usr/local/php/lib/php/build/
Installing header files: /usr/local/php/include/php/
Installing helper programs: /usr/local/php/bin/
program: phpize
program: php-config
Installing man pages: /usr/local/php/php/man/man1/
page: phpize.1
page: php-config.1
/cshare/php-8.0.0/build/shtool install -c ext/phar/phar.phar /usr/local/php/bin/phar.phar
ln -s -f phar.phar /usr/local/php/bin/phar
Installing PDO headers: /usr/local/php/include/php/ext/pdo/


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
[php]Fatalerror:ClassExceptionnotfoundin发布时间:2022-07-10
下一篇:
PHP解析xml的方法发布时间:2022-07-10
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap