我使用gem安装了saas。它已成功安装。
Fetching: saas-0.1.1.gem (100%)
Successfully installed saas-0.1.1
Parsing documentation for saas-0.1.1
Installing ri documentation for saas-0.1.1
1 gem installed
但是现在当我做saas -v时,我得到了:
-bash: saas: command not found
关于这一点有很多问题,但对我没有任何作用。
gem env给出了这个输出:
RubyGems Environment:
- RUBYGEMS VERSION: 2.0.14
- RUBY VERSION: 2.0.0 (2014-05-08 patchlevel 481) [universal.x86_64-darwin14]
- INSTALLATION DIRECTORY: /Users/gaurav/.gem
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
- EXECUTABLE DIRECTORY: /Users/gaurav/.gem/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-14
- GEM PATHS:
- /Users/gaurav/.gem
- /Users/gaurav/.gem/ruby/2.0.0
- /Library/Ruby/Gems/2.0.0
- /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
/Users/gaurav/.gem/中不存在bin和ruby目录。