Cucumber error: Nokogiri can't activate bcrypt-ruby

105 views
Skip to first unread message

Silviu Constantin Voicu

unread,
Jul 8, 2013, 12:42:44 PM7/8/13
to rubyonra...@googlegroups.com
Hello,

I new to ruby on rails, I have like this on my laptop with ubuntu 13.04:

ruby -v;
ruby 1.9.3p429 (2013-05-15) [x86_64-linux] Brightbox

gem -v;
1.8.25

bundle -v;
Bundler version 1.3.5

And the Gem file:

source 'https://rubygems.org'

gem 'rails', '3.2.13'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'


group :developement, :test do
  gem 'rspec-rails', '~> 2.12.2'
  gem 'spork', '~> 0.9.2'
end


group :test do
  gem 'cucumber-rails', '~> 1.3.0', require:false
  gem 'capybara', '~> 1.1.1' 
  gem 'database_cleaner', '~> 0.9.1'
  gem 'shoulda-matchers'
  gem 'email_spec'
 end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', :platforms => :ruby

  gem 'uglifier', '>= 1.0.3'
  gem 'bootstrap-sass'
end

gem 'jquery-rails'
gem 'strong_parameters'
gem 'email_validator'
gem 'active_attr'
gem 'bcrypt-ruby'
gem 'carrierwave'
# To use ActiveModel has_secure_password


# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the app server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'debugger'


I go to my folder application, and bundle install, everything seemed ok, but I try to cucumber, I had this error:

WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.0
can't activate bcrypt-ruby (~> 3.0.0), already activated bcrypt-ruby-3.1.0. Make sure all dependencies are added to Gemfile. (Gem::LoadError)

When I try the application in apache2 with Phusion Passenger, I get:

can't activate bcrypt-ruby (~> 3.0.0), already activated bcrypt-ruby-3.1.0. Make sure all dependencies are added to Gemfile

So, I don't understand, where is my problem? If I put this in my gemfile: gem 'bcrypt-ruby', '~> 3.1.0' doesn't help.
And I think my cucumber 1.3.3 and cucumber-rails 1.3.1, at least that is showing when for example I execute bundle install
or update.

I had this application working on ubuntu 12.04, ( but I had to reinstall my system, I chose ubuntu 13.04 ) ,
but I don't remember what version of ruby, rails and so on.

Thank you.




William Herry

unread,
Jul 9, 2013, 4:48:40 AM7/9/13
to rubyonra...@googlegroups.com

try add `gem 'bcrypt-ruby', '~> 3.0.0'` to your Gemfile





--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/95ecc8ae-adea-4ba9-b537-ac83be92a6a3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Silviu Constantin Voicu

unread,
Jul 10, 2013, 4:55:37 AM7/10/13
to rubyonra...@googlegroups.com
Well, I reminded my self that I have git copy on the net, then copy my gemfile and gemfile.lock, and  it works with bundle exec cucumber.
Thank you.
Reply all
Reply to author
Forward
0 new messages