16

I've just update my OSX to El Capitan. Now when I want to update my PodFile I get this error:

pod: command not found

Any help here?

Steaphann
  • 2,797
  • 6
  • 50
  • 109

4 Answers4

16

The installation in /usr/local/bin worked perfectly:

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

but only with adding addtional rights I was able to access it

sudo chmod -R 755 /usr/local/bin
Dirk
  • 2,011
  • 1
  • 20
  • 25
15

binstubs are no longer installed into /usr/bin.

If you are upgrading from Yosemite simply uninstall cocoapods (gem uninstall cocoapods or sudo gem uninstall cocoapods) and then run the following:

$ sudo gem install cocoapods
[...]
1 gem installed
$ export PATH=$PATH:/Library/Ruby/bin
$ pod --version
0.38.2
Aviram
  • 3,017
  • 4
  • 29
  • 43
  • Uninstall was a good idea, but is doesn't solve the real problem. See comment on hyunc's answer below. – ecotax Oct 05 '15 at 08:06
6

It worked for me for the bug when run Cocoapods on El Capitan 10.11:

sudo gem install -n /usr/local/bin cocoapods
huynguyen
  • 7,616
  • 5
  • 35
  • 48
  • This question is a duplicate of several others, where this is the preferred solution – ecotax Oct 05 '15 at 08:05
  • In my PATH didn't has "/usr/local/bin" and so it didn't work, to resolve my problem i added manually in my .bash_profile. "export PATH=/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin:", or if you will prefer can run in terminal. – Busata Oct 22 '15 at 17:37
-2

The same happened for me, sudo gem install cocoapods solved the issue

Maciek Czarnik
  • 5,950
  • 2
  • 37
  • 50