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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer by Prerit Jain for You don't have write permissions for the...
rbenv global 2.6.3 helped me solve this problem.
View ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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