Comments (7)
Reopening this since it still seems to be an issue. brew install rust
results in LLVM 18 being installed, but Ruby (or Rust?) seem to prefer LLVM 17.
I was able to work around this by explicitly running brew install llvm@17
.
from ruby-build.
FYI: rust-lang/cargo#13795 This issue caused by Homebrew's rust/cargo .
from ruby-build.
@ryansdwilson How did you manage to fix the issue? (I'm assuming you managed to do so given that you've closed the issue relatively quickly). I'm also getting a yjit/target/release/libyjit.a Abort trap: 6
error.
from ruby-build.
Brew reinstall rust
from ruby-build.
thanks @ryansdwilson, I've tried that but didn't seem to solve the problem. I'll keep debugging (and may open another ticket if this one cannot be re-opened)
from ruby-build.
Upon further inspection, this looks like it might be a Homebrew bug. The rust
Homebrew formula explicitly depends on llvm@17
, but brew install rust
for me resulted in LLVM 18 being installed but not LLVM 17. According to what I can reconstruct from Homebrew output, Homebrew first installed rust
which was satisfied by LLVM 17 already being installed, but then it allowed the upgrade LLVM 17 → 18, and in the end it deleted LLVM 17 as part of its cleanup process (which should not have happened per rust
formula dependency).
I am not going to report this to the Homebrew project because I cannot reproduce it anymore, i.e. because the bug depends on a certain state of my system that I am now unable to get back to and therefore unable to explain to the Homebrew team.
from ruby-build.
Thanks @mislav, explicitly installing llvm@17
worked like a charm.
==> Installing ruby-3.3.1...
ruby-build: using libyaml from homebrew
ruby-build: using gmp from homebrew
-> ./configure "--prefix=$HOME/.rbenv/versions/3.3.1" --with-openssl-dir=/opt/homebrew/opt/openssl@3 --enable-shared --with-libyaml-dir=/opt/homebrew/opt/libyaml --with-gmp-dir=/opt/homebrew/opt/gmp --with-ext=openssl,psych,+ --enable-yjit
-> make -j 10
-> make install
==> Installed ruby-3.3.1 to /Users/attila/.rbenv/versions/3.3.1
from ruby-build.
Related Issues (20)
- `print_command()` prints odd output v20231107 HOT 4
- Old Ruby, mismatched OpenSSL HOT 4
- Build fails on Alpine as BusyBox wget does not support --show-progress HOT 3
- Using CRuby snapshot archives instead of building from git HOT 8
- Ruby compilation broken for Ruby < 2.5
- Add option to not link against Homebrew openssl HOT 5
- ruby-build -l yields different output from rbenv install --list HOT 5
- Can we skip installing readline when Ruby version is greater than 3.3.0? HOT 3
- Giving multiple optflags raises unrecognized option error. HOT 3
- Cannot install Ruby versions 2.6 using asdf
- can't install 3.2.3 ruby version from rbenv
- ruby-build: definition not found: 3.3.0.rc1 HOT 3
- Wiki open to edits HOT 2
- Ruby 2.2.10 install fails due to OpenSSL issue HOT 3
- RUBY_BUILD_MIRROR_URL ignored HOT 7
- Can't upgrade above 20211019 via brew on macos HOT 3
- install command prompts in non-interactive shell HOT 1
- Failure to detect bz2 HOT 6
- RUBY_BUILD_ROOT docs misleading
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-build.