2013-09-26 60 views
0

我想在Mac上創業板安裝不創建鏈接斌

Successfully installed cocoapods-0.25.0 
1 gem installed 

$ pod install 
-bash: pod: command not found 

安裝Ruby的安裝cocoapods使用brew

$ which ruby 
/usr/local/bin/ruby 

$ which gem 
/usr/local/bin/gem 

這裏輸出gem environment

$ gem environment 
RubyGems Environment: 
    - RUBYGEMS VERSION: 2.0.3 
    - RUBY VERSION: 2.0.0 (2013-06-27 patchlevel 247) [x86_64-darwin12.5.0] 
    - INSTALLATION DIRECTORY: /usr/local/Cellar/ruby/2.0.0-p247/lib/ruby/gems/2.0.0 
    - RUBY EXECUTABLE: /usr/local/Cellar/ruby/2.0.0-p247/bin/ruby 
    - EXECUTABLE DIRECTORY: /usr/local/Cellar/ruby/2.0.0-p247/bin 
    - RUBYGEMS PLATFORMS: 
    - ruby 
    - x86_64-darwin-12 
    - GEM PATHS: 
    - /usr/local/Cellar/ruby/2.0.0-p247/lib/ruby/gems/2.0.0 
    - /Users/nt/.gem/ruby/2.0.0 
    - GEM CONFIGURATION: 
    - :update_sources => true 
    - :verbose => true 
    - :backtrace => false 
    - :bulk_threshold => 1000 
    - "install" => "--no-rdoc --no-ri" 
    - "update" => "--no-rdoc --no-ri" 
    - REMOTE SOURCES: 
    - https://rubygems.org/ 

我應該輸出或添加到.bash_profile以獲得pod install的工作?

+0

對不起,你這是什麼意思? – asdf

回答

1

我的壞,這條線在.bash_profile如果您正在使用rbenv像我,在安裝後的寶石,你必須運行rbenv老調重彈得到的墊片目錄的鏈接幫助

export PATH=$PATH:/usr/local/Cellar/ruby/2.0.0-p247/bin