rails初心者です。
rails new ap
cd ap
rails s
としてサーバを起動しようとすると、次のようなエラーがでます。
lang
1Could not find nokogiri-1.6.6.2 in any of the sources 2Run `bundle install` to install missing gems.
そこでgemfileに
lang
1gem 'nokogiri', '~> 1.6.6.2'
と書き加え、
lang
1source 'https://rubygems.org' 2 3gem 'nokogiri', '~> 1.6.6.2' 4# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 5gem 'rails', '4.2.0' 6# Use sqlite3 as the database for Active Record 7gem 'sqlite3' 8# Use SCSS for stylesheets 9gem 'sass-rails', '~> 5.0' 10# Use Uglifier as compressor for JavaScript assets 11gem 'uglifier', '>= 1.3.0' 12# Use CoffeeScript for .coffee assets and views 13gem 'coffee-rails', '~> 4.1.0' 14# See https://github.com/sstephenson/execjs#readme for more supported runtimes 15# gem 'therubyracer', platforms: :ruby 16 17# Use jquery as the JavaScript library 18gem 'jquery-rails' 19# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks 20gem 'turbolinks' 21# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 22gem 'jbuilder', '~> 2.0' 23# bundle exec rake doc:rails generates the API under doc/api. 24gem 'sdoc', '~> 0.4.0', group: :doc 25 26# Use ActiveModel has_secure_password 27# gem 'bcrypt', '~> 3.1.7' 28 29# Use Unicorn as the app server 30# gem 'unicorn' 31 32# Use Capistrano for deployment 33# gem 'capistrano-rails', group: :development 34 35group :development, :test do 36 # Call 'byebug' anywhere in the code to stop execution and get a debugger console 37 gem 'byebug' 38 39 # Access an IRB console on exception pages or by using <%= console %> in views 40 gem 'web-console', '~> 2.0' 41 42 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 43 gem 'spring' 44end 45 46 47```となっています。bundle installすると、Bundle complete! 13 Gemfile dependencies, 55 gems now installed. 48Use `bundle show [gemname]` to see where a bundled gem is installed.となるので成功しているようなのですが、 49 50再びrails s 51とすると 52 53```lang-<> 54Could not find nokogiri-1.6.6.2 in any of the sources 55Run `bundle install` to install missing gems. 56
となっておなじことの繰り返しです。どこをどう直せばよいか教えて頂けるとうれしいです。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/04/08 16:46
2015/04/08 17:01
2015/04/09 16:00
2015/04/09 16:52