Precompiled Ruby Binaries #7268
Replies: 8 comments 12 replies
-
|
This broke our deployments using Kamal, installed through the When running Example failing run: After adding |
Beta Was this translation helpful? Give feedback.
-
|
On MacOS (15.7.3), with precompiled binaries I could no longer update gems, e.g. I can get to install those gems with the following: but afterwards the entire ruby installation is broken, that is, I could no longer perform most of |
Beta Was this translation helpful? Give feedback.
-
|
A fix for the native extension header issue has been submitted: This PR:
Note: This comment was AI-generated using Claude Code |
Beta Was this translation helpful? Give feedback.
-
|
I'm having issues with MacOS Team IDs, as the precompiled binary is signed by your developer ID cert, but my native extensions all have no Team ID. Example: Resigning it ad-hoc removes the issue of course, but that doesn't seem like a sustainable solution? |
Beta Was this translation helpful? Give feedback.
-
|
This is working great for me after the latest changes, but i'm encountering one funky thing. I have a The workaround is to uninstall I haven't had a chance to investigate further, but is it possible that the prebuilt rubies are coming with some gems already installed and there's some missing metadata to let rubygems know that it's already installed? |
Beta Was this translation helpful? Give feedback.
-
|
I also got issues through the usage of My NOTE: I explicitly re-install some bundled gems (debug & irb seen above) to make sure I'm on the latest version of them. For comparison: # This ruby was installed with mise and compiled from source. Note that I have write permissions to it.
$ ls -ll $(mise where ruby@3)/lib/ruby/gems/3.4.0/specifications/debug-1.11.1.gemspec
-rw-r--r--@ 1 drowze.dev@foobar.com staff 1445 Dec 26 09:42 /Users/drowze.dev@foobar.com/.local/share/mise/installs/ruby/3.4.8/lib/ruby/gems/3.4.0/specifications/debug-1.11.1.gemspec
# This ruby was installed with mise but pre-compiled. Note that I do not have write permissions to it.
$ ls -ll $(mise where ruby@4)/lib/ruby/gems/4.0.0/specifications/debug-1.11.1.gemspec
-r--r--r--@ 1 drowze.dev@foobar.com staff 1445 Jan 18 17:58 /Users/drowze.dev@foobar.com/.local/share/mise/installs/ruby/4.0.1/lib/ruby/gems/4.0.0/specifications/debug-1.11.1.gemspecMy environment: (obs.: not sure if relevant but I have an unusual username (an email) on this laptop due to company policy - I've seen this breaking things in the past lol) |
Beta Was this translation helpful? Give feedback.
-
|
The precompiled Ruby binaries do not work with older glibc versions. On AlmaLinux 9.7 I get the following error using the mise pre-compiled Ruby binaries: RHEL/AlmaLinux 8 and 9 are still in widespread use, so supporting both of them would be useful. This should be possible by compiling the Ruby binaries on an older distro that has an older version of glibc installed. |
Beta Was this translation helpful? Give feedback.
-
|
I was unable to install a precompiled ruby 3.2.2 even though there is a release for it. 3.4.1 worked fine, though. I ran Clearly it's fetching from jdx/ruby. Here's ruby 3.2.2: And there it's trying to build it from source. I'm going to upgrade the project to a newer version, but this could be a bug to look into. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We're excited to announce experimental support for precompiled Ruby binaries in mise! This can dramatically reduce Ruby installation time from several minutes (compiling from source) to just seconds.
How to Enable
Precompiled binaries require experimental mode:
Supported Platforms
Precompiled binaries are sourced from jdx/ruby and currently support:
How It Works
With experimental mode enabled, mise will:
This means you get fast installs when precompiled versions exist, with zero breakage for versions or platforms that don't have them yet.
Settings
ruby.compile- Set totrueto always compile from source, even when precompiled binaries are availableruby.precompiled_url- Custom source for precompiled binaries (GitHub repo or URL template)See PR #7263 for implementation details.
Beta Was this translation helpful? Give feedback.
All reactions