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

mysql - Problems compiling PHP environment

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-10 09:07:35
Original
1012 people have browsed it

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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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

Related labels:
Statement of this Website
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template