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

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

@powhu powhu commented Jun 13, 2015

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

@kylebrowning
Copy link

@kylebrowning kylebrowning commented Jun 15, 2015

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

@postmechanical
Copy link
Contributor

@postmechanical 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
Copy link
Member

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

@postmechanical postmechanical commented Jun 16, 2015

@kylebrowning 👏 👏 thanks!

@postmechanical
Copy link
Contributor

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

@rajeshr 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

@nicolastinkl nicolastinkl commented 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

@kylebrowning
Copy link

@kylebrowning kylebrowning commented Aug 5, 2015

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

@segiddins
Copy link
Member

@segiddins segiddins commented Aug 5, 2015

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

@kylebrowning
Copy link

@kylebrowning kylebrowning commented Aug 5, 2015

@segiddins. What?

@gehero
Copy link

@gehero gehero commented Sep 16, 2015

@rajeshr it's good, thank you

@appdog
Copy link

@appdog appdog commented Sep 30, 2015

Can confirm that solution of @rajeshr worked for me.

@fernandomatal
Copy link

@fernandomatal fernandomatal commented Oct 2, 2015

@rajeshr solution worked for me too.

@RichFell
Copy link

@RichFell RichFell commented Oct 7, 2015

@rajeshr solution works for me as well.

@hardikdevios
Copy link

@hardikdevios hardikdevios commented Oct 13, 2015

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

@therohansanap
Copy link

@therohansanap therohansanap commented Nov 2, 2015

@rajeshr thanks a lot!

@tzungtzu
Copy link

@tzungtzu tzungtzu commented Nov 5, 2015

@rajeshr solution works for me too!

@thewhitewood
Copy link

@thewhitewood thewhitewood commented Nov 9, 2015

@rajeshr solution works for me as well!

@impanda-cookie
Copy link

@impanda-cookie impanda-cookie commented Nov 26, 2015

@kylebrowning thanks!

@boda-taljo
Copy link

@boda-taljo boda-taljo commented Dec 1, 2015

@powhu It worked for me too, thank you

@hanushkasuren
Copy link

@hanushkasuren hanushkasuren commented Dec 3, 2015

@rajeshr Your solution worked. Thanks (Y)

@dchollo82
Copy link

@dchollo82 dchollo82 commented 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

@davegallant
Copy link

@davegallant davegallant commented Dec 22, 2015

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

@ToonoW
Copy link

@ToonoW ToonoW commented Jan 7, 2016

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

@joliylee
Copy link

@joliylee joliylee commented Feb 23, 2016

@rajeshr 👍 Thanks

@Jerry-Lau
Copy link

@Jerry-Lau Jerry-Lau commented Feb 24, 2016

@rajeshr thanks for the solution!

@duk42111
Copy link

@duk42111 duk42111 commented Feb 28, 2016

Thanks.

@raymondle
Copy link

@raymondle raymondle commented Mar 7, 2016

@rajeshr Thanks, it worked for me 👍

@harryzhang1005
Copy link

@harryzhang1005 harryzhang1005 commented 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

@charleskubicek
Copy link

@charleskubicek charleskubicek commented Mar 10, 2016

@rajeshr worked for me, thanks!

@duk42111
Copy link

@duk42111 duk42111 commented Mar 11, 2016

worked for me, thanks

@Schemetrical
Copy link

@Schemetrical Schemetrical commented Apr 19, 2016

Worked, thanks :)

@naishta
Copy link

@naishta 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

@helabenkhalfallah helabenkhalfallah commented May 2, 2016

@rajeshr worked for me, thanks !

@misbell
Copy link

@misbell 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

@renguochao renguochao commented May 19, 2016

@rajeshr solution works for me as well.

@iTamilan
Copy link

@iTamilan iTamilan commented May 24, 2016

worked for me, thanks !

@timlehr
Copy link

@timlehr 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

@elliwood elliwood commented 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 !

@elliwood
Copy link

@elliwood elliwood commented 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

@juanmorillios
Copy link

@juanmorillios juanmorillios commented Sep 17, 2016

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

@lzybala
Copy link

@lzybala 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.