Home > Backend Development > PHP Tutorial > Pecl multi-version PHP installation extension prompts for repeated installation? (Attached is the solution)

Pecl multi-version PHP installation extension prompts for repeated installation? (Attached is the solution)

藏色散人
Release: 2023-04-11 08:50:02
forward
7185 people have browsed it

This article will introduce to you the problem of repeated installation when pecl installs the same extension for multiple versions of PHP. Here is a very quick solution. I will give you a detailed introduction below. I hope it will be helpful to friends who need it. Help~

Pecl multi-version PHP installation extension prompts for repeated installation? (Attached is the solution)

#I don’t know if anyone has encountered it. When pecl installs the same extension for multiple versions of PHP, it will prompt for repeated installation. [Recommended learning: PHP video tutorial]

Record the solution as follows:

1. Install the extension

sudo pecl -d php_suffix=8.0 install <package>
Copy after login

I understand -d php_suffix= is the suffix for specifying the php command. For example, -d php_suffix=8.0 is php8.0

2. Uninstall the extension

sudo pecl uninstall -r <package>
Copy after login

plus -r will not delete the installed good extension .so file

Repeat the above steps and install other PHP versions again with the same The extension can be installed successfully!

The above is the detailed content of Pecl multi-version PHP installation extension prompts for repeated installation? (Attached is the solution). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:learnku.com
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