自Rails 2.3.5更新以来的SQLite3问题

时间:2009-12-17 12:07:33

标签: ruby-on-rails macos sqlite

我在Snow Leopard盒子上运行Rails 2.3.4和SQLite3没有任何问题。我刚刚完成了一个需要2.3.5的新项目,所以我做了一个sudo gem更新来获取最新版本的Rails。这安装正常,但当我运行rake db:migrate时出现以下错误:

rake aborted!
uninitialized constant SQLite3::Driver::Native::Driver::API

我已经尝试重新安装sqlite3 gem(通过:sudo gem install sqlite3-ruby),但我仍然遇到同样的错误......

我有XCode 3.2(在2.3.5更新之前一切正常)

任何帮助都会受到赞赏,因为我对如何解决这个问题感到茫然!

-Ash

编辑:这是我在sqlite3-ruby上运行安装时的输出:

$ sudo gem install sqlite3-ruby
Building native extensions.  This could take a while...
Successfully installed sqlite3-ruby-1.2.5
1 gem installed
Installing ri documentation for sqlite3-ruby-1.2.5...

No definition for _wrap_new_CallbackData

No definition for _wrap_CallbackData_proc_set

No definition for _wrap_CallbackData_proc_get

No definition for _wrap_CallbackData_proc2_set

No definition for _wrap_CallbackData_proc2_get

No definition for _wrap_CallbackData_data_set

No definition for _wrap_CallbackData_data_get

No definition for _wrap_sqlite3_libversion

No definition for _wrap_sqlite3_close

No definition for _wrap_sqlite3_last_insert_rowid

No definition for _wrap_sqlite3_changes

No definition for _wrap_sqlite3_total_changes

No definition for _wrap_sqlite3_interrupt

No definition for _wrap_sqlite3_complete

No definition for _wrap_sqlite3_complete16

No definition for _wrap_sqlite3_busy_handler

No definition for _wrap_sqlite3_busy_timeout

No definition for _wrap_sqlite3_set_authorizer

No definition for _wrap_sqlite3_trace

No definition for _wrap_sqlite3_open

No definition for _wrap_sqlite3_open16

No definition for _wrap_sqlite3_errcode

No definition for _wrap_sqlite3_errmsg

No definition for _wrap_sqlite3_errmsg16

No definition for _wrap_sqlite3_prepare

No definition for _wrap_sqlite3_prepare16

No definition for _wrap_sqlite3_bind_blob

No definition for _wrap_sqlite3_bind_double

No definition for _wrap_sqlite3_bind_int

No definition for _wrap_sqlite3_bind_int64

No definition for _wrap_sqlite3_bind_null

No definition for _wrap_sqlite3_bind_text

No definition for _wrap_sqlite3_bind_text16

No definition for _wrap_sqlite3_bind_parameter_count

No definition for _wrap_sqlite3_bind_parameter_name

No definition for _wrap_sqlite3_bind_parameter_index

No definition for _wrap_sqlite3_column_count

No definition for _wrap_sqlite3_column_name

No definition for _wrap_sqlite3_column_name16

No definition for _wrap_sqlite3_column_decltype

No definition for _wrap_sqlite3_column_decltype16

No definition for _wrap_sqlite3_step

No definition for _wrap_sqlite3_data_count

No definition for _wrap_sqlite3_column_blob

No definition for _wrap_sqlite3_column_bytes

No definition for _wrap_sqlite3_column_bytes16

No definition for _wrap_sqlite3_column_double

No definition for _wrap_sqlite3_column_int

No definition for _wrap_sqlite3_column_int64

No definition for _wrap_sqlite3_column_text

No definition for _wrap_sqlite3_column_text16

No definition for _wrap_sqlite3_column_type

No definition for _wrap_sqlite3_finalize

No definition for _wrap_sqlite3_reset

No definition for _wrap_sqlite3_create_function

No definition for _wrap_sqlite3_create_function16

No definition for _wrap_sqlite3_aggregate_count

No definition for _wrap_sqlite3_value_blob

No definition for _wrap_sqlite3_value_bytes

No definition for _wrap_sqlite3_value_bytes16

No definition for _wrap_sqlite3_value_double

No definition for _wrap_sqlite3_value_int

No definition for _wrap_sqlite3_value_int64

No definition for _wrap_sqlite3_value_text

No definition for _wrap_sqlite3_value_text16

No definition for _wrap_sqlite3_value_text16le

No definition for _wrap_sqlite3_value_text16be

No definition for _wrap_sqlite3_value_type

No definition for _wrap_sqlite3_result_blob

No definition for _wrap_sqlite3_result_double

No definition for _wrap_sqlite3_result_error

No definition for _wrap_sqlite3_result_error16

No definition for _wrap_sqlite3_result_int

No definition for _wrap_sqlite3_result_int64

No definition for _wrap_sqlite3_result_text

No definition for _wrap_sqlite3_result_text16

No definition for _wrap_sqlite3_result_text16le

No definition for _wrap_sqlite3_result_text16be

No definition for _wrap_sqlite3_result_value

No definition for _wrap_sqlite3_aggregate_context
Installing RDoc documentation for sqlite3-ruby-1.2.5...

No definition for _wrap_new_CallbackData

No definition for _wrap_CallbackData_proc_set

No definition for _wrap_CallbackData_proc_get

No definition for _wrap_CallbackData_proc2_set

No definition for _wrap_CallbackData_proc2_get

No definition for _wrap_CallbackData_data_set

No definition for _wrap_CallbackData_data_get

No definition for _wrap_sqlite3_libversion

No definition for _wrap_sqlite3_close

No definition for _wrap_sqlite3_last_insert_rowid

No definition for _wrap_sqlite3_changes

No definition for _wrap_sqlite3_total_changes

No definition for _wrap_sqlite3_interrupt

No definition for _wrap_sqlite3_complete

No definition for _wrap_sqlite3_complete16

No definition for _wrap_sqlite3_busy_handler

No definition for _wrap_sqlite3_busy_timeout

No definition for _wrap_sqlite3_set_authorizer

No definition for _wrap_sqlite3_trace

No definition for _wrap_sqlite3_open

No definition for _wrap_sqlite3_open16

No definition for _wrap_sqlite3_errcode

No definition for _wrap_sqlite3_errmsg

No definition for _wrap_sqlite3_errmsg16

No definition for _wrap_sqlite3_prepare

No definition for _wrap_sqlite3_prepare16

No definition for _wrap_sqlite3_bind_blob

No definition for _wrap_sqlite3_bind_double

No definition for _wrap_sqlite3_bind_int

No definition for _wrap_sqlite3_bind_int64

No definition for _wrap_sqlite3_bind_null

No definition for _wrap_sqlite3_bind_text

No definition for _wrap_sqlite3_bind_text16

No definition for _wrap_sqlite3_bind_parameter_count

No definition for _wrap_sqlite3_bind_parameter_name

No definition for _wrap_sqlite3_bind_parameter_index

No definition for _wrap_sqlite3_column_count

No definition for _wrap_sqlite3_column_name

No definition for _wrap_sqlite3_column_name16

No definition for _wrap_sqlite3_column_decltype

No definition for _wrap_sqlite3_column_decltype16

No definition for _wrap_sqlite3_step

No definition for _wrap_sqlite3_data_count

No definition for _wrap_sqlite3_column_blob

No definition for _wrap_sqlite3_column_bytes

No definition for _wrap_sqlite3_column_bytes16

No definition for _wrap_sqlite3_column_double

No definition for _wrap_sqlite3_column_int

No definition for _wrap_sqlite3_column_int64

No definition for _wrap_sqlite3_column_text

No definition for _wrap_sqlite3_column_text16

No definition for _wrap_sqlite3_column_type

No definition for _wrap_sqlite3_finalize

No definition for _wrap_sqlite3_reset

No definition for _wrap_sqlite3_create_function

No definition for _wrap_sqlite3_create_function16

No definition for _wrap_sqlite3_aggregate_count

No definition for _wrap_sqlite3_value_blob

No definition for _wrap_sqlite3_value_bytes

No definition for _wrap_sqlite3_value_bytes16

No definition for _wrap_sqlite3_value_double

No definition for _wrap_sqlite3_value_int

No definition for _wrap_sqlite3_value_int64

No definition for _wrap_sqlite3_value_text

No definition for _wrap_sqlite3_value_text16

No definition for _wrap_sqlite3_value_text16le

No definition for _wrap_sqlite3_value_text16be

No definition for _wrap_sqlite3_value_type

No definition for _wrap_sqlite3_result_blob

No definition for _wrap_sqlite3_result_double

No definition for _wrap_sqlite3_result_error

No definition for _wrap_sqlite3_result_error16

No definition for _wrap_sqlite3_result_int

No definition for _wrap_sqlite3_result_int64

No definition for _wrap_sqlite3_result_text

No definition for _wrap_sqlite3_result_text16

No definition for _wrap_sqlite3_result_text16le

No definition for _wrap_sqlite3_result_text16be

No definition for _wrap_sqlite3_result_value

No definition for _wrap_sqlite3_aggregate_context

1 个答案:

答案 0 :(得分:2)

我已经明白了!我在Leopard下从源代码构建了我的Ruby副本,并且自升级以来没有重建它。不完全确定为什么它适用于2.3.4但不适用于2.3.5 - 必须有所改变。

我刚刚将自定义构建的路径更改为Snow Leopard附带的副本,重新运行了宝石更新,一切都很好了!