ruby-install | Installs Ruby , JRuby , Rubinius , TruffleRuby or MRuby
kandi X-RAY | ruby-install Summary
kandi X-RAY | ruby-install Summary
Installs Ruby, JRuby, Rubinius, TruffleRuby or MRuby
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ruby-install
ruby-install Key Features
ruby-install Examples and Code Snippets
Community Discussions
Trending Discussions on ruby-install
QUESTION
Trying to install Ruby 2.7.4 & Ruby 3 on Intel Mac 11.2.3 and I'm seeing the following error during compilation (installing using ruby-install
(https://github.com/postmodern/ruby-install). I'm seeing the following error:
ANSWER
Answered 2021-Oct-27 at 17:06ruby-install
takes care of installing the OpenSSL dependency for you, but there was a bug in ruby-install
where it wasn't specifying the exact openssl
version that needed to be installed. Thankfully that's been fixed:
- Upgrade
ruby-install
to >=0.8.3 (e.g.,brew upgrade ruby-install
) which pins the openssl dependency for ruby at 1.1 - Install ruby 3 (e.g.,
ruby-install ruby 3.0.2
)
Details:
This was solved in ruby-install
(first reported with https://github.com/postmodern/ruby-install/issues/409). Homebrew defaulted openssl
to 3.0 (the latest major version) but Ruby hasn't yet added support for OpenSSL3.0. As such openssl
dependency ruby-install
was attempting to use was the wrong version (Ruby is still on 1.1).
QUESTION
I have tried this a number of different ways. First I tried with RVM and it was just error after error and missing dependencies. Then I tried Rbenv and it was very much the same. Now, I have a combo of chruby and ruby-install to handle my versions of Ruby, but I can't update Bundler. It says that I am currently on 1.17.2, but I need 1.17.3. How do I upgrade this? I have searched everywhere, but all the solutions seems to be for RVM.
When I try to update Bundler this is the error that I get:
...ANSWER
Answered 2021-Nov-29 at 21:26So, it turns out that I had multiple versions of Bundler installed on my machine and, somehow, two of them were simultaneously set to the default version. Manually finding the installed versions, deleting them and then reinstalling the desired version seemed to fix the issue. The key is using a Ruby manager (RVM, rbenv, etc.) and ensuring that any installation of a Ruby version and/or gems are done at either a system level or inside of a project as required.
QUESTION
I looked at this Ruby installation (2.2.2) fails in macOS Big Sur
My macOS is Big Sur and the version I have is 11.2 and it was the closest I could find to the issue I'm having with my OS, I followed what I could by trying
...ANSWER
Answered 2021-Feb-23 at 19:38This is not an official solution. I'm sure the rbenv devs are working on an actual solution but this workaround should help others who are setting up their ruby environments on the new M1 chips for Mac.
Make sure your Terminal is using Rosetta. You can find how to do that using Google.
Uninstall your current
rbenv
following these instructions Removing rbenv. Be sure you also remove all the downloaded versions of ruby if you have any (minus the system default) located in/Users//.rbenv/versions/
.Uninstall the ARM version of Homebrew with:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
Install the x86_64 version of Homebrew with:
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
If you run
brew install rbenv
should produce output saying "Error: Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!". This is expected.You want to tell brew to install the older architecture x86_64
arch -x86_64 brew install rbenv
Then finally install the version you want using
arch -x86_64 rbenv install x.x.x
(x = some number i.e. 2.7.2)
From there you just need to remember to tell brew arch -x86_64
when installing other versions of Ruby.
Once an actual fix comes through you'll be able to switch back to the newer architecture and not have to use the arch
argument. You also don't have to do this all the time with brew either, just rbenv.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ruby-install
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page