Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pod install -bash: pod: command not found

I installed pod some time ago. However, it's stopped working so I'm working through this again.

However, I almost immediately run into a problem here:

pod install
-bash: pod: command not found

Any suggestions why this happened?

like image 670
Snowcrash Avatar asked Oct 14 '22 02:10

Snowcrash


1 Answers

OK, found the problem. I upgraded Ruby some time ago and blasted away a whole load of gems. Solution:

sudo gem install cocoapods

For none-sudo use:

export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH
gem install cocoapods --user-install
like image 119
Snowcrash Avatar answered Oct 21 '22 17:10

Snowcrash