On my Mac I have an issue with the Ruby version. Most likely this is the cause of "permission denied" errors I get (for the continues-integration Pipeline I try to set up on my Mac) and also for other issues...
I tried to install the newest Ruby version on my macOS.
My steps:
rbenv install -l
(I can see 2.6.2 as newest version, so I continue with this...)
rbenv install 2.6.2
rbenv global 2.6.2
gem update --system
After this step, I get the following error:
Updating rubygems-update
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
rbenv versions
gives 2.6.2 (as expected)
ruby --version
gives ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
The two don't match !
Do you have any idea what this FilePermission-Error means and how to overcome this ?? How do I get rid of this FilePermission-Error due to Ruby version mismatch ??