简体   繁体   中英

PEAR installation error: dyld: Library not loaded

I am trying to install PEAR on OS X Yosemite (10.10).

I changed to /usr/lib/php and executed sudo php install-pear-nozlib.phar as shown here .

Another way I tried was going to /usr/local and executing curl -O http://pear.php.net/go-pear.phar and sudo php -d detect_unicode=0 go-pear.phar as shown here .

However, in each case I get the error message

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.52.1.dylib
Referenced from: /usr/local/bin/php
Reason: image not found

How can I get this working? Any ideas? Thanks!

you can either install pear this way

curl -O http://pear.php.net/go-pear.phar
sudo php go-pear.phar

if you have a mac, I would recommend that you use mac ports

port install pear-PEAR

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