Macvim from Homebrew formula missing ruby@4.0
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- macos, ruby, vim
- Domain
- build-system
Research direction
Start by reproducing the failure with brew install macvim, then inspect the Homebrew formula and its dependency or build entry points for the missing ruby@4.0 library. Done means a clean MacVim launch works both through MacVim.app and mvim/gvim, including with --clean.
Written by the indexing model from the issue text.
Description
Steps to reproduce
Install macvim via homebrew via brew install macvim and then either launch the macvim via GUI or terminal. The error message I got is:
dyld[20899]: Library not loaded: /opt/homebrew/opt/ruby@4.0/lib/libruby.4.0.dylib
Referenced from: <52A6DA3C-2DB7-33B3-B925-C83D0C432B8E> /opt/homebrew/Cellar/macvim/9.2.0321/MacVim.app/Contents/MacOS/Vim
Reason: tried: '/opt/homebrew/opt/ruby@4.0/lib/libruby.4.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/ruby@4.0/lib/libruby.4.0.dylib' (no such file), '/opt/homebrew/opt/ruby@4.0/lib/libruby.4.0.dylib' (no such file)
Expected behaviour
Launch correctly
Version of MacVim
9.2.0321
MacVim installation method
Homebrew formula: brew install macvim
Environment
macOS 26.6.2
Logs and stack traces
dyld[20830]: Library not loaded: /opt/homebrew/opt/ruby@4.0/lib/libruby.4.0.dylib
Referenced from: <52A6DA3C-2DB7-33B3-B925-C83D0C432B8E> /opt/homebrew/Cellar/macvim/9.2.0321/MacVim.app/Contents/MacOS/Vim
Reason: tried: '/opt/homebrew/opt/ruby@4.0/lib/libruby.4.0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/ruby@4.0/lib/libruby.4.0.dylib' (no such file), '/opt/homebrew/opt/ruby@4.0/lib/libruby.4.0.dylib' (no such file)
Vim and MacVim configuration where issue is reproducable
No response
How was MacVim launched?
- by launching MacVim.app in macOS (by using the Dock, Spotlight, or the
opencommand) - by running mvim/gvim in the terminal
Issue has been tested with clean configuration
- by running
mvim --clean(orgvim, supplied by MacVim distribution). You can also use the File → "New Clean Window" menu item within MacVim. - by running
vim --clean(in terminal, supplied by MacVim distribution) - by running
vim --clean(in terminal, other suppliers, e.g. /usr/bin/vim)
- Dominant language
- Vim Script
- Stars
- 7.9k
- Forks
- 691
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from macvim-dev/macvim
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
macvim-dev/macvim#1658 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
macvim-dev/macvim#1657 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
macvim-dev/macvim#1655 ·
-
Difficulty 2/5 Half a day Newbie friendliness 72/100
macvim-dev/macvim#1653 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
macvim-dev/macvim#1696 · 1 comment ·
All issues in macvim-dev/macvim
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
package-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oSoWoSo/vOid_Community_repOsitory#147 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
agentic-workflows cascade-suspected
Difficulty 1/5 Under an hour Newbie friendliness 88/100