Why can't Ruby find Rake?

Yesterday I used Rails 3 beta gem, but returned to 2.3.8, and after cleaning the system stones, I tried to run a simple Rake task and got the following:

Peleliu: haml jayfallon $ sudo rake install
/Library/Ruby/Site/1.8/rubygems.rb:779:in `report_activate_error ': Could not find RubyGem rake (> = 0) (Gem :: LoadError)
 from /Library/Ruby/Site/1.8/rubygems.rb:214:in `activate '
 from /Library/Ruby/Site/1.8/rubygems.rb:1082:in `gem '
 from / usr / bin / rake: 18

I am not sure if this is because my path is running or not.

RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.7

  - RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0]
  - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: / usr / local / bin / ruby
  - EXECUTABLE DIRECTORY: / usr / local / bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-darwin-10
  - GEM PATHS:
     - /usr/local/lib/ruby/gems/1.8
     - /Users/jayfallon/.gem/ruby/1.8
  - GEM CONFIGURATION:
     -: update_sources => true
     -: verbose => true
     -: benchmark => false
     -: backtrace => false
     -: bulk_threshold => 1000
     -: sources => ["http://gems.rubyforge.org/", "http://gems.github.com", "http://gems.github.com", "http: // gems. github.com "," http://gems.github.com "," http://gems.github.com "," http://gems.github.com "," http: //gems.github. com "," http://gems.github.com "," http://gems.github.com "," http://gemcutter.org/ "]
  - REMOTE SOURCES:

     - http://gemcutter.org/
+3
3

, /usr/bin/rake, Ruby, Ruby /usr/local.

  • , Ruby, .
  • , rake $PATH.

which gem rubygems /usr/local/bin. , . , /usr/local Ruby:

gem list | grep rake

, . , gem install rake.

which rake - /usr/local. find /usr/local | grep rake, , Ruby gem .

, Ruby, rvm rbenv .

+2

Gemfile

gem 'rake'
0
0
source

Source: https://habr.com/ru/post/1752657/


All Articles