我使用ruby 24,下载了要处理的ruby项目,并且正在准备ruby环境。我是红宝石的新手... 因此,我下载了ruby 24,并具有以下环境变量:
在%Path%中:C:\ Ruby24-x64 \ bin GEM_HOME:C:\ Users \ user.gem GEM_PATH:%GEM_HOME; C:\ Ruby24-x64 \ lib \ ruby \ gems \ 2.4.0
我在项目根目录上运行了“ gem install bundler”,然后运行了“ bundle install”。
bundle install
Warning: the running version of Bundler (1.16.2) is older than the version that created the lockfile (1.16.6). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
Fetching gem metadata from https://rubygems.org/.........
Fetching rake 12.3.1
Installing rake 12.3.1
Fetching public_suffix 3.0.3
Installing public_suffix 3.0.3
Fetching addressable 2.5.2
Installing addressable 2.5.2
Fetching awesome_print 1.8.0
Installing awesome_print 1.8.0
Using bundler 1.16.2
Fetching coderay 1.1.2
Installing coderay 1.1.2
Fetching safe_yaml 1.0.4
Installing safe_yaml 1.0.4
Fetching crack 0.4.3
Installing crack 0.4.3
Fetching diff-lcs 1.3
Installing diff-lcs 1.3
Fetching excon 0.62.0
Installing excon 0.62.0
Fetching multipart-post 2.0.0
Installing multipart-post 2.0.0
Fetching faraday 0.15.3
Installing faraday 0.15.3
Fetching faraday_middleware 0.12.2
Installing faraday_middleware 0.12.2
Fetching hashdiff 0.3.7
Installing hashdiff 0.3.7
Fetching method_source 0.9.0
Installing method_source 0.9.0
Fetching multi_json 1.13.1
Installing multi_json 1.13.1
Fetching pry 0.11.3
Installing pry 0.11.3
Fetching psych 3.0.3 (x64-mingw32)
Installing psych 3.0.3 (x64-mingw32)
Fetching rspec-support 3.8.0
Installing rspec-support 3.8.0
Fetching rspec-core 3.8.0
Installing rspec-core 3.8.0
Fetching rspec-expectations 3.8.2
Installing rspec-expectations 3.8.2
Fetching rspec-mocks 3.8.0
Installing rspec-mocks 3.8.0
Fetching rspec 3.8.0
Installing rspec 3.8.0
Fetching thor 0.20.0
Installing thor 0.20.0
Fetching timecop 0.9.1
Installing timecop 0.9.1
Fetching vcr 4.0.0
Installing vcr 4.0.0
Fetching webmock 3.4.2
Installing webmock 3.4.2
Fetching yell 2.0.7
Installing yell 2.0.7
Using wss_agent 18.6.2 from source at `.`
Fetching yard 0.9.16
Installing yard 0.9.16
Bundle complete! 9 Gemfile dependencies, 30 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from yard:
--------------------------------------------------------------------------------
As of YARD v0.9.2:
RubyGems "--document=yri,yard" hooks are now supported. You can auto-configure
YARD to automatically build the yri index for installed gems by typing:
$ yard config --gem-install-yri
See `yard config --help` for more information on RubyGems install hooks.
You can also add the following to your .gemspec to have YARD document your gem
on install:
spec.metadata["yard.run"] = "yri" # use "yard" to build full HTML docs.
--------------------------------------------------------------------------------
对于JRuby,MultiJson,Faraday,我也有同样的错误(每个单词的首字母大写)。
我为ruby 2.4.5设置了项目SDK。