Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission error on Linux #21

Open
zeshuaro opened this issue Oct 7, 2021 · 2 comments
Open

Permission error on Linux #21

zeshuaro opened this issue Oct 7, 2021 · 2 comments

Comments

@zeshuaro
Copy link

zeshuaro commented Oct 7, 2021

I'm getting the following permission error when running on ubuntu-latest:

Podfile points to the Cocoapods 1.10.1
/usr/bin/gem uninstall cocoapods --all --executables
/usr/bin/gem install cocoapods -v 1.10.1 --no-document
Gem 'cocoapods' is not installed
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /var/lib/gems/2.7.0 directory.

PS I tried the same config onmacos-latest and it's working fine.

@codymurphyjones
Copy link

I am also getting this same exact issue. It seems that linux does not have access to download the ruby gems for some reason.

@codymurphyjones
Copy link

I just managed to skirt around this issue just using this

- name: Install cocoapods run: | sudo gem install cocoapods sudo gem install -n /usr/local/bin cocoapods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants