I am trying to install ruby 2.5.0 on my system (macOS High Sierra) using rbenv but i'm facing a weird issue as the brew instructions are out of date:
djeustinezzz:~ JUSTINE$ rbenv install rbx-2.5.0
ERROR: Rubinius will not be able to compile using Apple's LLVM-based
build tools on OS X. You will need to install LLVM 3.5 first.
TO FIX THE PROBLEM: Install Homebrew's llvm package with this
command: brew tap homebrew/versions ; brew install llvm35
BUILD FAILED (OS X 10.13.6 using ruby-build 20160130)
The version 3.5 of LLVM was deleted. After googling here is what i've done:
brew tap homebrew/homebrew-core
brew install [email protected]
But nothing changed.
Homebrew, rbenv and ruby-build are installed and up-to-date.
Precision on why i'm doing this: i just installed Rails 5 on my computer and when i run the server, i have this error:
rbenv: version `ruby-2.5.0' is not installed (set by /Users/JUSTINE/desktop/code/test_five/.ruby-version)
When i run ruby -v
, the output is ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin17]
.
Any idea?
rbenv install 2.5.0
. Thenrbenv local 2.5.0
andrbenv rehash
inside your project directory.rbenv install 2.5.0
:ruby-build: definition not found: 2.5.0 ; The following versions contain
2.5.0' in the name: rbx-2.5.0 ; See all available versions withrbenv install --list'. ; If the version you need is missing, try upgrading ruby-build: brew update && brew upgrade ruby-build
. I have tried upgrading ruby-build already but nothing changed.rbenv install --list
, you should see2.5.0