andys / qrscanner

Ruby Gem which wraps ZXing QR decoder library (C++) and ImageMagick
28 stars 10 forks source link

Problem loading on ubuntu 12.12 #2

Open apux opened 11 years ago

apux commented 11 years ago

The gem is installed correctly, but when trying to run the rails server or console, I get this error

/home/apux/.rvm/gems/ruby-1.9.3-p362@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in require': /home/apux/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/x86_64-linux/qrscanner.so: undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE - /home/apux/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/x86_64-linux/qrscanner.so (LoadError) from /home/apux/.rvm/gems/ruby-1.9.3-p362@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:inblock (2 levels) in require' from /home/apux/.rvm/gems/ruby-1.9.3-p362@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in each' from /home/apux/.rvm/gems/ruby-1.9.3-p362@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:inblock in require' from /home/apux/.rvm/gems/ruby-1.9.3-p362@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in each' from /home/apux/.rvm/gems/ruby-1.9.3-p362@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:inrequire' from /home/apux/.rvm/gems/ruby-1.9.3-p362@global/gems/bundler-1.2.3/lib/bundler.rb:128:in require' from /home/apux/lbs/Impressum/config/application.rb:9:in<top (required)>' from /home/apux/.rvm/gems/ruby-1.9.3-p362@cbbfactura/gems/railties-3.2.11/lib/rails/commands.rb:39:in require' from /home/apux/.rvm/gems/ruby-1.9.3-p362@cbbfactura/gems/railties-3.2.11/lib/rails/commands.rb:39:in<top (required)>' from script/rails:6:in require' from script/rails:6:in

'

My ruby version is ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-linux] through rvm My rails version Rails 3.2.11 Any ideas about how to solve it?

coin8086 commented 11 years ago

I have the same issue. My ruby version is 1.9.2. My OS is Ubuntu 12.04. The error is:

1.9.2-p320 :001 > require 'qrscanner' LoadError: /home/robert/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/i68 6-linux/qrscanner.so: undefined symbol: _ZTVN10cxxabiv120si_class_type_infoE

  • /home/robert/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/i686-linux/ qrscanner.so from /home/robert/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/r ubygems/custom_require.rb:36:in require' from /home/robert/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/site_ruby/1.9.1/r ubygems/custom_require.rb:36:inrequire' from (irb):1 from /home/robert/.rvm/rubies/ruby-1.9.2-p320/bin/irb:16:in `
    '