我在Snow Leopard盒子上运行带有SQLite3的Rails 2.3.4,没有任何问题。我刚刚完成了一个需要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更新之前一切正常)

任何帮助将不胜感激,因为我不知道如何解决此问题!

-灰

编辑:这是我在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

最佳答案

我知道了!我是从Leopard下的源代码构建了Ruby副本的,并且自升级以来没有重建它。不能完全确定为什么它可以与2.3.4一起使用,但不能与2.3.5一起使用-必须有所更改。

我只是从定制版本更改为Snow Leopard随附的副本,重新运行了gem更新,一切都变好了!

关于ruby-on-rails - 自Rails 2.3.5更新以来的SQLite3问题,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/1921322/

10-14 22:59