Silviu Constantin Voicu
2013-Jul-08 16:42 UTC
Cucumber error: Nokogiri can''t activate bcrypt-ruby
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. -- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
William Herry
2013-Jul-09 08:48 UTC
Re: Cucumber error: Nokogiri can''t activate bcrypt-ruby
http://stackoverflow.com/questions/17505792/keep-getting-application-error-on-heroku try add `gem ''bcrypt-ruby'', ''~> 3.0.0''` to your Gemfile On Tue, Jul 9, 2013 at 12:42 AM, Silviu Constantin Voicu < svoicuabg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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. > > > > > -- > 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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. > > >-- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAO1cLnyDsRBsh7038_yuCV1BtcHGo%2Bn1Zh8-nVuZ%3D1GaRN_dYw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Silviu Constantin Voicu
2013-Jul-10 08:55 UTC
Re: Cucumber error: Nokogiri can''t activate bcrypt-ruby
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. luni, 8 iulie 2013, 19:42:44 UTC+3, Silviu Constantin Voicu a scris:> > 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. > > > > >-- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/649a1938-8afc-4fb5-8f76-870ac07fecb1%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.