Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Set up Git and Add Gems

G. Silva
G. Silva
4,341 Points

error occurred while installing nokogiri (1.6.5), and bundler cannot continue. How to fix this error?

Hear is my Gemfile

source 'https://rubygems.org'


gem 'rails', '4.1.8'
gem 'sqlite3'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0',          group: :doc

gem 'spring',        group: :development

group :development, :test do
  gem 'rspec-rails','~> 2.0'
end

group :test do
  gem 'capybara', '~> 2.1.0'
end
Kevin Egstorf
Kevin Egstorf
26,590 Points

There is a double : after your sdoc gem and spring gem

1 Answer

Anthony Lucio
Anthony Lucio
20,431 Points

source 'https://rubygems.org'

gem 'rails', '4.0.1' gem 'sqlite3' gem 'sass-rails', '~> 4.0.0' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.0.0' gem 'jquery-rails' gem 'turbolinks' gem 'jbuilder', '~> 1.2'

group :doc do # bundle exec rake doc:rails generates the API under doc/api. gem 'sdoc', require: false end

group :development, :test do gem 'rspec-rails', '~> 2.0' end

group :test do gem 'capybara', '~> 2.1.0' end


add above code and some patience. everything should work after.