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'
connect'
1 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/mysql_adapter.rb 600 in
2 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/mysql_adapter.rb 164 ininitialize'
new'
3 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/mysql_adapter.rb 36 in
4 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/mysql_adapter.rb 36 inmysql_connection'
send'
5 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 230 in
6 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 230 innew_connection'
checkout_new_connection'
7 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 238 in
8 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 194 incheckout'
loop'
9 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 190 in
10 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 190 incheckout'
synchronize'
11 /usr/lib/ruby/1.8/monitor.rb 242 in
12 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 189 incheckout'
connection'
13 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 96 in
14 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_pool.rb 318 inretrieve_connection'
retrieve_connection'
15 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_specification.rb 97 in
16 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/connection_adapters/abstract/connection_specification.rb 89 inconnection'
create_has_and_belongs_to_many_reflection'
17 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/associations.rb 1804 in
18 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/associations.rb 1411 inhas_and_belongs_to_many'
has_and_belongs_to_many'
19 /home/username/.gems/gems/activerecord-3.0.1/lib/active_record/autosave_association.rb 137 in
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 inrequire'
require'
22 /home/username/.gems/gems/activesupport-3.0.1/lib/active_support/dependencies.rb 239 in
23 /home/username/.gems/gems/activesupport-3.0.1/lib/active_support/dependencies.rb 227 inload_dependency'
require'
24 /home/username/.gems/gems/activesupport-3.0.1/lib/active_support/dependencies.rb 239 in
25 /home/username/.gems/gems/activesupport-3.0.1/lib/active_support/dependencies.rb 346 inrequire_or_load'
depend_on'
26 /home/username/.gems/gems/activesupport-3.0.1/lib/active_support/dependencies.rb 300 in
27 /home/username/.gems/gems/activesupport-3.0.1/lib/active_support/dependencies.rb 216 inrequire_dependency'
eager_load!'
28 /home/username/.gems/gems/railties-3.0.1/lib/rails/engine.rb 138 in
29 /home/username/.gems/gems/railties-3.0.1/lib/rails/engine.rb 137 ineach'
eager_load!'
30 /home/username/.gems/gems/railties-3.0.1/lib/rails/engine.rb 137 in
31 /home/username/.gems/gems/railties-3.0.1/lib/rails/engine.rb 135 ineach'
eager_load!'
32 /home/username/.gems/gems/railties-3.0.1/lib/rails/engine.rb 135 in
33 /home/username/.gems/gems/railties-3.0.1/lib/rails/application.rb 108 ineager_load!'
instance_exec'
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
36 /home/username/.gems/gems/railties-3.0.1/lib/rails/initializable.rb 25 inrun'
run_initializers'
37 /home/username/.gems/gems/railties-3.0.1/lib/rails/initializable.rb 50 in
38 /home/username/.gems/gems/railties-3.0.1/lib/rails/initializable.rb 49 ineach'
run_initializers'
39 /home/username/.gems/gems/railties-3.0.1/lib/rails/initializable.rb 49 in
40 /home/username/.gems/gems/railties-3.0.1/lib/rails/application.rb 134 ininitialize!'
send'
41 /home/username/.gems/gems/railties-3.0.1/lib/rails/application.rb 77 in
42 /home/username/.gems/gems/railties-3.0.1/lib/rails/application.rb 77 inmethod_missing'
gem_original_require'
43 /home/username/mydomain.com/test_app/config/environment.rb 10
44 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 in
45 /usr/lib/ruby/1.8/rubygems/custom_require.rb 31 inrequire'
instance_eval'
46 config.ru 3
47 /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb 46 in
48 /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb 46 ininitialize'
new'
49 config.ru 1 in
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
Post a Comment