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

Can any one install on OS X 10.11 #3680

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

Can any one install on OS X 10.11 #3680

powhu opened this issue Jun 12, 2015 · 45 comments

Comments

@powhu
Copy link

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
Copy link
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!

@powhu
Copy link
Author

powhu commented Jun 13, 2015

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

@kylebrowning
Copy link

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

@postmechanical
Copy link
Contributor

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

@segiddins
Copy link
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.

@kylebrowning
Copy link

I found out how, and answered here.

http://stackoverflow.com/questions/30812777/cannot-install-cocoa-pods-after-uninstalling-results-in-error/30851030#30851030

@postmechanical
Copy link
Contributor

@kylebrowning 👏 👏 thanks!

@postmechanical
Copy link
Contributor

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

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

@rajeshr
Copy link

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
Copy link

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
Copy link

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

@segiddins
Copy link
Member

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

@kylebrowning
Copy link

@segiddins. What?

@gehero
Copy link

gehero commented Sep 16, 2015

@rajeshr it's good, thank you

@appdog
Copy link

appdog commented Sep 30, 2015

Can confirm that solution of @rajeshr worked for me.

@fernandomatal
Copy link

@rajeshr solution worked for me too.

@RichFell
Copy link

RichFell commented Oct 7, 2015

@rajeshr solution works for me as well.

@hardikdevios
Copy link

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

@therohansanap
Copy link

@rajeshr thanks a lot!

@tzungtzu
Copy link

tzungtzu commented Nov 5, 2015

@rajeshr solution works for me too!

@thewhitewood
Copy link

@rajeshr solution works for me as well!

@impanda-cookie
Copy link

@kylebrowning thanks!

@ghost
Copy link

ghost commented Dec 1, 2015

@powhu It worked for me too, thank you

@hanushkasuren
Copy link

@rajeshr Your solution worked. Thanks (Y)

@dchollo82
Copy link

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
Copy link

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

@ToonoW
Copy link

ToonoW commented Jan 7, 2016

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

@joliylee
Copy link

@rajeshr 👍 Thanks

@jerrylau91
Copy link

@rajeshr thanks for the solution!

@duk42111
Copy link

Thanks.

@raymondle
Copy link

@rajeshr Thanks, it worked for me 👍

@harryzhang1005
Copy link

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
Copy link

@rajeshr worked for me, thanks!

@duk42111
Copy link

worked for me, thanks

@Schemetrical
Copy link

Worked, thanks :)

@naishta
Copy link

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
Copy link

@rajeshr worked for me, thanks !

@misbell
Copy link

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
Copy link

@rajeshr solution works for me as well.

@iTamilan
Copy link

worked for me, thanks !

@timlehr
Copy link

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
Copy link

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
Copy link

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
Copy link

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

@lzybala
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests