Skip to content

MacVim formula needs to be updated to ruby 3.4.3 #222798

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks done
MarekSchiffer opened this issue May 8, 2025 · 3 comments
Open
4 tasks done

MacVim formula needs to be updated to ruby 3.4.3 #222798

MarekSchiffer opened this issue May 8, 2025 · 3 comments

Comments

@MarekSchiffer
Copy link

MarekSchiffer commented May 8, 2025

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

After the automatic update ruby 3.4.3 was installed, but the current bottle is still linked to version 3.3. 

"dyld[91144]: Library not loaded: /opt/homebrew/opt/ruby/lib/libruby.3.3.dylib
  Referenced from: <0294AC5F-42A3-3329-B74B-C04412513648> /Applications/MacVim.app/Contents/MacOS/Vim
  Reason: tried: '/opt/homebrew/opt/ruby/lib/libruby.3.3.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/ruby/lib/libruby.3.3.dylib' (no such file), '/opt/homebrew/opt/ruby/lib/libruby.3.3.dylib' (no such file), '/opt/homebrew/Cellar/ruby/3.4.3/lib/libruby.3.3.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/ruby/3.4.3/lib/libruby.3.3.dylib' (no such file), '/opt/homebrew/Cellar/ruby/3.4.3/lib/libruby.3.3.dylib' (no such file)
"

Verification

  • My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

What were you trying to do (and why)?

I installed a package with brew, it updated 20+ packages automatically andet voilà macvim is broken.

What happened (include all command output)?

Nothing happened, the installations were all done. Opening macvim is the issue.

What did you expect to happen?

I expected my editor to be untouched and keep working.

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

brew install media-info.

If I try to open macvim from the Terminal, I get the output 
"dyld[91144]: Library not loaded: /opt/homebrew/opt/ruby/lib/libruby.3.3.dylib
  Referenced from: <0294AC5F-42A3-3329-B74B-C04412513648> /Applications/MacVim.app/Contents/MacOS/Vim
  Reason: tried: '/opt/homebrew/opt/ruby/lib/libruby.3.3.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/ruby/lib/libruby.3.3.dylib' (no such file), '/opt/homebrew/opt/ruby/lib/libruby.3.3.dylib' (no such file), '/opt/homebrew/Cellar/ruby/3.4.3/lib/libruby.3.3.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/ruby/3.4.3/lib/libruby.3.3.dylib' (no such file), '/opt/homebrew/Cellar/ruby/3.4.3/lib/libruby.3.3.dylib' (no such file)"

I assume the bottle needs to be recompiled with libruby.3.4.whatever.
@MarekSchiffer MarekSchiffer changed the title Formula needs to be updated to ruby 3.4.3 MacVim formula needs to be updated to ruby 3.4.3 May 8, 2025
@gromgit
Copy link
Contributor

gromgit commented May 8, 2025

Referenced from: <0294AC5F-42A3-3329-B74B-C04412513648> /Applications/MacVim.app/Contents/MacOS/Vim

This seems to indicate that you installed the macvim cask rather than the formula. The binaries for that are built upstream, so there's nothing Homebrew can do about it.

That said, the macvim formula is presumably up-to-date w.r.t. its dependencies, and it also contains a MacVim app bundle, so an alternative solution might be:

brew uninstall --cask macvim
brew install --formula macvim
ln -s $(brew --prefix macvim)/MacVim.app /Applications

@MarekSchiffer
Copy link
Author

MarekSchiffer commented May 8, 2025

Thank you for your response. To solve my problem I compiled it by hand now, but I checked.

brew uninstall --cask macvim 
Error: Cask 'macvim' is not installed.

and

brew install --formula macvim
==> Downloading https://formulae.brew.sh/api/formula.jws.json
Warning: macvim 9.1.1128 is already installed and up-to-date.

Still suspecting the formula not to be up to date with respect to ruby.

@gromgit
Copy link
Contributor

gromgit commented May 8, 2025

Suggest you try running brew linkage macvim. You should see this line in the output, if it was installed from bottle:

  /opt/homebrew/opt/ruby/lib/libruby.3.4.dylib (ruby)

If you do see it, then whatever was in your /Application/MacVim.app was out-of-date. Also note that no Homebrew formula installs anything in /Applications (that's why I asked you to symlink from the Homebrew hierarchy above), so I surmise it's something you or someone else with access to your system copied there at some point in the past, and could therefore not be updated by Homebrew.

The solution I presented above, however, automatically "updates" itself with every upgrade of the macvim formula.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants