ruby 最新ver
rails 最新ver
rails newでファイル作成
rails new ファイル名つくる
rails serverをやってみる
エラーが出た!?
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x64-mingw32/lib/nokogiri
.rb:29:in require': cannot load such file -- nokogiri/nokogiri (LoadError)
rescue in '
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x64-mingw32
/lib/nokogiri.rb:29:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x64-mingw32
/lib/nokogiri.rb:25:in <top (required)>'
require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/loofah-2.0.3/lib/loofah.rb:3
:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/loofah-2.0.3/lib/loofah.rb:3
:in <top (required)>'
require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rails-html-sanitizer-1.0.2/l
ib/rails-html-sanitizer.rb:2:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rails-html-sanitizer-1.0.2/l
ib/rails-html-sanitizer.rb:2:in <top (required)>'
require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_
view/helpers/sanitize_helper.rb:3:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_
view/helpers/sanitize_helper.rb:3:in <top (required)>'
module:TextHelper'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_
view/helpers/text_helper.rb:32:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_
view/helpers/text_helper.rb:29:in <module:Helpers>'
module:ActionView'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_
view/helpers/text_helper.rb:6:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_
view/helpers/text_helper.rb:4:in <top (required)>'
module:FormTagHelper'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_
view/helpers/form_tag_helper.rb:18:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_
view/helpers/form_tag_helper.rb:14:in <module:Helpers>'
module:ActionView'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_
view/helpers/form_tag_helper.rb:8:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_
view/helpers/form_tag_helper.rb:6:in <top (required)>'
require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_
view/helpers/form_helper.rb:4:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_
view/helpers/form_helper.rb:4:in <top (required)>'
module:Helpers'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_
view/helpers.rb:50:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_
view/helpers.rb:4:in <module:ActionView>'
'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.4/lib/action_
view/helpers.rb:3:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sprockets-rails-2.3.3/lib/sp
rockets/rails/legacy_asset_tag_helper.rb:7:in <module:LegacyAssetTagHelper>'
module:Rails'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sprockets-rails-2.3.3/lib/sp
rockets/rails/legacy_asset_tag_helper.rb:6:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sprockets-rails-2.3.3/lib/sp
rockets/rails/legacy_asset_tag_helper.rb:4:in <module:Sprockets>'
'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sprockets-rails-2.3.3/lib/sp
rockets/rails/legacy_asset_tag_helper.rb:3:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sprockets-rails-2.3.3/lib/sp
rockets/rails/helper.rb:45:in require'
module:Helper'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sprockets-rails-2.3.3/lib/sp
rockets/rails/helper.rb:45:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sprockets-rails-2.3.3/lib/sp
rockets/rails/helper.rb:7:in <module:Rails>'
module:Sprockets'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sprockets-rails-2.3.3/lib/sp
rockets/rails/helper.rb:6:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sprockets-rails-2.3.3/lib/sp
rockets/rails/helper.rb:5:in <top (required)>'
require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sprockets-rails-2.3.3/lib/sp
rockets/railtie.rb:6:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sprockets-rails-2.3.3/lib/sp
rockets/railtie.rb:6:in <top (required)>'
require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-rails-5.0.4/lib/sass/ra
ils/railtie.rb:3:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-rails-5.0.4/lib/sass/ra
ils/railtie.rb:3:in <top (required)>'
require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-rails-5.0.4/lib/sass/ra
ils.rb:11:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-rails-5.0.4/lib/sass/ra
ils.rb:11:in <top (required)>'
require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-rails-5.0.4/lib/sass-ra
ils.rb:1:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sass-rails-5.0.4/lib/sass-ra
ils.rb:1:in <top (required)>'
require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/r
untime.rb:76:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/r
untime.rb:76:in block (2 levels) in require'
each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/r
untime.rb:72:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/r
untime.rb:72:in block in require'
each'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/r
untime.rb:61:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/r
untime.rb:61:in require'
require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler.r
b:134:in
from c:/books/config/application.rb:7:in <top (required)>'
require'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/com
mands/commands_tasks.rb:78:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/com
mands/commands_tasks.rb:78:in block in server'
tap'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/com
mands/commands_tasks.rb:75:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/com
mands/commands_tasks.rb:75:in server'
run_command!'
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/com
mands/commands_tasks.rb:39:in
from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/com
mands.rb:17:in <top (required)>'
require'
from bin/rails:4:in
from bin/rails:4:in `'
エラーの回避のやりかた
コマンドプロンプトで作成したファイル名にチェンジディレクトリします
例:cd c:¥ファイル名
gemfileの編集
コマンドプロンプトでvim gemfileと入力
gem 'nokogiri', '~> 1.6', '>= 1.6.7.rc3'
を書き足す
gemをインストール
gem install nokogiri -v 1.6.7.rc3 --pre
bundleアップデート
bundle update nokogiri
サーバーを建ててみる
rails server
結果
建てた
原因
nokogiriがエラーの原因だったかも・・・・