###前提・実現したいこと
Rails Tutorialをやっているのですが、rails server立ち上げの際のbundle installがうまく行きません。環境設定等が出来ているつもりではあるのですが、$ gem install rails -v 5.0.3のコマンドすら機能しません。サーバーが立ち上がるところまでどうにかたどり着きたいです。
###発生している問題・エラーメッセージ
ERROR: Error installing nio4r:
The 'nio4r' native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
###該当のソースコード
C:\Users\matsukazu1112\untitled1>bundle install
The dependency byebug (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for x86-mingw32, x64-mingw32 but the dependency is only for ruby. To add those platforms
to the bundle, run bundle lock --add-platform ruby
.
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "activesupport":
In snapshot (Gemfile.lock):
activesupport (= 5.1.2)
In Gemfile:
web-console x86-mingw32 was resolved to 3.5.1, which depends on
actionview (>= 5.0) x64-mingw32 was resolved to 5.1.2, which depends on
activesupport (= 5.1.2) x86-mingw32
web-console x86-mingw32 was resolved to 3.5.1, which depends on actionview (>= 5.0) x64-mingw32 was resolved to 5.1.2, which depends on activesupport (= 5.1.2) x86-mingw32 web-console x86-mingw32 was resolved to 3.5.1, which depends on actionview (>= 5.0) x64-mingw32 was resolved to 5.1.2, which depends on activesupport (= 5.1.2) x86-mingw32 web-console x86-mingw32 was resolved to 3.5.1, which depends on actionview (>= 5.0) x64-mingw32 was resolved to 5.1.2, which depends on activesupport (= 5.1.2) x86-mingw32 rails (~> 5.0.3) x64-mingw32 was resolved to 5.0.3, which depends on activesupport (= 5.0.3) x86-mingw32
Running bundle update
will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
C:\Users\matsukazu1112\untitled1>gem update --system
Latest version currently installed. Aborting.
C:\Users\matsukazu1112\untitled1>gem install bundler
Successfully installed bundler-1.15.1
Parsing documentation for bundler-1.15.1
Done installing documentation for bundler after 7 seconds
1 gem installed
C:\Users\matsukazu1112\untitled1>bundle install
The dependency byebug (>= 0) will be unused by any of the platforms Bundler is installing for. Bund
ler is installing for x86-mingw32, x64-mingw32 but the dependency is only for ruby. To add those pl
atforms to the bundle, run bundle lock --add-platform ruby
.
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "activesupport":
In snapshot (Gemfile.lock):
activesupport (= 5.1.2)
In Gemfile:
web-console x86-mingw32 was resolved to 3.5.1, which depends on
actionview (>= 5.0) x64-mingw32 was resolved to 5.1.2, which depends on
activesupport (= 5.1.2) x86-mingw32
web-console x86-mingw32 was resolved to 3.5.1, which depends on actionview (>= 5.0) x64-mingw32 was resolved to 5.1.2, which depends on activesupport (= 5.1.2) x86-mingw32 web-console x86-mingw32 was resolved to 3.5.1, which depends on actionview (>= 5.0) x64-mingw32 was resolved to 5.1.2, which depends on activesupport (= 5.1.2) x86-mingw32 web-console x86-mingw32 was resolved to 3.5.1, which depends on actionview (>= 5.0) x64-mingw32 was resolved to 5.1.2, which depends on activesupport (= 5.1.2) x86-mingw32 rails (~> 5.0.3) x64-mingw32 was resolved to 5.0.3, which depends on activesupport (= 5.0.3) x86-mingw32
Running bundle update
will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
C:\Users\matsukazu1112\untitled1>bundle update
The dependency byebug (>= 0) will be unused by any of the platforms Bundler is installing for. Bund
ler is installing for x86-mingw32, x64-mingw32 but the dependency is only for ruby. To add those pl
atforms to the bundle, run bundle lock --add-platform ruby
.
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 12.0.0
Using concurrent-ruby 1.0.5
Using i18n 0.8.4
Using minitest 5.10.2
Using thread_safe 0.3.6
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.2.0
Using rack 2.0.3
Fetching nio4r 2.1.0
Installing nio4r 2.1.0 with native extensions
Using websocket-extensions 0.1.2
Using mime-types-data 3.2016.0521
Using arel 7.1.4 (was 8.0.0)
Using bundler 1.15.1
Using method_source 0.8.2
Using thor 0.19.4
Using sqlite3 1.3.13 (x64-mingw32)
Fetching puma 3.9.1
Installing puma 3.9.1 with native extensions
Using sass 3.4.24
Using tilt 2.0.7
Using execjs 2.7.0
Using coffee-script-source 1.12.2
Using turbolinks-source 5.0.3
Using multi_json 1.12.1
Fetching bindex 0.5.0
Installing bindex 0.5.0 with native extensions
Using rb-fsevent 0.10.2
Using ffi 1.9.18 (x64-mingw32)
Using tzinfo 1.2.3
Using nokogiri 1.8.0 (x64-mingw32)
Using rack-test 0.6.3
Using sprockets 3.7.1
Gem::InstallError: The 'nio4r' native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
An error occurred while installing nio4r (2.1.0), and Bundler cannot continue.
Make sure that gem install nio4r -v '2.1.0'
succeeds before bundling.
In Gemfile:
rails was resolved to 5.0.4, which depends on
actioncable was resolved to 5.0.4, which depends on
nio4r
C:\Users\matsukazu1112\untitled1>ruby -v
ruby 2.2.6p396 (2016-11-15 revision 56800) [x64-mingw32]
C:\Users\matsukazu1112\untitled1>atsukazu1112\untitled1>ruby -v
指定されたパスが見つかりません。
C:\Users\matsukazu1112\untitled1>ruby 2.2.6p396 (2016-11-15 revision 56800) [x64-mingw32]
ruby: No such file or directory -- 2.2.6p396 (LoadError)
C:\Users\matsukazu1112\untitled1>
C:\Users\matsukazu1112\untitled1>gem install nio4r -v '2.1.0'
'`gem' は、内部コマンドまたは外部コマンド、
操作可能なプログラムまたはバッチ ファイルとして認識されていません。
C:\Users\matsukazu1112\untitled1>gem install nio4r -v '2.1.0
ERROR: Error installing nio4r:
The 'nio4r' native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
###試したこと
Bundle installを行うとbundle updateを先にするように指示をされ、bundle updateを行うと、'gem install nio4r -v'2.1.0'というメッセージが表示され、developmentkitの設定に問題があるというメッセージが表示されます。Developmentkitとrubyともに手順通りCドライブ直下にインストールしてあるのですが、何か想定される原因がありましたら教えていただけますでしょうか。初心者なので仕組みが理解できておらず申し訳ございません。
###環境
ruby 2.2.6p396 (2016-11-15 revision 56800) [x64-mingw32]
Developmentkit
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。