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
"pod: command not found" after installing on OS X El Capitan Beta 2 #3736
Comments
What's the output of |
I have the same problem. |
See #3692 (comment), binstubs are installed in a directory that is not part of the standard |
i have got the same problem...oh no ... |
I tried the #3690 but it still not finding the pod command line. tells me it does not exist. |
Same issue here. 👎 |
Same for me |
Piling on doesn't really help anyone — you have to tell us what you tried and why that didn't work for you. |
Got the same problem after upgrading to 10.11
|
Update with solution: sudo gem install -n /usr/local/bin cocoapods will install 'pod' to a writeable place. From http://stackoverflow.com/a/32883578/701926 - give him an upvote if it helps you. Original problem: Same here - trying to re-install cocoapods fails: richard$ pod install I suspect it is related to: http://arstechnica.co.uk/apple/2015/09/os-x-10-11-el-capitan-the-ars-technica-review/8/#h1 which would block an install to /usr/bin - should be to /usr/local/bin Trying it without 'sudo' in case it then finds local places to install fails too: richard$ gem install cocoapods |
@richardgroves interesting, I guess there's a problem with existing installations in the El Capitan Ruby there. Could you try uninstalling and then reinstalling CocoaPods? |
I have solved this problem. http://www.jianshu.com/p/c2624f916957?utm_campaign=hugo&utm_medium=reader_share&utm_content=note |
@neonichu - Installing El Capitan wipes out the old version of cocoapods - the Ars Technica article has a link to where it 'migrates' all the files it finds in places it didn't like. Hmmm....looks like the old versions are there - just the front end 'pod' launcher that got wiped: richard$ pod --version Select gem to uninstall:
So after uninstalling the 0.38.2 I still have the previous one working. and then a straight install to get back to the latest fails: richard$ sudo gem install cocoapods leaving me at 0.38.0 until I use the '-n /usr/local/bin' positioning argument. @MarsCWD - that will work (disabling the whole SIP system) but is a bit heavy handed. |
@richardgroves I can't reproduce this, if I uninstall all existing CP installations on OS X 10.11 and then reinstall, |
when i want reinstall cocoapods i got his :
|
@neonichu Interesting - I wonder if there is a config setting in Ruby gems that indicates where to put things? The machine I'm on has also done updates from several previous OS X versions so might have inherited an install location from an old version? |
@richardgroves yah, I am assuming that is the case. I have updated the instructions in this comment to reflect the |
Try the following command on OS X El Capitan |
thanks for your suggestion @MVakas. It solved the issue for me |
@MVakas : thanks !! worked like a charm ! |
I just installed el capitan and ran into the same issue than you guys. I did as @MVakas said, but I had to change permissions of /usr/local/bin/ with sudo chmod +rx /usr/local/bin/ |
After running this command, solved |
The config problem appears to be in /Library/Ruby/Site/2.0.0/rubygems/defaults.rb - around line 118: The default directory for binariesdef self.default_bindir it is setting up what is basically a not-allowed in OS X 10.11 directory to install binaries too. I'm on Ruby 2.0.0, so don't know if this is changed in the newer 2.2.3 build. The folder was the same back in 1.8 - http://stackoverflow.com/a/333639/701926 |
Interesting, that configuration file doesn't even exist on my 10.11 installation. Maybe it's an upgrade leftover in certain situations? |
Just updated to 2.2.3 using brew & rbenv - so that has moved everything into a local folder in my user account which should solve future problems. Here's hoping the bad bindir setup is some legacy issue that will fade out rapidly. |
I have filed a radar on this: http://www.openradar.me/22979372 — but pretty sure nothing will come out of it because it is way too vague. |
Got a reply for the radar:
Could y'all check your |
Gems version... After running .... |
@CoderMJLee I fix it with this. |
I had the same issue after upgrading to 10.11.1
then
|
@CatchZeng thanks...you helped me |
+1 @the-scott-davis Thanks a lot,it's worked. |
I was wondering if anyone has come across this running Xcode Server? I tried the-scott-davis suggestions, and others, all to no avail. I'm still getting the "pod: command not found." The weird thing is, Xcode Server runs as user _xcsbuildd. If I "su" to that user and do a "pod --version", no problem, it finds the command. But if I run a bot, with a script that has "pod install" in it, it's like the command doesn't exist. Any help would be greatly appreciated. |
+1 I have the same problem as @skydivedan. I tried all the things I could but nothing worked yet. |
@the-scott-davis It works. Thank you. |
@skydivedan I made it work easily at the end. Just do as @the-scott-davis said above and add one more step : Hope that helps. |
You can also just run : Worked for me |
Removing all versions and sandbox of CocoaPods and installing it again solved the problem for me. Uninstall: |
We can also make it work for local gem installation (a sudo-less one):
|
@MVakas Legend! |
+1 @the-scott-davis Thanks! |
I ran sudo "chmod +rx /usr/local/bin/" and It can work as before |
Thanks..everyone @MVakas... |
Thanks... @MVakas |
wait a minute.... Cocoapods 1.0 just rolled out. Shouldn't this have been addressed in the big 1.0 update? Or will "sudo gem install" always need a path argument? |
This happens because of a new security level in El Capitan, you can disable SIP or have the install use the -n flag along with the /usr/local/bin path however the route cause is the updated security model. |
i have tried all bellow Commands in os X 10.11.04 ....still iam getting this error ==> sudo gem install cocoapods sudo gem install activesupport -v 4.2.6 sudo gem install activesupport -v 4.2.6 sudo gem install cocoa pods sudo gem install -n /usr/local/bin cocoapods [sudo] gem install activesupport -v 4.2.6 [sudo] sudo gem install cocoapods sudo gem install cocoapods -V |
@the-scott-davis help me, thanks |
Try this Commands sudo gem install activesupport -v 4.2.6 , sudo gem install cocoapods -V , sudo gem update --system On Sunday, October 16, 2016, RMKitty notifications@github.com wrote:
|
when i run pod setup Cloning into 'master'... how to solve |
Thanks, if you have installed cocoapads successfully, but :pod command not found, this is your solution. Don't listen to the cacophony around. |
Guys, I tried every solution and was getting crazy when nothing was working.
It was still not working. then I RESTARTED the mac, and it was all okay. |
Trying to setup an OS X Server Mac Mini with El Capitan Beta 2 so I can try out the new Xcode server stuff. I'm able to run "sudo gem install cocoapods", and it seems to install everything properly without errors, but when I run "pod setup" I get the command not found error. Happens even after closing the current Terminal window and opening a new one.
Is there an issue specific to the 10.11 beta? I've been able to install cocoapods on my other macs (albeit I installed cocoapods way before I installed the 10.11 beta on those machines)
The text was updated successfully, but these errors were encountered: