pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Error dydl : image not found when trying to install pg on Catalina
4+ messages / 4 participants
[nested] [flat]

* Error dydl : image not found when trying to install pg on Catalina
@ 2022-04-17 11:28  cecile rougnaux <cecile_rougnaux@hotmail.com>
  0 siblings, 3 replies; 4+ messages in thread

From: cecile rougnaux @ 2022-04-17 11:28 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

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 :


➜  ~ 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


How can I fix this ?
Thanks for help!
Cécile


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Error dydl : image not found when trying to install pg on Catalina
@ 2022-04-17 15:09  Tom Lane <tgl@sss.pgh.pa.us>
  parent: cecile rougnaux <cecile_rougnaux@hotmail.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2022-04-17 15:09 UTC (permalink / raw)
  To: cecile rougnaux <cecile_rougnaux@hotmail.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

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





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Error dydl : image not found when trying to install pg on Catalina
@ 2022-04-18 12:21  Adrian Ho <ml+postgresql@03s.net>
  parent: cecile rougnaux <cecile_rougnaux@hotmail.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Adrian Ho @ 2022-04-18 12:21 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 17/4/22 19:28, cecile rougnaux wrote:
> 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

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Error dydl : image not found when trying to install pg on Catalina
@ 2022-04-20 19:11  Peter Eisentraut <peter.eisentraut@enterprisedb.com>
  parent: cecile rougnaux <cecile_rougnaux@hotmail.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Peter Eisentraut @ 2022-04-20 19:11 UTC (permalink / raw)
  To: cecile rougnaux <cecile_rougnaux@hotmail.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

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.





^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2022-04-20 19:11 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-04-17 11:28 Error dydl : image not found when trying to install pg on Catalina cecile rougnaux <cecile_rougnaux@hotmail.com>
2022-04-17 15:09 ` Tom Lane <tgl@sss.pgh.pa.us>
2022-04-18 12:21 ` Adrian Ho <ml+postgresql@03s.net>
2022-04-20 19:11 ` Peter Eisentraut <peter.eisentraut@enterprisedb.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox