简体   繁体   中英

Install pear on MacOS Mojave 10.14.3

I try to install pear:

curl -O https://pear.php.net/go-pear.phar

php -d detect_unicode=0 go-pear.phar

And I get warning:

PHP Warning: require_once(phar://go-pear.phar/PEAR/REST/13.php): failed to open stream: phar error: "PEAR/REST/13.php" is not a file in phar "go-pear.phar" in phar:///Users/maksat/go-pear.phar/PEAR/Config.php on line 2067

Directory /Users/maksat/pear/bin is empty

How can I resolve this problem?

My OS: MacOS Mojave 10.14.3

我也遇到了一些问题,这对我有用:

curl -0 https://objects-us-east-1.dream.io/kbfiles/pear/go-pear.phar

由于此答案正确建议您可以使用 Xdebug 中的此工具并检查针​​对您的特定情况的建议。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM