易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 7|回复: 2
收起左侧

php8.3版本编译安装过程

[复制链接]
发表于 2024-1-2 10:12:01 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
安装基础插件:
% u1 Y( e3 X# Z' }6 Dyum install -y gcc gcc-c++ autoconf automake zlib zlib-devel openssl openssl-devel pcre pcre-devel% ]; c# ?5 i% g) A) \
. Q% H' A$ A/ t" E! p6 P) ~9 L* Z
解压php安装包:
$ t7 U, z) F1 w* a. m# t
4 k+ {2 I- B& p2 V# Jtar -zxvf php-8.3.0.tar.gz
  h7 G% ^! b$ n* N% b编译:
/ D' D- U8 g' u' Tcd php-8.3.0/
: A5 K- G4 A1 h0 t5 s; z5 W" U./configure --prefix=/usr/local/php --with-apxs2=/usr/local/httpd/bin/apxs  --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib  --enable-fpm --enable-xml --enable-opcache --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi  --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip  --without-pear --with-gettext --with-mime-magic  
! f* ~+ ?) k& `( A0 d5 \6 O7 A
3 x" c7 ?! ^& P! T编译成功:; ~; v  O8 O" B5 a& C
./configure --prefix=/usr/local/php  --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysqli=FOO --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib  --enable-fpm --enable-xml  --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi  --enable-force-cgi-redirect --enable-mysqlnd --with-pdo-mysql=mysqlnd --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip  --with-mime-magic --with-mysqli --with-pdo-mysqli
 楼主| 发表于 2024-1-2 10:23:51 | 显示全部楼层
yum install -y libcurl # v. A" f+ t7 a8 s
0 @  X! L! O0 h0 b) H
198  yum install -y libxml2-devel) i' x5 e2 S' V* f/ ]1 c* j
  199  ./configure --prefix=/usr/local/php  --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib  --enable-fpm --enable-xml --enable-opcache --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi  --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip  --without-pear --with-gettext --with-mime-magic % p, z+ o  j9 j
  200  yum isntall -y sqlite3+ P% U1 t5 q% Q& \& d* |
  201  yum install -y libsqlite3-devel# R# l& ~; x# F. I
  202  yum install -y sqlite-devel. B" m  Y1 p  t* j" O" F# Y- w
  203  ./configure --prefix=/usr/local/php  --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib  --enable-fpm --enable-xml --enable-opcache --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi  --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip  --without-pear --with-gettext --with-mime-magic " e) E+ E& a- U2 y/ I
  204  yum install -y libcurl
 楼主| 发表于 2024-1-2 10:25:03 | 显示全部楼层
yum install -y libcurl-devel
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:29 , Processed in 0.049138 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表