r/apple • • Jun 04 '19

Apple will soon be removing Python, Perl, and Ruby from macOS

From the macOS 10.15 beta release notes, under the "Scripting Language Runtimes" section:

https://developer.apple.com/documentation/macos_release_notes/macos_10_15_beta_release_notes

Apparently Apple is planning to remove all of these scripting language runtimes from macOS in a future release. This is very irritating, as all the software out there that relies on these runtimes can no longer assume they will exist on any user's system and will have to bundle it themselves, or remove their reliance on it.

This decision makes no sense to me. Being able to assume those scripting runtimes exist on any macOS system was one of the things that made it great. It's not like these were burning a hole in people's hard drives either -- they're small in the grand scheme of things. All this does is make developer's lives more difficult and cause there to be tons of redundant runtimes in various app bundles. Who does this benefit? Why is it important?

edit: Seems most people quite like that they're removing Python et al, especially due to it being an outdated version. Fair enough!

538 Upvotes

195 comments sorted by

View all comments

Show parent comments

8

u/relatedartists Jun 05 '19

Ugh.. I think this is what just happened to me. Ruby isn’t working for me to do a gem install and nothing I’ve tried fixes it. I’m guessing it’s probably because of two or more different version numbers I’m seeing. One from home brew and one default, I’m guessing. I’m no expert so I don’t know. I tried a few things but maybe I need to set some environment variable someplace to point to where it should be looking for a gem install? I don’t know and I’m screwed

0

u/[deleted] Jun 05 '19

[deleted]

4

u/relatedartists Jun 05 '19

I’m not sure which ruby I’m using exactly.

I get an error like this one when I do the gem install:

https://github.com/ffi/ffi/issues/286

I’ve tried what this thread suggests but nothing works. I already had Xcode command line tools installed. And tried the “brew install libffi”. I tried the: “brew tap homebrew/dupes” and I get a message that it’s deprecated and then I notice that thread is from 2013 lol

As a noob, I have no idea what to do. I looked at the log file but don’t know what to make of it.

0

u/[deleted] Jun 05 '19

[deleted]

1

u/relatedartists Jun 05 '19

When I do ”brew info ruby” I see version 2.6.3

When I do “ruby -v” I see version 2.3.7p456

I’m just trying to install a gem. So something like “gem install <gem name>” is all I want to do. I do have to use sudo though.

3

u/Koh_Phi_Phi Jun 05 '19

Sounds like you need to add home brew to your PATH. It should be finding the brew version not the system version. Also use rbenv to switch ruby versions.

1

u/[deleted] Jun 05 '19

https://github.com/ffi/ffi/issues/286

I have the fix for you! It involves using rbenv, here's the instructions:Delete RVM if you have installed it already

rvm implode gem uninstall rvm

To start, remove and reinstall xcode:

sudo rm -rf /Library/Developer/CommandLineTools

xcode-select --install

Install rbenv:

brew install rbenv rbenv init Restart your terminal

Install Ruby:

rbenv install 2.4.0

When it fails, cd into the failing folder ( something like cd /var/folders/mf/q9bb4w2539vfjprg0j45b02n8c1mr2/T/ruby-build.20190118101128.44882/ruby-2.4.0/) and run a make install as documented in this thread: https://github.com/rbenv/ruby-build/issues/992

once the make install completes you should be good to go!

1

u/relatedartists Jun 05 '19

Whoa thanks!! Wait a sec though, I’m not really super savvy with this stuff. I just tried doing the command “rvm implode gem uninstall rvm” and it says “rvm: command not found”. Should it be a command?

Also, I don’t ever remember installing rvm nor do I know what it even is.

2

u/[deleted] Jun 05 '19

brew info ruby for the $PATH

I haven't really used Ruby since ML/Mavericks. Back then the recommended install method for brew/RVM switched around a lot but the rules were always 1) don't mess with system ruby/gemset and 2) don't sudo gems or permissions go funny.

3

u/relatedartists Jun 05 '19

When I do that command I see version 2.6.3

When I do “ruby -v” I see version 2.3.7p456

So I don’t know what to do.

I get an error like this one when I do the gem install:

https://github.com/ffi/ffi/issues/286

I’ve tried what this thread suggests but nothing works. I already had Xcode command line tools installed. And tried the “brew install libffi”. I tried the: “brew tap homebrew/dupes” and I get a message that it’s deprecated and then I notice that thread is from 2013 lol

As a noob, I have no idea what to do. I looked at the log file but have no idea what to make of it.

1

u/[deleted] Jun 05 '19

To use ruby from brew you have to set it first in your $PATH. When you run brew info ruby the line below If you need to have ruby first in your PATH run: will switch the default after restarting your terminal.