Home  >  Article  >  Backend Development  >  mysql - Problems compiling PHP environment

mysql - Problems compiling PHP environment

WBOY
WBOYOriginal
2016-08-10 09:07:35908browse

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

Reply content:

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Interface des encryption?Next article:Interface des encryption?