I can't download gems

My Macbook is denying gem installation on my computer. Any idea? Thanks.


While executing gem ... (Errno::EACCES)

Permission denied @ dir_s_mkdir - /Library/Ruby/Gems

Posted on May 6, 2023 1:18 AM

Reply
2 replies

May 6, 2023 7:44 AM in response to rubypos

I am not clear why you are attempting to make an unprivileged directory in /Library/Ruby/Gems. This is an area reserved by Apple for its Ruby implementation, not newer versions.


Apple indicated several years ago that they would be removing Ruby, Python, and Perl distributions from future releases of macOS. They removed Python with macOS 12.3, and as the current Apple provided Ruby is deprecated and unsupported by ruby-lang dot org, you might consider staying current with supported versions of Ruby via Ruby version managers such as rbenv or RVM. I use the latter. Either support the homebrew package manager that maintain current dependencies, and both give you complete Ruby independence when Apple (without further warning) releases an update/upgrade to macOS without Ruby support.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

I can't download gems

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.