Homebrew / homebrew-core

🍻 Default formulae for the missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
13.66k stars 12.37k forks source link

gdal formula fails at runtime with dyld error #150336

Closed llimllib closed 10 months ago

llimllib commented 12 months ago

brew gist-logs <formula> link OR brew config AND brew doctor output

https://gist.github.com/llimllib/6f76340bb18c67dac24230614673f2aa

Also includes the successful output of `brew install gdal`

Verification

What were you trying to do (and why)?

install gdal

What happened (include all command output)?

The build succeeded, but calls to gdal fail:

$ gdalinfo mt_st_helens_USGS_1m_dem.tif 
dyld[67919]: Library not loaded: @loader_path/../../../../opt/protobuf/lib/libprotobuf.24.2.0.dylib
  Referenced from: <C753EFE8-64F3-3654-9DBB-9B7C2736BF89> /opt/homebrew/Cellar/apache-arrow/13.0.0_2/lib/libarrow_dataset.1300.0.0.dylib
  Reason: tried: '/opt/homebrew/Cellar/apache-arrow/13.0.0_2/lib/../../../../opt/protobuf/lib/libprotobuf.24.2.0.dylib' (no such file), '/usr/local/lib/libprotobuf.24.2.0.dylib' (no such file), '/usr/lib/libprotobuf.24.2.0.dylib' (no such file, not in dyld cache)Library not loaded: @loader_path/../../../../opt/thrift/lib/libthrift-0.18.1.dylib
  Referenced from: <1494F1F7-7965-3D75-8F5E-8DA24E0FB0EC> /opt/homebrew/Cellar/apache-arrow/13.0.0_2/lib/libparquet.1300.0.0.dylib
  Reason: tried: '/opt/homebrew/Cellar/apache-arrow/13.0.0_2/lib/../../../../opt/thrift/lib/libthrift-0.18.1.dylib' (no such file), '/usr/local/lib/libthrift-0.18.1.dylib' (no such file), '/usr/lib/libthrift-0.18.1.dylib' (no such file, not in dyld cache)Library not loaded: @loader_path/../../../../opt/protobuf/lib/libprotobuf.24.2.0.dylib
  Referenced from: <2DAF3BE7-C205-3958-BFAF-7361A6B07DE2> /opt/homebrew/Cellar/apache-arrow/13.0.0_2/lib/libarrow_acero.1300.0.0.dylib
  Reason: tried: '/opt/homebrew/Cellar/apache-arrow/13.0.0_2/lib/../../../../opt/protobuf/lib/libprotobuf.24.2.0.dylib' (no such file), '/usr/local/lib/libprotobuf.24.2.0.dylib' (no such file), '/usr/lib/libprotobuf.24.2.0.dylib' (no such file, not in dyld cache)Library not loaded: @loader_path/../../../../opt/protobuf/lib/libprotobuf.24.2.0.dylib
  Referenced from: <4DAC9D23-105E-3BF6-8087-633E0D0B72DD> /opt/homebrew/Cellar/apache-arrow/13.0.0_2/lib/libarrow.1300.0.0.dylib
  Reason: tried: '/opt/homebrew/Cellar/apache-arrow/13.0.0_2/lib/../../../../opt/protobuf/lib/libprotobuf.24.2.0.dylib' (no such file), '/usr/local/lib/libprotobuf.24.2.0.dylib' (no such file), '/usr/lib/libprotobuf.24.2.0.dylib' (no such file, not in dyld cache)
zsh: abort      gdalinfo mt_st_helens_USGS_1m_dem.tif

What did you expect to happen?

gdal to run

Step-by-step reproduction instructions (by running brew commands)

1. `brew install gdal`
2. do anything with gdal; a simple command that reproduces the problem is `gdal_create --help`

This issue seems like it might be similar to #140082, but that issue suggests that it's fixed in aws-sdk-cpp versions > 1.11.146, however I have 1.11.175 installed.

I'd also note that all those dylibs do exist, just not in any of the directories that get tried:

$ for f (libprotobuf.24.2.0.dylib libparquet.1300.0.0.dylib libarrow_acero.1300.0.0.dylib); do 
  fd -u $f /opt
done
/opt/homebrew/Cellar/protobuf/24.2/lib/libprotobuf.24.2.0.dylib
/opt/homebrew/lib/libparquet.1300.0.0.dylib
/opt/homebrew/Cellar/apache-arrow/13.0.0_2/lib/libparquet.1300.0.0.dylib
/opt/homebrew/Cellar/apache-arrow/13.0.0_2/lib/libarrow_acero.1300.0.0.dylib
/opt/homebrew/lib/libarrow_acero.1300.0.0.dylib
llimllib commented 12 months ago

With a generous application of DYLD_LIBRARY_PATH, I can get the program running:

$ DYLD_LIBRARY_PATH=/opt/homebrew/lib:/opt/homebrew/Cellar/protobuf/24.2/lib:/opt/homebrew/Cellar/abseil/20230125.3/lib:/opt/homebrew/Cellar/thrift/0.18.1_1/lib/ gdal_translate --help
Usage: gdal_translate [--help-general] [--long-usage]
<snip rest...>

obviously this is less than ideal though

cho-m commented 12 months ago

Can you try checking brew outdated formulae and retrying any upgrades again?

Your above snippets are showing older versions (e.g. protobuf 24.2, apache-arrow 13.0.0_2, etc.).

Your gist claims to have upgraded protobuf:

==> Pouring protobuf--24.4.arm64_sonoma.bottle.tar.gz

Though it doesn't have pour log for other formulae like apache-arrow (it did show outdated apache-arrow 13.0.0_2 -> 13.0.0_8 but no info on upgrade attempt) so there may be something odd about versions.

llimllib commented 12 months ago

@cho-m Sure, thanks for taking a look. Here's brew outdated:

$ brew outdated ``` apache-arrow (13.0.0_2) < 13.0.0_8 bat-extras (2023.03.21) < 2023.09.19 c-ares (1.19.1) < 1.20.1 caddy (2.6.4) < 2.7.4 circleci (0.1.26837) < 0.1.29041 clang-format (16.0.0) < 17.0.2 cmake (3.26.1) < 3.27.7 coreutils (9.2) < 9.4 deno (1.33.4, 1.35.3) < 1.37.1 direnv (2.32.2) < 2.32.3 doctl (1.97.0) < 1.99.0 dos2unix (7.4.4) < 7.5.1 duckdb (0.7.1) < 0.9.0 efm-langserver (0.0.44) < 0.0.48 erdtree (3.0.2) < 3.1.2 gh (HEAD-53c36d0) < latest HEAD git (2.40.0) < 2.42.0 git-delta (0.15.1) < 0.16.5 go (1.21.1) < 1.21.2 goawk (1.24.0) < 1.25.0 grep (3.10) < 3.11 heroku/brew/heroku (7.68.2) < 8.5.0 hexyl (0.13.0) < 0.13.1 jpeg-xl (0.8.2) < 0.8.2_1 librist (0.2.7_3) < 0.2.7_4 llvm (16.0.6) < 17.0.2 lua-language-server (3.6.24) < 3.7.0 lynx (2.8.9rel.1_1) < 2.8.9rel.1_2 mbedtls (3.4.1) < 3.5.0 micro (2.0.11) < 2.0.12 minio-mc (20230721204427) < 20231004065256 mongodb/brew/mongodb-community@4.4 (4.4.19) < 4.4.25 mongodb/brew/mongodb-database-tools (100.7.0) < 100.8.0 nushell (0.84.0) < 0.85.0 openssl@1.1 (1.1.1v) < 1.1.1w pandoc (3.1.1) < 3.1.8 pygments (2.15.1_1) < 2.16.1_1 python-certifi (2023.7.22) < 2023.7.22_1 qt@5 (5.15.10) < 5.15.10_1 re2c (3.0) < 3.1 redis (7.2.0) < 7.2.1 rtmpdump (2.4+20151223_2) < 2.4-20151223_3 six (1.16.0_3) < 1.16.0_4 staticcheck (2023.1.3) < 2023.1.6 stylua (0.17.0) < 0.18.2 tree (2.1.0) < 2.1.1 unbound (1.18.0) < 1.18.0_1 x264 (r3095) < r3108 xxhash (0.8.1) < 0.8.2 zeromq (4.3.4) < 4.3.5 1password-cli (2.19.0) != 2.21.0 alacritty (0.12.2) != 0.12.3 bespoke (1.2.0) != 1.2.1 font-iosevka (26.1.0) != 27.2.0 font-sf-pro (19.0d6e1) != 19.0d7e1 kitty (0.29.2) != 0.30.1 ngrok (3.3.4,mCL51Hi52gn,a) != 3.3.5,gdMJFDtw8of,a qbittorrent (4.5.4) != 4.5.5 session-manager-plugin (1.2.463.0) != 1.2.497.0 ```
$ brew info apache-arrow protobuf ``` $ brew info apache-arrow protobuf ==> apache-arrow: stable 13.0.0 (bottled), HEAD Columnar in-memory analytics layer designed to accelerate big data https://arrow.apache.org/ /opt/homebrew/Cellar/apache-arrow/13.0.0_2 (576 files, 140.5MB) * Poured from bottle using the formulae.brew.sh API on 2023-08-30 at 09:03:42 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/a/apache-arrow.rb License: Apache-2.0 ==> Dependencies Build: boost βœ”, cmake ✘, llvm@15 ✘ Required: aws-sdk-cpp βœ”, brotli βœ”, bzip2 βœ”, glog βœ”, grpc βœ”, lz4 βœ”, openssl@3 βœ”, protobuf βœ”, rapidjson βœ”, re2 βœ”, snappy βœ”, thrift βœ”, utf8proc βœ”, zstd βœ” ==> Options --HEAD Install HEAD version ==> Analytics install: 10,716 (30 days), 30,400 (90 days), 67,697 (365 days) install-on-request: 5,327 (30 days), 14,637 (90 days), 29,920 (365 days) build-error: 20 (30 days) ==> protobuf: stable 24.4 (bottled) Protocol buffers (Google's data interchange format) https://protobuf.dev/ /opt/homebrew/Cellar/protobuf/21.12 (288 files, 19.2MB) Poured from bottle using the formulae.brew.sh API on 2023-03-24 at 11:24:16 /opt/homebrew/Cellar/protobuf/23.4 (389 files, 12.2MB) Poured from bottle using the formulae.brew.sh API on 2023-08-16 at 12:53:21 /opt/homebrew/Cellar/protobuf/24.2 (395 files, 13.2MB) Poured from bottle using the formulae.brew.sh API on 2023-08-30 at 09:02:13 /opt/homebrew/Cellar/protobuf/24.4 (395 files, 13.3MB) * Poured from bottle using the formulae.brew.sh API on 2023-10-09 at 14:19:49 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/p/protobuf.rb License: BSD-3-Clause ==> Dependencies Build: cmake ✘, python@3.10 ✘, python@3.11 βœ” Required: abseil βœ”, jsoncpp βœ” ==> Caveats Emacs Lisp files have been installed to: /opt/homebrew/share/emacs/site-lisp/protobuf ==> Analytics install: 61,586 (30 days), 163,902 (90 days), 366,902 (365 days) install-on-request: 27,935 (30 days), 71,759 (90 days), 166,965 (365 days) build-error: 24 (30 days) ```
$ brew upgrade apache-arrow ``` $ brew upgrade apache-arrow ==> Upgrading 1 outdated package: apache-arrow 13.0.0_2 -> 13.0.0_8 ==> Downloading https://ghcr.io/v2/homebrew/core/apache-arrow/manifests/13.0.0_8 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/b16b7aa68aac9e390c5740e1bd5e338834d1a6e69a8b3a79ca3391ac800c289b--apache-arrow-13.0.0_8.bottle_manifest.json ==> Fetching apache-arrow ==> Downloading https://ghcr.io/v2/homebrew/core/apache-arrow/blobs/sha256:fed69dffa1f073e7b3f1444adaa90b10ef75928d94e70f5a1c3dadf750ef64a9 ########################################################################################################################################### 100.0% ==> Upgrading apache-arrow 13.0.0_2 -> 13.0.0_8 ==> Pouring apache-arrow--13.0.0_8.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/apache-arrow/13.0.0_8: 576 files, 144.5MB ==> Running `brew cleanup apache-arrow`... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). Removing: /opt/homebrew/Cellar/apache-arrow/13.0.0_2... (576 files, 140.5MB) ```

And that seems to do it:

$ gdalinfo mt_st_helens_USGS_1m_dem.tif ``` Driver: GTiff/GeoTIFF Files: mt_st_helens_USGS_1m_dem.tif Size is 10012, 10012 Coordinate System is: PROJCRS["NAD83 / UTM zone 10N", BASEGEOGCRS["NAD83", DATUM["North American Datum 1983", ELLIPSOID["GRS 1980",6378137,298.257222101, LENGTHUNIT["metre",1]]], PRIMEM["Greenwich",0, ANGLEUNIT["degree",0.0174532925199433]], ID["EPSG",4269]], CONVERSION["UTM zone 10N", METHOD["Transverse Mercator", ID["EPSG",9807]], PARAMETER["Latitude of natural origin",0, ANGLEUNIT["degree",0.0174532925199433], ID["EPSG",8801]], PARAMETER["Longitude of natural origin",-123, ANGLEUNIT["degree",0.0174532925199433], ID["EPSG",8802]], PARAMETER["Scale factor at natural origin",0.9996, SCALEUNIT["unity",1], ID["EPSG",8805]], PARAMETER["False easting",500000, LENGTHUNIT["metre",1], ID["EPSG",8806]], PARAMETER["False northing",0, LENGTHUNIT["metre",1], ID["EPSG",8807]]], CS[Cartesian,2], AXIS["(E)",east, ORDER[1], LENGTHUNIT["metre",1]], AXIS["(N)",north, ORDER[2], LENGTHUNIT["metre",1]], USAGE[ SCOPE["Engineering survey, topographic mapping."], AREA["North America - between 126Β°W and 120Β°W - onshore and offshore. Canada - British Columbia; Northwest Territories; Yukon. United States (USA) - California; Oregon; Washington."], BBOX[30.54,-126,81.8,-119.99]], ID["EPSG",26910]] Data axis to CRS axis mapping: 1,2 Origin = (559993.999978157342412,5120006.000014467164874) Pixel Size = (1.000000000000000,-1.000000000000000) Metadata: AREA_OR_POINT=Area Image Structure Metadata: COMPRESSION=LZW INTERLEAVE=BAND LAYOUT=COG PREDICTOR=3 Corner Coordinates: Upper Left ( 559994.000, 5120006.000) (122d13'19.06"W, 46d13'51.54"N) Lower Left ( 559994.000, 5109994.000) (122d13'23.64"W, 46d 8'27.18"N) Upper Right ( 570006.000, 5120006.000) (122d 5'31.69"W, 46d13'48.09"N) Lower Right ( 570006.000, 5109994.000) (122d 5'37.03"W, 46d 8'23.74"N) Center ( 565000.000, 5115000.000) (122d 9'27.85"W, 46d11' 7.71"N) Band 1 Block=512x512 Type=Float32, ColorInterp=Gray NoData Value=-999999 Overviews: 5006x5006, 2503x2503, 1251x1251, 625x625, 312x312 ```

What's the proper response to this? Should the formula indicate a minimum version of apache-arrow?

cho-m commented 11 months ago

In theory, brew should have automatically upgraded those formulae. You can see that it was trying to do so in Gist:

==> Upgrading 31 dependents of upgraded formulae:
Disable this behaviour by setting HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
apache-arrow 13.0.0_2 -> 13.0.0_8, cffi 1.15.1 -> 1.16.0, awscli 2.13.13 -> 2.13.25, curl 8.2.1 -> 8.3.0, emscripten 3.1.45 -> 3.1.46, ghostscript 10.01.2 -> 10.02.0, git 2.40.0 -> 2.42.0, gnuplot 5.4.8_1 -> 5.4.9, gts 0.7.6_2 -> 0.7.6_3, jpeg-xl 0.8.2 -> 0.8.2_1, graphviz 8.1.0 -> 9.0.0, harfbuzz 8.1.1 -> 8.2.1, huggingface-cli 0.16.4_1 -> 0.17.3_1, imagemagick 7.1.1-15 -> 7.1.1-20, llvm 16.0.6 -> 17.0.2, mongosh 1.10.6 -> 2.0.1, mongodb-atlas-cli 1.10.0 -> 1.12.1, neovim 0.9.1 -> 0.9.2, netpbm 11.02.01 -> 11.02.04, node 20.5.1 -> 20.8.0, openai-whisper 20230314 -> 20230918, openjdk 20.0.1 -> 21, php 8.2.9 -> 8.2.11, python@3.11 3.11.5 -> 3.11.6, qt 6.5.1_3 -> 6.5.2, qt@5 5.15.10 -> 5.15.10_1, tesseract 5.3.2_1 -> 5.3.3, unbound 1.18.0 -> 1.18.0_1, vim 9.0.1800 -> 9.0.2000, watchman 2023.08.28.00 -> 2023.10.09.00, yt-dlp 2023.7.6_1 -> 2023.10.7

...

==> Downloading https://ghcr.io/v2/homebrew/core/apache-arrow/manifests/13.0.0_8
########################################################################################################################################### 100.0%

Not sure why it didn't. It could be something with brew dependency resolution, or something with the JSON API, or something in your environment, etc.

SMillerDev commented 11 months ago

What does env | grep HOMEBREW say?

llimllib commented 11 months ago
$ env | grep HOMEBREW   
HOMEBREWBIN=/opt/homebrew/bin
HOMEBREWSBIN=/opt/homebrew/sbin

That's weird that it downloaded but didn't install the apache-arrow package!

micahnyc commented 11 months ago

I am also having this issue today on arm mac. I have protobuf@24.4 but the apachearrow is referencing 24.2

micahnyc commented 11 months ago

Upon further reading, I realized that my apachearrow was out of date, after a brew upgrade, my problem was solved

llimllib commented 11 months ago

homebrew seems to be doing this consistently for me. This morning I installed gifski, and it fails with a dyld error despite the library existing in /opt.

`gifski --help` ``` $ gifski --help dyld[39151]: Library not loaded: /opt/homebrew/opt/mbedtls/lib/libmbedcrypto.14.dylib Referenced from: <8C2E2CF9-054E-300F-BDE7-3DE52F848638> /opt/homebrew/Cellar/librist/0.2.7_3/lib/librist.4.dylib Reason: tried: '/opt/homebrew/opt/mbedtls/lib/libmbedcrypto.14.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/mbedtls/lib/libmbedcrypto.14.dylib' (no such file), '/opt/homebrew/opt/mbedtls/lib/libmbedcrypto.14.dylib' (no such file), '/usr/local/lib/libmbedcrypto.14.dylib' (no such file), '/usr/lib/libmbedcrypto.14.dylib' (no such file, not in dyld cache), '/opt/homebrew/Cellar/mbedtls/3.5.0/lib/libmbedcrypto.14.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/mbedtls/3.5.0/lib/libmbedcrypto.14.dylib' (no such file), '/opt/homebrew/Cellar/mbedtls/3.5.0/lib/libmbedcrypto.14.dylib' (no such file), '/usr/local/lib/libmbedcrypto.14.dylib' (no such file), '/usr/lib/libmbedcrypto.14.dylib' (no such file, not in dyld cache) zsh: abort gifski --help ```
`fd -u libmbedcrypto.14.dylib /opt` ``` $ fd -u libmbedcrypto.14.dylib /opt /opt/homebrew/Cellar/mbedtls/3.4.1/lib/libmbedcrypto.14.dylib ```
`gifski` install log ``` $ brew install gifski ==> Downloading https://ghcr.io/v2/homebrew/core/gifski/manifests/1.13.0 ######################################################################################################################################################################################################################### 100.0% ==> Fetching dependencies for gifski: gmp, libnghttp2, libx11, mbedtls, mpg123, sdl2, x264 and zeromq ==> Downloading https://ghcr.io/v2/homebrew/core/gmp/manifests/6.3.0 ######################################################################################################################################################################################################################### 100.0% ==> Fetching gmp ==> Downloading https://ghcr.io/v2/homebrew/core/gmp/blobs/sha256:78e4f40cba6419cf7e2d81e9c945d1e93744511bd5230bdfac1b69ed894914b4 ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/libnghttp2/manifests/1.57.0 ######################################################################################################################################################################################################################### 100.0% ==> Fetching libnghttp2 ==> Downloading https://ghcr.io/v2/homebrew/core/libnghttp2/blobs/sha256:14993521d114a8fabb870fd30eb2eaf35998e561fc35c5698c8c30ddc00ec2fc ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/libx11/manifests/1.8.7 ######################################################################################################################################################################################################################### 100.0% ==> Fetching libx11 ==> Downloading https://ghcr.io/v2/homebrew/core/libx11/blobs/sha256:0894f5a7c09c10a989dc12b792cff2f1d1ae7d1d49f7c8c559e79b9d911ca998 ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/mbedtls/manifests/3.5.0-1 ######################################################################################################################################################################################################################### 100.0% ==> Fetching mbedtls ==> Downloading https://ghcr.io/v2/homebrew/core/mbedtls/blobs/sha256:74a6aeafe024b9e8adff110b0db2fb1222118f1f9dec3750d078454ede5b1d00 ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/mpg123/manifests/1.32.3 ######################################################################################################################################################################################################################### 100.0% ==> Fetching mpg123 ==> Downloading https://ghcr.io/v2/homebrew/core/mpg123/blobs/sha256:6324a30c5b49b4c62882ad10adcce474a3649c466a9557def3ca9dcda10439e6 ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/sdl2/manifests/2.28.4 ######################################################################################################################################################################################################################### 100.0% ==> Fetching sdl2 ==> Downloading https://ghcr.io/v2/homebrew/core/sdl2/blobs/sha256:e6fe97069d2c299cef1d407c11403714c20a50fd95a2ce16609e7477d792a9b9 ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/x264/manifests/r3108 ######################################################################################################################################################################################################################### 100.0% ==> Fetching x264 ==> Downloading https://ghcr.io/v2/homebrew/core/x264/blobs/sha256:19910a7d287524c93e7c56e30eca711618e0b568c0a9a4462924b76761840fd5 ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/zeromq/manifests/4.3.5 ######################################################################################################################################################################################################################### 100.0% ==> Fetching zeromq ==> Downloading https://ghcr.io/v2/homebrew/core/zeromq/blobs/sha256:9a9cbfb80e43d28c3a8871b7d5ffd7d9b4063e3ae331e7ef386d16f1a6189936 ######################################################################################################################################################################################################################### 100.0% ==> Fetching gifski ==> Downloading https://ghcr.io/v2/homebrew/core/gifski/blobs/sha256:d4c07bb9554c2da9c857ddb8cbb178778215ef1a3c00849025c76d326feb4a2e ######################################################################################################################################################################################################################### 100.0% ==> Installing dependencies for gifski: gmp, libnghttp2, libx11, mbedtls, mpg123, sdl2, x264 and zeromq ==> Installing gifski dependency: gmp ==> Downloading https://ghcr.io/v2/homebrew/core/gmp/manifests/6.3.0 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/70a72a71216843d66a953c06ff6337445ce9bc94fae9f0e301e2f59005274a8e--gmp-6.3.0.bottle_manifest.json ==> Pouring gmp--6.3.0.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/gmp/6.3.0: 21 files, 3.3MB ==> Installing gifski dependency: libnghttp2 ==> Downloading https://ghcr.io/v2/homebrew/core/libnghttp2/manifests/1.57.0 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/38b8e77aafeea97ca6c05954b9694ee637d601edc08f5836177e09c9ceef3162--libnghttp2-1.57.0.bottle_manifest.json ==> Pouring libnghttp2--1.57.0.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/libnghttp2/1.57.0: 13 files, 737.3KB ==> Installing gifski dependency: libx11 ==> Downloading https://ghcr.io/v2/homebrew/core/libx11/manifests/1.8.7 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/4d15c929e0532c9a908dcb7d562929ecc5dd3a0a0cd4c19cf50683c06282fd7f--libx11-1.8.7.bottle_manifest.json ==> Pouring libx11--1.8.7.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/libx11/1.8.7: 1,042 files, 7.0MB ==> Installing gifski dependency: mbedtls ==> Downloading https://ghcr.io/v2/homebrew/core/mbedtls/manifests/3.5.0-1 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/2ab250370e844310b7ddcba69a8bb6cbe1bc02b8d1642671093cb2c8c4eaf1bc--mbedtls-3.5.0-1.bottle_manifest.json ==> Pouring mbedtls--3.5.0.arm64_sonoma.bottle.1.tar.gz 🍺 /opt/homebrew/Cellar/mbedtls/3.5.0: 192 files, 12.1MB ==> Installing gifski dependency: mpg123 ==> Downloading https://ghcr.io/v2/homebrew/core/mpg123/manifests/1.32.3 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/e2b3e800196cea6f034cb49a9eecf1c7c99902e5faf0c6ee3f20df34ea0bccab--mpg123-1.32.3.bottle_manifest.json ==> Pouring mpg123--1.32.3.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/mpg123/1.32.3: 33 files, 2.0MB ==> Installing gifski dependency: sdl2 ==> Downloading https://ghcr.io/v2/homebrew/core/sdl2/manifests/2.28.4 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/5aabf4a6cd99c8689700fc9711eb6db788b37905b6059332dfe0ceb54cc3f9b8--sdl2-2.28.4.bottle_manifest.json ==> Pouring sdl2--2.28.4.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/sdl2/2.28.4: 93 files, 6.4MB ==> Installing gifski dependency: x264 ==> Downloading https://ghcr.io/v2/homebrew/core/x264/manifests/r3108 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/8bf7841097db8a60b1789ab16ac7f9395fc5e484932ab958334695a83e804e68--x264-r3108.bottle_manifest.json ==> Pouring x264--r3108.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/x264/r3108: 11 files, 4.2MB ==> Installing gifski dependency: zeromq ==> Downloading https://ghcr.io/v2/homebrew/core/zeromq/manifests/4.3.5 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/df7dda0ad584fc00b0c578d81c1d03b4ead189c38b1bafd01ab9aa7b7592632f--zeromq-4.3.5.bottle_manifest.json ==> Pouring zeromq--4.3.5.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/zeromq/4.3.5: 84 files, 6.2MB ==> Installing gifski ==> Pouring gifski--1.13.0.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/gifski/1.13.0: 7 files, 1.2MB ==> Running `brew cleanup gifski`... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). ==> Upgrading 12 dependents of upgraded formulae: Disable this behaviour by setting HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). coreutils 9.2 -> 9.4, curl 8.3.0 -> 8.4.0, gnuplot 5.4.9 -> 5.4.10, librist 0.2.7_3 -> 0.2.7_4, mongosh 2.0.1 -> 2.0.2, node 20.8.0 -> 21.0.0, numpy 1.26.0_1 -> 1.26.1, podman 4.7.0 -> 4.7.1, mongodb-atlas-cli 1.12.1 -> 1.12.2, unbound 1.18.0 -> 1.18.0_1, qemu 8.1.1 -> 8.1.2, wget2 2.0.1 -> 2.1.0 ==> Downloading https://ghcr.io/v2/homebrew/core/curl/manifests/8.4.0 ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/gnuplot/manifests/5.4.10 ######################################################################################################################################################################################################################### 100.0% ==> Fetching dependencies for gnuplot: assimp and sqlite ==> Downloading https://ghcr.io/v2/homebrew/core/assimp/manifests/5.3.1 ######################################################################################################################################################################################################################### 100.0% ==> Fetching assimp ==> Downloading https://ghcr.io/v2/homebrew/core/assimp/blobs/sha256:8ceed09a9c989320467f6b90692caac628c8313dcfdad38e6291170b1c98e66a ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.43.2 ######################################################################################################################################################################################################################### 100.0% ==> Fetching sqlite ==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:6911319bc3cd3be7b63d3f5a07b859011fd977b48f1d455c40da1cbd85d1e1aa ######################################################################################################################################################################################################################### 100.0% ==> Fetching gnuplot ==> Downloading https://ghcr.io/v2/homebrew/core/gnuplot/blobs/sha256:04ca8099532e677c80a2e0dd65d2012941e5c3b53c3897f41b47c236c89129ca ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/librist/manifests/0.2.7_4 ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/node/manifests/21.0.0 ######################################################################################################################################################################################################################### 100.0% ==> Fetching dependencies for node: c-ares ==> Downloading https://ghcr.io/v2/homebrew/core/c-ares/manifests/1.20.1 ######################################################################################################################################################################################################################### 100.0% ==> Fetching c-ares ==> Downloading https://ghcr.io/v2/homebrew/core/c-ares/blobs/sha256:81f08757c7bc31cd7c7d2051df0fb0c27b48ee2b36379afae28e706adf2ce07d ######################################################################################################################################################################################################################### 100.0% ==> Fetching node ==> Downloading https://ghcr.io/v2/homebrew/core/node/blobs/sha256:d386de0555fdb527e4844ae7ff0ab2bbfa6d84102740bd6c3e9e56d7f2aba44f ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/mongosh/manifests/2.0.2 ######################################################################################################################################################################################################################### 100.0% ==> Fetching mongosh ==> Downloading https://ghcr.io/v2/homebrew/core/mongosh/blobs/sha256:e5e918821582940a59563dd02b5a2da37629befadaaab9b44bcca58979f54e35 ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/numpy/manifests/1.26.1 ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/unbound/manifests/1.18.0_1 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/2be2c3b3f225d8443899e58a9d758a6083e106ff6447128e93d24c37999dc86f--unbound-1.18.0_1.bottle_manifest.json ==> Downloading https://ghcr.io/v2/homebrew/core/qemu/manifests/8.1.2 ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/podman/manifests/4.7.1 ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/mongodb-atlas-cli/manifests/1.12.2 ######################################################################################################################################################################################################################### 100.0% ==> Fetching dependencies for mongodb-atlas-cli: qemu and podman ==> Downloading https://ghcr.io/v2/homebrew/core/qemu/manifests/8.1.2 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/fca792287eb0ca06f1ce5fbace40a5551e6d89f43907d9782b3a3a2ddfc140c5--qemu-8.1.2.bottle_manifest.json ==> Fetching qemu ==> Downloading https://ghcr.io/v2/homebrew/core/qemu/blobs/sha256:5b1609f934fb3540a857a0ead8bd5c427258cae61bda0acdd61405eb8a1486f0 ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/podman/manifests/4.7.1 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/5313b61ca1f4a41c988a1f77aa26f9a6ccc429260a3c6e8725d30eaa0006ece5--podman-4.7.1.bottle_manifest.json ==> Fetching podman ==> Downloading https://ghcr.io/v2/homebrew/core/podman/blobs/sha256:a548b5f3abc24639883e76aa90de3f282c8342ac1a241083fa950826dcdfa934 ######################################################################################################################################################################################################################### 100.0% ==> Fetching mongodb-atlas-cli ==> Downloading https://ghcr.io/v2/homebrew/core/mongodb-atlas-cli/blobs/sha256:d88e696160cab3fa639bcafb6721452d1f9fcf6f940bc16deced8618ae0ccfa0 ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/coreutils/manifests/9.4 ######################################################################################################################################################################################################################### 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/wget2/manifests/2.1.0 ######################################################################################################################################################################################################################### 100.0% ==> Upgrading gnuplot 5.4.9 -> 5.4.10 ==> Installing dependencies for gnuplot: assimp and sqlite ==> Installing gnuplot dependency: assimp ==> Downloading https://ghcr.io/v2/homebrew/core/assimp/manifests/5.3.1 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/d9c44eac11b8d86c1051e1684876f8a2d3983ad1396791ef3016759913bce2f9--assimp-5.3.1.bottle_manifest.json ==> Pouring assimp--5.3.1.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/assimp/5.3.1: 104 files, 10.6MB ==> Installing gnuplot dependency: sqlite ==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.43.2 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/cf3929ad5a0979c42d7951a63fbed2df830d2179f1c4720827c1d5d625eda3db--sqlite-3.43.2.bottle_manifest.json ==> Pouring sqlite--3.43.2.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/sqlite/3.43.2: 11 files, 4.7MB ==> Installing gnuplot ==> Pouring gnuplot--5.4.10.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/gnuplot/5.4.10: 46 files, 2.8MB ==> Running `brew cleanup gnuplot`... Removing: /opt/homebrew/Cellar/gnuplot/5.4.9... (46 files, 2.8MB) Removing: /Users/llimllib/Library/Caches/Homebrew/gnuplot--5.4.9... (1MB) ==> Upgrading node 20.8.0 -> 21.0.0 ==> Installing dependencies for node: c-ares ==> Installing node dependency: c-ares ==> Downloading https://ghcr.io/v2/homebrew/core/c-ares/manifests/1.20.1 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/aaf2cda823b470bd269e2869aad8a2174a8f635e6c59592c115242735375cea2--c-ares-1.20.1.bottle_manifest.json ==> Pouring c-ares--1.20.1.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/c-ares/1.20.1: 85 files, 651.6KB ==> Installing node ==> Pouring node--21.0.0.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/node/21.0.0: 2,525 files, 64.4MB ==> Running `brew cleanup node`... Removing: /opt/homebrew/Cellar/node/20.5.1... (2,356 files, 57.2MB) Removing: /opt/homebrew/Cellar/node/20.8.0... (2,517 files, 58.5MB) Removing: /Users/llimllib/Library/Caches/Homebrew/node--20.8.0... (14.7MB) ==> Upgrading mongosh 2.0.1 -> 2.0.2 ==> Pouring mongosh--2.0.2.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/mongosh/2.0.2: 10,001 files, 48MB ==> Running `brew cleanup mongosh`... Removing: /opt/homebrew/Cellar/mongosh/2.0.1... (9,881 files, 47.8MB) Removing: /Users/llimllib/Library/Caches/Homebrew/mongosh--2.0.1... (11.2MB) ==> Upgrading mongodb-atlas-cli 1.12.1 -> 1.12.2 ==> Installing dependencies for mongodb-atlas-cli: qemu and podman ==> Installing mongodb-atlas-cli dependency: qemu ==> Downloading https://ghcr.io/v2/homebrew/core/qemu/manifests/8.1.2 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/fca792287eb0ca06f1ce5fbace40a5551e6d89f43907d9782b3a3a2ddfc140c5--qemu-8.1.2.bottle_manifest.json ==> Pouring qemu--8.1.2.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/qemu/8.1.2: 162 files, 535.3MB ==> Installing mongodb-atlas-cli dependency: podman ==> Downloading https://ghcr.io/v2/homebrew/core/podman/manifests/4.7.1 Already downloaded: /Users/llimllib/Library/Caches/Homebrew/downloads/5313b61ca1f4a41c988a1f77aa26f9a6ccc429260a3c6e8725d30eaa0006ece5--podman-4.7.1.bottle_manifest.json ==> Pouring podman--4.7.1.arm64_sonoma.bottle.tar.gz 🍺 /opt/homebrew/Cellar/podman/4.7.1: 191 files, 55.2MB ==> Installing mongodb-atlas-cli ==> Pouring mongodb-atlas-cli--1.12.2.arm64_sonoma.bottle.tar.gz ==> Caveats zsh completions have been installed to: /opt/homebrew/share/zsh/site-functions ==> Summary 🍺 /opt/homebrew/Cellar/mongodb-atlas-cli/1.12.2: 8 files, 65.3MB ==> Running `brew cleanup mongodb-atlas-cli`... Removing: /opt/homebrew/Cellar/mongodb-atlas-cli/1.12.1... (8 files, 64.8MB) Removing: /Users/llimllib/Library/Caches/Homebrew/mongodb-atlas-cli--1.12.1... (17.6MB) ==> Checking for dependents of upgraded formulae... ==> No broken dependents to reinstall! ==> Caveats ==> mongodb-atlas-cli zsh completions have been installed to: /opt/homebrew/share/zsh/site-functions ```
`brew doctor` is clean ``` $ brew doctor Your system is ready to brew. ```
fixing the problem with `DYLD_LIBRARY_PATH` ``` $ DYLD_LIBRARY_PATH=/opt/homebrew/Cellar/mbedtls/3.4.1/lib/ gifski --help https://gif.ski by Kornel LesiΕ„ski Usage: gifski [OPTIONS] --output ... Arguments: ... one video file supported by FFmpeg, or multiple PNG image files ```
llimllib commented 11 months ago

This is due to https://github.com/Homebrew/brew/pull/16152, thanks to cho-m and Bo98 in #153177 for finding the correct issue

llimllib commented 10 months ago

should hopefully be fixed by Homebrew/brew#16152, but apparently if you have an install with a lot of oudated packages those packages may still be broken and will need to be updated/reinstalled if they cause problems. (Or you could update all outdated packages, but I'm never confident enough to try that)