|
|
php 8.3 编译configure: error: Linking mysqli against external library is no longer supported8 }' r7 X" H7 M# ^. c9 D
8 c( W2 x+ j: N: X解决方法:; p0 F+ Y; H1 M% P& E' t
修改编译参数,解决问题:./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: r+ j% e& M% P& N
0 Q6 k. R& F1 h( s+ {
+--------------------------------------------------------------------+6 a' Q3 P( a2 W0 d- [ P
| License: |& m* Z1 [/ ~4 \! N, {; z' G
| This software is subject to the PHP License, available in this |
# Q$ d2 w+ @! ]# n' o( c: e1 H| distribution in the file LICENSE. By continuing this installation |5 `- O; R/ u. h* \5 W1 T! w' u! |( d L
| process, you are bound by the terms of this license agreement. |
?8 R; m, ]0 y4 J3 u| If you do not agree with the terms of this license, you must abort |
' n' j. L4 a/ k1 n) b| the installation process at this point. |, x* f A5 Q8 M* A$ P7 o
+--------------------------------------------------------------------+! H4 `* Q4 n2 \$ e1 K" n/ P
* @/ f& ]- [7 G8 xThank you for using PHP.
0 P6 p' K- ~. K0 q$ ^8 C1 \4 x4 ^5 P* ]1 _
configure: WARNING: unrecognized options: --with-mysql, --with-iconv-dir, --with-freetype-dir, --with-jpeg-dir, --with-png-dir, --enable-magic-quotes, --enable-safe-mode, --with-curlwrappers, --enable-fastcgi, --enable-force-cgi-redirect, --with-gd, --enable-gd-native-ttf, --with-xmlrpc, --enable-zip, --with-mime-magic, --with-pdo-mysqli
* E: d0 ] X. y7 s0 K6 Y
+ L6 N/ ?! T) ~' D |
|