Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How yum installs php7 pdo extensions

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report