Home>Article>Backend Development> 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)

藏色散人
藏色散人 forward
2022-11-22 16:40:43 7081browse

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 

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

2. Uninstall the extension

sudo pecl uninstall -r 

plus-rwill not delete the installed good extension.sofile

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!

php
Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete