ruby on rails - Unable to start Mongrel (or Passenger) on Debian due to mysql2 or mysql gems -


i posted @ super user, think should here instead...

i'm trying port ror webapp on dreamhost vps. i've upgraded vps --> ruby 1.9.2 1.8.7 , using rails 3.0.1 , mysql2 (0.2.6) gem. i'm getting following error when trying start mongrel:

/usr/bin/ruby1.8: symbol lookup error: /home/username/.gems/gems/mysql2-0.2.6/lib/mysql2/mysql2.so: undefined symbol: rb_intern2

...so tried using mysql (2.8.1) gem instead , following error:

wrong argument type mysql (expected struct) (typeerror)

0 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/mysql_adapter.rb 600 in real_connect'
1 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/mysql_adapter.rb 600 in
connect'
2 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/mysql_adapter.rb 164 in initialize'
3 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/mysql_adapter.rb 36 in
new'
4 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/mysql_adapter.rb 36 in mysql_connection'
5 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 230 in
send'
6 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 230 in new_connection'
7 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 238 in
checkout_new_connection'
8 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 194 in checkout'
9 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 190 in
loop'
10 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 190 in checkout'
11 /usr/lib/ruby/1.8/monitor.rb 242 in
synchronize'
12 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 189 in checkout'
13 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 96 in
connection'
14 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 318 in retrieve_connection'
15 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_specification.rb 97 in
retrieve_connection'
16 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_specification.rb 89 in connection'
17 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/associations.rb 1804 in
create_has_and_belongs_to_many_reflection'
18 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/associations.rb 1411 in has_and_belongs_to_many'
19 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/autosave_association.rb 137 in
has_and_belongs_to_many'
20 /home/username/portfoliofinearts.ca/farr/app/models/project.rb 3
21 /home/username/.gems/gems/activesupport-3.0.1/lib/active_support/dependencies.rb 239 in require'
22 /home/username/.gems/gems/activesupport-3.0.1/lib/active_support/dependencies.rb 239 in
require'
23 /home/username/.gems/gems/activesupport-3.0.1/lib/active_support/dependencies.rb 227 in load_dependency'
24 /home/username/.gems/gems/activesupport-3.0.1/lib/active_support/dependencies.rb 239 in
require'
25 /home/username/.gems/gems/activesupport-3.0.1/lib/active_support/dependencies.rb 346 in require_or_load'
26 /home/username/.gems/gems/activesupport-3.0.1/lib/active_support/dependencies.rb 300 in
depend_on'
27 /home/username/.gems/gems/activesupport-3.0.1/lib/active_support/dependencies.rb 216 in require_dependency'
28 /home/username/.gems/gems/railties-3.0.1/lib/rails/engine.rb 138 in
eager_load!'
29 /home/username/.gems/gems/railties-3.0.1/lib/rails/engine.rb 137 in each'
30 /home/username/.gems/gems/railties-3.0.1/lib/rails/engine.rb 137 in
eager_load!'
31 /home/username/.gems/gems/railties-3.0.1/lib/rails/engine.rb 135 in each'
32 /home/username/.gems/gems/railties-3.0.1/lib/rails/engine.rb 135 in
eager_load!'
33 /home/username/.gems/gems/railties-3.0.1/lib/rails/application.rb 108 in eager_load!'
34 /home/username/.gems/gems/railties-3.0.1/lib/rails/application/finisher.rb 41
35 /home/username/.gems/gems/railties-3.0.1/lib/rails/initializable.rb 25 in
instance_exec'
36 /home/username/.gems/gems/railties-3.0.1/lib/rails/initializable.rb 25 in run'
37 /home/username/.gems/gems/railties-3.0.1/lib/rails/initializable.rb 50 in
run_initializers'
38 /home/username/.gems/gems/railties-3.0.1/lib/rails/initializable.rb 49 in each'
39 /home/username/.gems/gems/railties-3.0.1/lib/rails/initializable.rb 49 in
run_initializers'
40 /home/username/.gems/gems/railties-3.0.1/lib/rails/application.rb 134 in initialize!'
41 /home/username/.gems/gems/railties-3.0.1/lib/rails/application.rb 77 in
send'
42 /home/username/.gems/gems/railties-3.0.1/lib/rails/application.rb 77 in method_missing'
43 /home/username/mydomain.com/test_app/config/environment.rb 10
44 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in
gem_original_require'
45 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in require'
46 config.ru 3
47 /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb 46 in
instance_eval'
48 /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb 46 in initialize'
49 config.ru 1 in
new'
50 config.ru 1

i'd prefer use mysql2, that's preferred solution i'm looking for, appreciate input on either problem.

i'm not encountering problems such in development environment (which windows)

you'd mentioned you're running ruby 1.9.2 error dump looks it's running ruby 1.8 i'm not sure cause problem or not seems potential issue.

i'd uninstall ruby1.8 , see if fixes anything.

sudo apt-get remove ruby1.8


Comments

Popular posts from this blog

Javascript line number mapping -

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -