Solve the error problem of php dynamic library libicui18n

藏色散人
Release: 2023-04-09 22:34:02
forward
3701 people have browsed it

This article will introduce you to the error reporting problem of php dynamic library libicui18n. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

php dynamic library libicui18n error

After the installation is completed, ffmpeg appears and the dynamic library libicui18n error appears, it does not exist

$ php -v
dyld: 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
Copy after login

Search online According to the information, the new version of PHP's dynamic library 7.2.16 cannot use version 63. The problem can be solved by upgrading PHP. [Recommended learning: PHP video tutorial]

Use brew to upgrade 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
==> Caveats
apr 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
Copy after login

After everything is finished, execute php to view the version:

$ php -v
PHP 7.2.20 (cli) (built: Jul  5 2019 12:51:26) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.20, Copyright (c) 1999-2018, by Zend Technologies
Copy after login

The above is the detailed content of Solve the error problem of php dynamic library libicui18n. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template