get rid of homebrew of Ruby version 2.6.10 - ruby

brew doctor has now a warning - after I made the last update of Monterey:
Warning: Ruby version 2.6.10 is unsupported on macOS 12. Homebrew
is developed and tested on Ruby 2.6.8, and may not work correctly
on other Rubies. Patches are accepted as long as they don't cause breakage
on supported Rubies.
The ruby in my path is version ruby 3.1.2p20
How do I uninstall the earlier version of Ruby?
Thank you in advance
marek

They've updated Ruby in 12.6.1. You can ignore it, brew maintainers are aware of this and said it will be all cleared up next release.

Related

On Apple Silicon: ruby-build: definition not found: 3.0.0

When I try to install the latest ruby (3.0.0), it fails with:
ruby-build: definition not found: 3.0.0
Clearly, ruby 3 has been released more than a month ago, so I'm guessing the team is running into problems building/packaging it for Apple Silicon (M1) or no one's had the bandwidth to do so yet. How would I follow up on this?
ASDF users, try asdf plugin update ruby then asdf install ruby the_ruby_version_here
Have you tried brew update && brew upgrade rbenv ruby-build? That may help you get the latest available version of Ruby. You can try rbenv install --list to see what you have available.

Unable to use Sass on macOS Catalina

Since upgrading to Catalina I'm not being able to use Ruby Sass. I tried installing Node Sass but I keep getting this message:
dyld: Library not loaded: /Users/luiscarlospandocarrera/.rvm/rubies/ruby-2.5.0/lib/libruby.2.5.dylib
Referenced from: /Users/luiscarlospando/.rvm/rubies/ruby-2.5.0/bin/ruby
I tried uninstalling Ruby Sass, reinstalling it and I just keep getting this message.
What would I need to do?
Thanks in advance!
This looks like a Ruby problem, so maybe reinstall Ruby, or possibly bump to a newer version to see if that side-steps the issue. 2.7.0 is out and worth a shot. From time to time an OS upgrade will pull a library your locally built Ruby depends on, so you need to rebuild Ruby to link to the new, updated libraries.
Ruby SASS is EOL (26 March 2019) - https://sass-lang.com/ruby-sass and you should try to find other ways to "compile" your SASS files.
I uses sassc with PHPStorm as a runner for the themes that uses SASS.
Easiest way to install is by using homebrew:
brew install sassc
You should also consider using https://github.com/sass/dart-sass
I managed to solve this problem by installing the latest version of Ruby as suggested by tadman by using Ruby Version Manager (rvm).
To do it I did the following steps:
Installed the latest version of rvm:
curl -L https://get.rvm.io | bash -s stable and then I had to restart the terminal.
Installed the latest version of Ruby:
rvm install ruby-2.7.0
I did set v2.7.0 as the version of Ruby I wanted to use:
rvm --default use ruby-2.7.0
I hope this helps!

RVM fails to install Ruby 2.3.x

RVM fails, and hangs, when trying to install Ruby 2.3.x (2.3.1 in my case) on Manjaro 4.11.12, but this issue has been also reported on other operating systems such as openSUSE.
The error thrown is Error in../../miniruby': corrupted double-linked list but there are situations where RVM also points to OpenSSL or GCC.
Here is what I tried:
Downgrading from GCC7 to GCC6 and even GCC5
Installing openssl with the rvm pkg install command (rvm pkg install openssl)
Doing a system update
Nothing worked so far.
This took me a while to debug as the log files are not very explicit, most of them point to OpenSSL 1.0 some of them point towards GCC; also this issus can't be reproduced with newer Ruby versions such as 2.4.x.
It seems that the issue is from GCC7 and there is already an official patch released for it.
You can download the patch from https://bugs.ruby-lang.org/attachments/6655/ruby_2_3_gcc7.patch and then run rvm install 2.3.x --patch ruby_2_3_gcc7.patch%0.
This should fix the issue and RVM won't complain anymore.

How to replace/update an old version of Ruby

Mavericks 10.9.1
I'm have difficulty updating ruby 1.9.3p194
rvm install 2.1.0
Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/osx/10.9/x86_64/ruby-2.1.0.tar.bz2
Checking requirements for smf.
SMF Framework support is only intended for RailsInstaller / Tokaido.app, please use Macports / Homebrew integration instead.
Requirements installation failed with status: 100.
I've tried Homebrew but this doesn't work either. Doctor reveals a number of issues. Can anyone help?

Why can I not install ruby 1.9.3-p488 via homebrew?

I already have ruby version 2.0 but for a project, I need version 1.9.3-p448. When I try to run the ruby build I get the following:
ruby-build: definition not found: 1.9.3-p448
You can list all available versions with `rbenv install --list'.
If the version you're looking for is not present, first try upgrading
ruby-build. If it's still missing, open a request on the ruby-build
issue tracker: https://github.com/sstephenson/ruby-build/issues
The highest 1.9.3 version that comes up when i run rbenv install --list is 1.9.3-p429 and I can't figure out how to do a manual install. All of the documentation I have read only has instructions from the start but nowhere addresses this issue.
I had a similar problem and I uninstalled ruby build then reinstalled it and it worked. Hope that works!
You need to upgrade rbenv. 1.9.3-p448 is available in the current version.

Resources