您现在的位置: 365建站网 > 365学习 > 解決rails的sqlite3.dll錯誤

解決rails的sqlite3.dll錯誤

文章来源:365jz.com     点击数:1584    更新时间:2009-09-16 11:48   参与评论

現象:啟動rails服務後

執行頁面提示找不到SQLite3.dll

原因:rails的數據庫使用sqlite3

而實際上並沒有安裝

方案:運行rubygem

gem install sqlite3-ruby

出現的奇怪的未定義提示

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

 這個如果sqlite3安裝成功的話可以54

因為只是doc而已

至於undefined method `render_text'

網上有很多介紹

只要更改為

render:text => "hello world"

就可以了

如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛


发表评论 (1584人查看0条评论)
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
用户名: 验证码: 点击我更换图片
最新评论
------分隔线----------------------------