bash-static icon indicating copy to clipboard operation
bash-static copied to clipboard

`libintl.8.dylib` is required on OSX

Open cipriancraciun opened this issue 3 years ago • 3 comments

Trying to run bash 5.1.016-1.2.3 (the macos-x86_64 build) on the M1 seems to fail with:

dyld[28034]: Library not loaded: '/usr/local/opt/gettext/lib/libintl.8.dylib'
  Referenced from: '.../tools/bash--5.1.16/bash--darwin'
  Reason: tried: '/usr/local/opt/gettext/lib/libintl.8.dylib' (no such file), '/usr/local/lib/libintl.8.dylib' (no such file), '/usr/lib/libintl.8.dylib' (no such file)
/usr/local/opt/gettext/lib/libintl.8.dylib

Installing gettext from Homebrew doesn't help, because on the ARM OSX they've changed the URL to /opt/homebrew/....

(I know there is also an ARM build, but I was trying to support both Intel and ARM architectures with a single executable...)

cipriancraciun avatar Aug 31 '22 14:08 cipriancraciun

Hmmm... I'll have to look into it further. Probably something with the way I'm building the executable. Unfortunately I don't have a M1/M2 Mac atm so my visibility into that will be a bit limited.

robxu9 avatar Oct 02 '22 04:10 robxu9

Hey there! Apologies for the delay. I think https://github.com/robxu9/bash-static/releases/tag/5.2.015-1.2.3-2 may help with this—I built bash to use its own bundled gettext instead. Let me know if that works for you.

Also note that I've finally put out a universal binary—let me know if that works for you!

robxu9 avatar Apr 10 '23 16:04 robxu9

Thanks for fixing it! However I don't have direct access to an OSX, so I'll have to ask my colleague to give it a try when he has the time. I'll report back my findings.

cipriancraciun avatar Apr 10 '23 18:04 cipriancraciun