try installing cocoa pods using brew
$ brew install cocoapods
after it finishes downloading
$ pod --version
if it shows the version then cocoapods is installed
Topic:
App & System Services
SubTopic:
Core OS
Tags: