How yum installs php7 pdo extensions
This article introduces the knowledge of "how to install php7 pdo extensions in yum". In the operation of practical cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Operating environment of this article: linux5.9.8 system, php7.2.7 version, Dell G3 computer
How does yum install the php7 pdo extension? PHP7 installs the pdo_mysql extension
Because I did not pay attention to the failure of pdo_mysql when compiling and installing php7.2.7.
But recompiling and installing php7.2.7 takes a long time.
Baidu has an autoconf in linux.
Yum install autoconf-y
Open the php installation package path to find pdo_mysql
Enter the folder
Check if there is a problem with the expansion pack
/ datas/soft/php72/bin/phpize
Set the corresponding installation database path: (here I use mariadb locally, because the company test environment uses this)
. / configure-- with-php-config=/datas/soft/php72/bin/php-config-- with-pdo-mysql=/datas/soft/mariadb/make cleanmake & & make install
Compiled successfully, as shown in the following figure
That's all for "how yum installs php7 pdo extensions". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!