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~
#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>
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>
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!