宝塔环境下的php7.4版本是默认不带pecl扩展包的。7.3带。。。。。很烦,自己弄吧。把遇到的问题记录一下
首先wget http://pear.php.net/go-pear.phar
php go-pear.phar
出现
Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type 'all' to change all of them or simply press Enter to
accept these locations.
1. Installation base ($prefix) : /www/server/php/74
2. Temporary directory for processing : /tmp/pear/install
3. Temporary directory for downloads : /tmp/pear/install
4. Binaries directory : /www/server/php/74/bin
5. PHP code directory ($php_dir) : /www/server/php/74/share/pear
6. Documentation directory : /www/server/php/74/docs
7. Data directory