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

Can any one install on OS X 10.11 #3680

Closed
powhu opened this Issue Jun 12, 2015 · 45 comments

Comments

Projects
None yet
@powhu

powhu commented Jun 12, 2015

Try a lot but still get this error on 10.11

ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/xcodeproj
@segiddins

This comment has been minimized.

Show comment
Hide comment
@segiddins

segiddins Jun 12, 2015

Member

what about sudo gem install cocoapods ? There might be some issues with the rootless changes in El Capitan, but I haven't talked to the RG folks about that yet. Anyways, this is purely about rubygems, and isn't a cocoapods issue. You can always use CocoaPods.app in the meantime!

Member

segiddins commented Jun 12, 2015

what about sudo gem install cocoapods ? There might be some issues with the rootless changes in El Capitan, but I haven't talked to the RG folks about that yet. Anyways, this is purely about rubygems, and isn't a cocoapods issue. You can always use CocoaPods.app in the meantime!

@segiddins segiddins closed this Jun 12, 2015

@powhu

This comment has been minimized.

Show comment
Hide comment
@powhu

powhu Jun 13, 2015

Thank you. I follow this link update ruby for el capital and it work.

powhu commented Jun 13, 2015

Thank you. I follow this link update ruby for el capital and it work.

@kylebrowning

This comment has been minimized.

Show comment
Hide comment
@kylebrowning

kylebrowning Jun 15, 2015

I don't want to install home-brew, any other way?

I don't want to install home-brew, any other way?

@postmechanical

This comment has been minimized.

Show comment
Hide comment
@postmechanical

postmechanical Jun 16, 2015

Contributor

Without homebrew there seems to be no other way at the moment. sudo gem install cocoapods results in the same error.

Contributor

postmechanical commented Jun 16, 2015

Without homebrew there seems to be no other way at the moment. sudo gem install cocoapods results in the same error.

@segiddins

This comment has been minimized.

Show comment
Hide comment
@segiddins

segiddins Jun 16, 2015

Member

You can gem install using a GEM_HOME that you can write to. Outside of that, definitely file a radar, since gem install should work by default.

Member

segiddins commented Jun 16, 2015

You can gem install using a GEM_HOME that you can write to. Outside of that, definitely file a radar, since gem install should work by default.

@postmechanical

This comment has been minimized.

Show comment
Hide comment
@postmechanical

postmechanical Jun 16, 2015

Contributor

@kylebrowning 👏 👏 thanks!

Contributor

postmechanical commented Jun 16, 2015

@kylebrowning 👏 👏 thanks!

@postmechanical

This comment has been minimized.

Show comment
Hide comment
@postmechanical

postmechanical Jun 16, 2015

Contributor

Got it working with @segiddins recommendation by updating my ~/.bash_profile with:

export GEM_HOME=~/.gems
export PATH=$PATH:~/.gems/bin
Contributor

postmechanical commented Jun 16, 2015

Got it working with @segiddins recommendation by updating my ~/.bash_profile with:

export GEM_HOME=~/.gems
export PATH=$PATH:~/.gems/bin
@rajeshr

This comment has been minimized.

Show comment
Hide comment
@rajeshr

rajeshr Aug 3, 2015

As rootless does not affect /usr/local/bin, the following succeeds:

sudo gem install -n /usr/local/bin cocoapods

Any caveats?

rajeshr commented Aug 3, 2015

As rootless does not affect /usr/local/bin, the following succeeds:

sudo gem install -n /usr/local/bin cocoapods

Any caveats?

@nicolastinkl

This comment has been minimized.

Show comment
Hide comment
@nicolastinkl

nicolastinkl Aug 5, 2015

Im assuming you're running OS X 10.11.

This is happening because Apple has enabled rootless on the new install.

If you type sudo nvram boot-args="rootless=0"; sudo reboot in terminal.app Your computer will reboot with it disabled.

Once that is done, type

sudo gem install cocoapods -V

the -V is for verbose and will spit out any errors if they happen.

from stackoverflow.com

Im assuming you're running OS X 10.11.

This is happening because Apple has enabled rootless on the new install.

If you type sudo nvram boot-args="rootless=0"; sudo reboot in terminal.app Your computer will reboot with it disabled.

Once that is done, type

sudo gem install cocoapods -V

the -V is for verbose and will spit out any errors if they happen.

from stackoverflow.com

@kylebrowning

This comment has been minimized.

Show comment
Hide comment
@kylebrowning

kylebrowning Aug 5, 2015

@nicolastinkl Why would you copy and paste verbatim what I already said?

@nicolastinkl Why would you copy and paste verbatim what I already said?

@segiddins

This comment has been minimized.

Show comment
Hide comment
@segiddins

segiddins Aug 5, 2015

Member

No, please do not disable rootless just to install a gem.

Member

segiddins commented Aug 5, 2015

No, please do not disable rootless just to install a gem.

@kylebrowning

This comment has been minimized.

Show comment
Hide comment
@gehero

This comment has been minimized.

Show comment
Hide comment
@gehero

gehero Sep 16, 2015

@rajeshr it's good, thank you

gehero commented Sep 16, 2015

@rajeshr it's good, thank you

@appdog

This comment has been minimized.

Show comment
Hide comment
@appdog

appdog Sep 30, 2015

Can confirm that solution of @rajeshr worked for me.

appdog commented Sep 30, 2015

Can confirm that solution of @rajeshr worked for me.

@fernandomatal

This comment has been minimized.

Show comment
Hide comment
@fernandomatal

fernandomatal Oct 2, 2015

@rajeshr solution worked for me too.

@rajeshr solution worked for me too.

@RichFell

This comment has been minimized.

Show comment
Hide comment
@RichFell

RichFell Oct 7, 2015

@rajeshr solution works for me as well.

RichFell commented Oct 7, 2015

@rajeshr solution works for me as well.

@hardikdevios

This comment has been minimized.

Show comment
Hide comment
@hardikdevios

hardikdevios Oct 13, 2015

@rajeshr 👍 mate solution is working for me too ..

@rajeshr 👍 mate solution is working for me too ..

@therohansanap

This comment has been minimized.

Show comment
Hide comment

@rajeshr thanks a lot!

@tzungtzu

This comment has been minimized.

Show comment
Hide comment
@tzungtzu

tzungtzu Nov 5, 2015

@rajeshr solution works for me too!

tzungtzu commented Nov 5, 2015

@rajeshr solution works for me too!

@thewhitewood

This comment has been minimized.

Show comment
Hide comment
@thewhitewood

thewhitewood Nov 9, 2015

@rajeshr solution works for me as well!

@rajeshr solution works for me as well!

@CowPanda

This comment has been minimized.

Show comment
Hide comment

@kylebrowning thanks!

@boda-taljo

This comment has been minimized.

Show comment
Hide comment
@boda-taljo

boda-taljo Dec 1, 2015

@powhu It worked for me too, thank you

@powhu It worked for me too, thank you

@hanushkasuren

This comment has been minimized.

Show comment
Hide comment
@hanushkasuren

hanushkasuren Dec 3, 2015

@rajeshr Your solution worked. Thanks (Y)

@rajeshr Your solution worked. Thanks (Y)

@dchollo82

This comment has been minimized.

Show comment
Hide comment
@dchollo82

dchollo82 Dec 15, 2015

Thanks @rajeshr, your solution helped me install a bunch of gems including sass and compass.
However, I did originally run sudo nvram boot-args="rootless=0" as suggested in @nicolastinkl post;
Does anyone know how to revert this? Just concerned about security as I'm not sure what this has done. Thanks

Thanks @rajeshr, your solution helped me install a bunch of gems including sass and compass.
However, I did originally run sudo nvram boot-args="rootless=0" as suggested in @nicolastinkl post;
Does anyone know how to revert this? Just concerned about security as I'm not sure what this has done. Thanks

@davegallant

This comment has been minimized.

Show comment
Hide comment
@davegallant

davegallant Dec 22, 2015

Thanks @powhu, that worked for me. I already had homebrew installed so it was a quick fix.

Thanks @powhu, that worked for me. I already had homebrew installed so it was a quick fix.

@ToonoW

This comment has been minimized.

Show comment
Hide comment
@ToonoW

ToonoW Jan 7, 2016

sudo gem install -n /usr/local/bin cocoa pods
It is useful.

ToonoW commented Jan 7, 2016

sudo gem install -n /usr/local/bin cocoa pods
It is useful.

@joliylee

This comment has been minimized.

Show comment
Hide comment

@rajeshr 👍 Thanks

@Jerry-Lau

This comment has been minimized.

Show comment
Hide comment
@Jerry-Lau

Jerry-Lau Feb 24, 2016

@rajeshr thanks for the solution!

@rajeshr thanks for the solution!

@duk42111

This comment has been minimized.

Show comment
Hide comment

Thanks.

@raymondle

This comment has been minimized.

Show comment
Hide comment
@raymondle

raymondle Mar 7, 2016

@rajeshr Thanks, it worked for me 👍

@rajeshr Thanks, it worked for me 👍

@harryzhang1005

This comment has been minimized.

Show comment
Hide comment
@harryzhang1005

harryzhang1005 Mar 9, 2016

The following works for me. My Mac version is OS X EI Capitan 10.11.3. Thanks guys!
sudo gem install -n /usr/local/bin cocoapods

The following works for me. My Mac version is OS X EI Capitan 10.11.3. Thanks guys!
sudo gem install -n /usr/local/bin cocoapods

@charleskubicek

This comment has been minimized.

Show comment
Hide comment
@charleskubicek

charleskubicek Mar 10, 2016

@rajeshr worked for me, thanks!

@rajeshr worked for me, thanks!

@duk42111

This comment has been minimized.

Show comment
Hide comment
@duk42111

duk42111 Mar 11, 2016

worked for me, thanks

worked for me, thanks

@Schemetrical

This comment has been minimized.

Show comment
Hide comment
@Schemetrical

Schemetrical Apr 19, 2016

Worked, thanks :)

Worked, thanks :)

@naishta

This comment has been minimized.

Show comment
Hide comment
@naishta

naishta May 1, 2016

Still doesn't work for me. I still get the error
ERROR: Could not find a valid gem 'cocoapods' (>= 0) in any repository

with the command 'sudo gem install -n /usr/local/bin cocoapods'

Please help !

naishta commented May 1, 2016

Still doesn't work for me. I still get the error
ERROR: Could not find a valid gem 'cocoapods' (>= 0) in any repository

with the command 'sudo gem install -n /usr/local/bin cocoapods'

Please help !

@helabenkhalfallah

This comment has been minimized.

Show comment
Hide comment
@helabenkhalfallah

helabenkhalfallah May 2, 2016

@rajeshr worked for me, thanks !

@rajeshr worked for me, thanks !

@misbell

This comment has been minimized.

Show comment
Hide comment
@misbell

misbell May 11, 2016

@rajeshr worked for me as well. I tried to manually create xcodeproj in usr bin, even sudo wouldn't let me.

misbell commented May 11, 2016

@rajeshr worked for me as well. I tried to manually create xcodeproj in usr bin, even sudo wouldn't let me.

@renguochao

This comment has been minimized.

Show comment
Hide comment
@renguochao

renguochao May 19, 2016

@rajeshr solution works for me as well.

@rajeshr solution works for me as well.

@iTamilan

This comment has been minimized.

Show comment
Hide comment
@iTamilan

iTamilan May 24, 2016

worked for me, thanks !

worked for me, thanks !

@timlehr

This comment has been minimized.

Show comment
Hide comment
@timlehr

timlehr Jun 1, 2016

sudo gem install -n /usr/local/bin cocoapods
Works with 1.0.0 and OS X 10.11.5 for me. Thanks! 👍

timlehr commented Jun 1, 2016

sudo gem install -n /usr/local/bin cocoapods
Works with 1.0.0 and OS X 10.11.5 for me. Thanks! 👍

@elliwood

This comment has been minimized.

Show comment
Hide comment
@elliwood

elliwood Jun 23, 2016

sudo gem install -n /usr/local/bin cocoapods works for me
but i continued type pod setup and i got error message

[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master

Cloning into 'master'...
error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

My Mac version is OS X EI Capitan 10.11
Please help !

sudo gem install -n /usr/local/bin cocoapods works for me
but i continued type pod setup and i got error message

[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master

Cloning into 'master'...
error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

My Mac version is OS X EI Capitan 10.11
Please help !

@elliwood

This comment has been minimized.

Show comment
Hide comment
@elliwood

elliwood Jun 23, 2016

OK, i did it working by myself. This is my solution:

  1. sudo gem install -n /usr/local/bin cocoapods
  2. pod setup and go to folder .cocoapods/repos/master and copy folder .git and Ctrl + C
  3. Now, create again folder master and copy folder .git in previous step to inside it.
  4. Manually download from url 'https://github.com/CocoaPods/Specs/archive/master.zip' and extract t folder master.
  5. Go to project folder
    • touch Podfile and insert your code
    • pod install --no-repo-update

Done !

See last answer in link http://stackoverflow.com/questions/21022638/pod-install-is-staying-on-setting-up-cocoapods-master-repo#comment53771519_32964100

OK, i did it working by myself. This is my solution:

  1. sudo gem install -n /usr/local/bin cocoapods
  2. pod setup and go to folder .cocoapods/repos/master and copy folder .git and Ctrl + C
  3. Now, create again folder master and copy folder .git in previous step to inside it.
  4. Manually download from url 'https://github.com/CocoaPods/Specs/archive/master.zip' and extract t folder master.
  5. Go to project folder
    • touch Podfile and insert your code
    • pod install --no-repo-update

Done !

See last answer in link http://stackoverflow.com/questions/21022638/pod-install-is-staying-on-setting-up-cocoapods-master-repo#comment53771519_32964100

@juanmorillios

This comment has been minimized.

Show comment
Hide comment
@juanmorillios

juanmorillios Sep 17, 2016

thans @rajeshr , Works with 1.0.0 and OS X 10.11.5 for me. Thanks!

thans @rajeshr , Works with 1.0.0 and OS X 10.11.5 for me. Thanks!

@lzybala

This comment has been minimized.

Show comment
Hide comment
@lzybala

lzybala Oct 27, 2016

@rajeshr solution works! but pop command still not found?

lzybala commented Oct 27, 2016

@rajeshr solution works! but pop command still not found?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment