Permission denied….
$ gem install cocoapods Fetching: cocoapods-search-0.1.0.gem (100%) ERROR: While executing gem ... (Errno::EACCES) Permission denied - /usr/local/gems
…ふむ
sudo か?! とおもって
$ sudo gem install cocoapods Fetching: cocoapods-search-0.1.0.gem (100%) Successfully installed cocoapods-search-0.1.0 Fetching: cocoapods-core-0.39.0.gem (100%) Successfully installed cocoapods-core-0.39.0 Fetching: cocoapods-0.39.0.gem (100%) ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/pod
…(‘ω’ )
実行ファイルがそこに入れられないなら、” /usr/local/bin/ ” に入れるようにすればいい
$ sudo gem install cocoapods -n /usr/local/bin/ Successfully installed cocoapods-0.39.0 Parsing documentation for cocoapods-0.39.0 Installing ri documentation for cocoapods-0.39.0 Done installing documentation for cocoapods after 3 seconds 1 gem installed $ pod --version 0.39.0
やったぜ