Ruby installation permissions

Hi, going through the installation steps, I am trying to update my Ruby 2.3.0 folder within the Library on my OS 10.13.6 , but keep getting permission errors. I have changed the Ruby folder to have Read & Write permissions, as well as sub folders. Below is the transcript from Terminal, what should I try next? Thanks

[Mark-Laptop:~] markbresler% gem update --system
Updating rubygems-update
Fetching: rubygems-update-3.1.2.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/local/bin directory.
[Mark-Laptop:~] markbresler% gem install ruby
Fetching: ruby-0.1.0.gem (100%)
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ dir_s_mkdir - /Library/Ruby/Gems/2.3.0
[Mark-Laptop:~] markbresler%

Comments

Sign In or Register to comment.