在El Capitan上安装Cocoapods。 " pod:找不到命令"

时间:2015-09-15 19:56:52

标签: bash cocoapods osx-elcapitan

我试图按照此处的说明在El Capitan GM上安装Cocoapods: https://github.com/CocoaPods/CocoaPods/issues/3692#issuecomment-113847612

任何时候我尝试运行一个“播放器”。命令它说它无法找到。一切都应该在哪里,我不知道出了什么问题。我的终端福并不是最强的。这是我终端窗口的转储。

Last login: Tue Sep 15 15:39:29 on ttys000
Shinji:~ Joey$ sudo gem update --system
Latest version currently installed. Aborting.
Shinji:~ Joey$ 
Shinji:~ Joey$ sudo gem install cocoapods
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/xcodeproj
Shinji:~ Joey$ mkdir -p $HOME/Software/ruby
Shinji:~ Joey$ export GEM_HOME=$HOME/Software/ruby
Shinji:~ Joey$ gem install cocoapods
Fetching: xcodeproj-0.26.3.gem (100%)
Successfully installed xcodeproj-0.26.3
Fetching: fuzzy_match-2.0.4.gem (100%)
Successfully installed fuzzy_match-2.0.4
Fetching: cocoapods-core-0.38.2.gem (100%)
Successfully installed cocoapods-core-0.38.2
Fetching: cocoapods-0.38.2.gem (100%)
Successfully installed cocoapods-0.38.2
Parsing documentation for xcodeproj-0.26.3
Installing ri documentation for xcodeproj-0.26.3
Parsing documentation for fuzzy_match-2.0.4
Installing ri documentation for fuzzy_match-2.0.4
Parsing documentation for cocoapods-core-0.38.2
Installing ri documentation for cocoapods-core-0.38.2
Parsing documentation for cocoapods-0.38.2
Installing ri documentation for cocoapods-0.38.2
4 gems installed
Shinji:~ Joey$ export PATH=$PATH:$HOME/Sofware/ruby/bin
Shinji:~ Joey$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/Joey/Sofware/ruby/bin
Shinji:~ Joey$ pod --version
-bash: pod: command not found
Shinji:~ Joey$ 

0 个答案:

没有答案