Home > Backend Development > PHP7 > body text

How to install php7 pdo extension in yum

藏色散人
Release: 2023-02-18 07:58:02
Original
2619 people have browsed it

Yum method to install php7 pdo extension: 1. Execute the command "yum install autoconf -y"; 2. Find pdo_mysql; 3. Check whether there is any problem with the expansion package; 4. Set the corresponding installation database path; 5. Just compile it.

How to install php7 pdo extension in yum

The operating environment of this article: linux5.9.8 system, php7.2.7 version, Dell G3 computer

How to install php7 pdo extension with yum ? PHP7 installs the pdo_mysql extension

Because when I was compiling and installing php7.2.7, I didn't notice that pdo_mysql failed.

But it takes a long time to recompile and install php7.2.7.

Baidu, there is an autoconf for linux

yum install autoconf -y
Copy after login

Open the php installation package path and find pdo_mysql

Enter the folder

Check whether there is a problem with the expansion package

/datas/soft/php72/bin/phpize
Copy after login

Set the corresponding installation database path: (Here I use mariadb locally because the company’s test environment uses this)

./configure --with-php-config=/datas/soft/php72/bin/php-config --with-pdo-mysql=/datas/soft/mariadb/
make clean
make && make install
Copy after login

Compiled successfully, as shown below

Recommended: "PHP Video Tutorial"

The above is the detailed content of How to install php7 pdo extension in yum. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!