Quantcast
Channel: You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory. (mac user) - Stack Overflow
Browsing all 39 articles
Browse latest View live

Answer by Ilya Biltuev for You don't have write permissions for the...

I also struggled with this Ruby problem and finally found an easy and working solution for Mac with M1 chip.To install Ruby I used a simple ruby manager called chruby...

View Article



Answer by tacia for You don't have write permissions for the...

What solved the issue for me:add to your ~/.bash_profile or ~/.zshrceval "$(rbenv init -)"Then Ruby version of local directory is picked correctly instead of system Ruby version being picked. And I was...

View Article

Image may be NSFW.
Clik here to view.

Answer by Avendi Sianipar for You don't have write permissions for the...

I messed up with this problem for a few days, finally its working well, thanks to the inspiration from:BlackRainbow - Setup Jenkins $PATH variableMoncef Belyamani - Why You Should Never Use sudo to...

View Article

Answer by atasumt for You don't have write permissions for the...

First, run the following command to install Ruby Gems in your user directory:gem install activesupport -v 6.1.7.3 --user-install

View Article

Answer by Peer Mohamed Thabib for You don't have write permissions for the...

You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.In my case, the issue was related to ruby access some how the ruby path was messed up in my system.The below steps helped me...

View Article


Answer by Syed Hasnain for You don't have write permissions for the...

for Mac OS 12 and above also for 13Xcode 14 and abovefirst you callexport GEM_HOME="$HOME/.gem"after thatgem install cocoapodshome its help you ☺️

View Article

Answer by Emmanuel Iyen-Mediatrees for You don't have write permissions for...

For latest OS versionsFirst run sudo xcode-select --switch /sudo gem install cocoapods --user-installthis did it for me

View Article

Answer by Tom.Liu for You don't have write permissions for the...

After install rbenv ,I also have this problem , add this line in my .bashrc :eval "$(rbenv init -)"solved my problem.

View Article


Answer by Pedro Moreno for You don't have write permissions for the...

Tested on M1 MacBook Air (assuming Homebrew installed)Following to the top answer, we can run:brew install chruby ruby-installTo install the latest stable ruby:ruby-install rubyThen get the version...

View Article


Answer by Sangam for You don't have write permissions for the...

After install ruby with rbenv you also need to set global ruby. For that you can do like, rbenv global 3.2.1 then install bundler with gem install bundler. It will work.

View Article

Answer by mayur chavan for You don't have write permissions for the...

I deleted those directories by using the below commandsudo rm -rf \ /Library/Ruby/Gems/2.6.0/{build_info,cache,doc,extensions,gems} \ /Library/Ruby/Gems/2.6.0/specifications/*.gemspec \...

View Article

Answer by Prerit Jain for You don't have write permissions for the...

rbenv global 2.6.3 helped me solve this problem.

View Article

Answer by Boštjan Pišler for You don't have write permissions for the...

Had the same error because I forgot to run the following after installing ruby:source ~/.zshrc - or other ~/...rc file depending on your terminal

View Article


Answer by mehran minaei for You don't have write permissions for the...

I try it, and work to meexport PATH=/opt/homebrew/opt/ruby/bin:/opt/homebrew/lib/ruby/gems/3.0.0/bin:$PATHexport LDFLAGS="-L/opt/homebrew/opt/ruby/lib"export...

View Article

Answer by user3064538 for You don't have write permissions for the...

To fix this, I ranbrew reinstall rubywhich showed me this message==> Caveats==> rubyBy default, binaries installed by gem will be placed into: /opt/homebrew/lib/ruby/gems/3.1.0/binYou may want to...

View Article


Answer by thanhbinh84 for You don't have write permissions for the...

Install homebrew by passing this into your terminal/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Install cocoapods using brewbrew install cocoapods

View Article

Answer by Mehmood Hassan for You don't have write permissions for the...

I was using the below command to install fastlane but didn't workedgem install fastlane -NVSo using sudo to install gems worked for me and it would be likesudo gem install fastlane -NV

View Article


Answer by Sachintha Udara for You don't have write permissions for the...

You need to install rbenv and maintain ruby versions under rbenv.brew install rbenvrbenv initappend eval "$(rbenv init -)" to ~/.bash_profilerbenv install {stable_version_#} you can get version number...

View Article

Answer by Muhammad Naeem Paracha for You don't have write permissions for the...

Just export GEM_HOME:export GEM_HOME="$HOME/.gem"And then try:gem install cocoapods

View Article

Answer by Justin Shenk for You don't have write permissions for the...

After trying the previous approaches, this worked for me on Big Sur:sudo gem install -n /usr/local/bin cocoapods

View Article
Browsing all 39 articles
Browse latest View live


Latest Images