For example, compiling a configuration item of PHP
<code>./configure --prefix=/usr/local/php --enable-fpm --with-mcrypt \ --enable-mbstring --disable-pdo --with-curl --disable-debug --disable-rpath \ --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets \ --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex \ --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-mysqli \ --with-gd --with-jpeg-dir </code>
Why can’t the compilation pass if I don’t install the curl library or zlib library? Why can the compilation pass if I don’t install mysql? The names are specified in the configuration. Can someone please explain why other libraries must be installed, but mysql does not need to be installed first
For example, compiling a configuration item of PHP
<code>./configure --prefix=/usr/local/php --enable-fpm --with-mcrypt \ --enable-mbstring --disable-pdo --with-curl --disable-debug --disable-rpath \ --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets \ --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex \ --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-mysqli \ --with-gd --with-jpeg-dir </code>
Why can’t the compilation pass if I don’t install the curl library or zlib library? Why can the compilation pass if I don’t install mysql? The names are specified in the configuration. Can someone please explain why other libraries must be installed, but mysql does not need to be installed first
Because PHP has its own mysql implementation, called mysqlnd, so there is no need to rely on libmysql. In the past, when there was no mysqlnd, you still had to rely on it