Thread: Error dydl : image not found when trying to install pg on Catalina
➜ ~ brew install postgresql
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 6 formulae.
==> Downloading https://ghcr.io/v2/homebrew/core/krb5/manifests/1.19.3
Already downloaded: /Users/rougnaux/Library/Caches/Homebrew/downloads/99d453969cccecf3b539a32dfa27cbdc85c12d0017c92bec5729bea7cf6328a2--krb5-1.19.3.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/krb5/blobs/sha256:e269d5d0c19c6da2521b8ab8a51f5ac1229387b
Already downloaded: /Users/rougnaux/Library/Caches/Homebrew/downloads/0a454bc3adeb2c958c03807c84ff279323ff741e3b8a64aa78603f558e7b4c94--krb5--1.19.3.catalina.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/postgresql/manifests/14.2_1
Already downloaded: /Users/rougnaux/Library/Caches/Homebrew/downloads/6a491ab32f22a1325da9bceba1f59875f5c43478aa890de97644fb7c1b196e18--postgresql-14.2_1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/postgresql/blobs/sha256:bb6bf761a60c6aec73f31595e167c2c78
Already downloaded: /Users/rougnaux/Library/Caches/Homebrew/downloads/e3f7b538f0e6cf2f8a966ce5d9de5e4aca2d2da9d0b1905217f5930200ac552f--postgresql--14.2_1.catalina.bottle.tar.gz
==> Installing dependencies for postgresql: krb5
==> Installing postgresql dependency: krb5
==> Pouring krb5--1.19.3.catalina.bottle.tar.gz
🍺 /usr/local/Cellar/krb5/1.19.3: 162 files, 5.2MB
==> Installing postgresql
==> Pouring postgresql--14.2_1.catalina.bottle.tar.gz
==> /usr/local/Cellar/postgresql/14.2_1/bin/initdb --locale=C -E UTF-8 /usr/local/var/postgres
Last 15 lines from /Users/rougnaux/Library/Logs/Homebrew/postgresql/post_install.01.initdb:
2022-04-17 13:10:48 +0200
/usr/local/Cellar/postgresql/14.2_1/bin/initdb
--locale=C
-E
UTF-8
/usr/local/var/postgres
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.70.dylib
Referenced from: /usr/local/Cellar/postgresql/14.2_1/bin/postgres
Reason: image not found
no data was returned by command ""/usr/local/Cellar/postgresql/14.2_1/bin/postgres" -V"
initdb: error: The program "postgres" is needed by initdb but was not found in the
same directory as "/usr/local/Cellar/postgresql/14.2_1/bin/initdb".
Check your installation.
Warning: The post-install step did not complete successfully
You can try again using:
brew postinstall postgresq
cecile rougnaux <cecile_rougnaux@hotmail.com> writes: > I upgraded my system to Catalina 10.15.7 and now I get an error with dyld : image not found when trying to install postgresql: > dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.70.dylib This seems like a bug in the Homebrew formula for postgresql, which you should report to wherever they designate for formula problems (hint: not here). It's made postgres dependent on a version of libicu that it hasn't requested to be installed. It's possible that you could work around this by manually installing that libicu version first. But there could be other version-skew problems lurking behind this one, so prodding the formula maintainer seems to be the easiest path. regards, tom lane
P {margin-top:0;margin-bottom:0;} I upgraded my system to Catalina 10.15.7 and now I get an error with dyld : image not found when trying to install postgresql :[...]dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.70.dylib
Referenced from: /usr/local/Cellar/postgresql/14.2_1/bin/postgres
Reason: image not found
Your icu4c installation is likely broken somehow. Try:
brew reinstall $(brew deps postgresql) postgresql
to reinstall PG and all its dependencies.
-- Best Regards, Adrian
On 17.04.22 13:28, cecile rougnaux wrote: > dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.70.dylib Whenever libicu's major version changes, you need to rebuilt the postgresql package.