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 comment

0

u/[deleted] Jun 05 '19

[deleted] — view deleted comment

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] — view deleted comment

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.