本篇文章带大家介绍php动态库libicui18n报错问题。有一定的参考价值,有需要的朋友可以参考一下,希望对大家有所帮助。
php动态库libicui18n报错
安装完成ffmpeg出现动态库libicui18n报错,不存在
$ php -vdyld: library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib referenced from: /usr/local/opt/php@7.2/bin/php reason: image not found[1] 31174 abort php -v
通过网上查找资料了解到php新版本的动态库7.2.16不能使用63版本,通过升级php可以解决问题。 【推荐学习:php视频教程】
使用brew升级php
$ brew upgrade php72==> upgrading 1 outdated package:php@7.2 7.2.16 -> 7.2.20==> upgrading php@7.2 ==> installing dependencies for php@7.2: apr, argon2, libssh2, jemalloc, libev, nghttp2, curl-openssl, freetds, libpq and libsodium==> installing php@7.2 dependency: apr==> downloading https://homebrew.bintray.com/bottles/apr-1.7.0.mojave.bottle.tar.gz==> downloading from https://akamai.bintray.com/3a/3a245185ed7280d1a19e7c639786b4c21dd0088878be8ac87ca58510eb5c9cc1?__gda__=exp=1563530722~hmac=8e94698ea6aa458b7dfea49d1cde602217ab9a2######################################################################## 100.0%==> pouring apr-1.7.0.mojave.bottle.tar.gz==> caveatsapr is keg-only, which means it was not symlinked into /usr/local,because apple's clt package contains apr.if you need to have apr first in your path run: echo 'export path=/usr/local/opt/apr/bin:$path' >> ~/.zshrc
一切结束之后执行php查看版本:
$ php -vphp 7.2.20 (cli) (built: jul 5 2019 12:51:26) ( nts )copyright (c) 1997-2018 the php groupzend engine v3.2.0, copyright (c) 1998-2018 zend technologies with zend opcache v7.2.20, copyright (c) 1999-2018, by zend technologies
以上就是解决php动态库libicui18n报错问题的详细内容。