【问题标题】:Sqlite3 error messageSqlite3 错误信息
【发布时间】:2011-06-14 21:43:33
【问题描述】:

嘿,我最近在正确安装我的 Sqlite3 gem 时遇到了麻烦。我已经尝试安装 sqlite3,然后是 sqlite3-ruby,但我一直收到错误消息。谁能告诉我我需要做什么来纠正这个问题?这是错误消息:

demetriuford$ gem install sqlite3-ruby 1.3.3
Building native extensions.  This could take a while...
ERROR:  Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.

/Users/demetriuford/.rvm/rubies/ruby-1.9.2-head/bin/ruby extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_libversion_number() in -lsqlite3... yes
checking for rb_proc_arity()... yes
checking for sqlite3_initialize()... no
sqlite3-ruby only supports sqlite3 versions 3.6.16+, please upgrade!
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
 --with-opt-dir
 --without-opt-dir
 --with-opt-include
 --without-opt-include=${opt-dir}/include
 --with-opt-lib
 --without-opt-lib=${opt-dir}/lib
 --with-make-prog
 --without-make-prog
 --srcdir=.
 --curdir
 --ruby=/Users/demetriuford/.rvm/rubies/ruby-1.9.2-head/bin/ruby
 --with-sqlite3-dir
 --without-sqlite3-dir
 --with-sqlite3-include
 --without-sqlite3-include=${sqlite3-dir}/include
 --with-sqlite3-lib
 --without-sqlite3-lib=${sqlite3-dir}/lib
 --with-sqlite3lib
 --without-sqlite3lib


Gem files will remain installed in /Users/demetriuford/.rvm/gems/ruby-1.9.2-head/gems/sqlite3-1.3.3 for inspection.
Results logged to /Users/demetriuford/.rvm/gems/ruby-1.9.2-head/gems/sqlite3-1.3.3/ext/sqlite3/gem_make.out
ERROR:  Could not find a valid gem '1.3.3' (>= 0) in any repository

【问题讨论】:

  • 请将此错误的输出缩进四个空格

标签: ruby-on-rails sqlite sqlite3-ruby


【解决方案1】:

尝试安装 sqlite3 gem。

【讨论】:

    【解决方案2】:

    sqlite3-ruby 已将名称更改为 sqlite3 。 我建议阅读命令的结果

    rvm 笔记

    它建议您需要为您的系统安装的库。

    【讨论】:

      【解决方案3】:

      您需要更新您的系统 sqlite3 库,或者使用旧版本的 sqlite3-ruby gem,但我推荐前者。将this post 视为可能的重复项。

      尝试用 Google 搜索 error message,您可能不是唯一看到此消息的人。

      这是第一个错误,第二个是因为您正在尝试安装名为“1.3.3”的 gem,如果要指定 gem 版本,请使用 -v 命令。

      这个问题与 sqlite3-ruby 库被“重命名”无关,sqlite3 现在只是别名为 sqlite3-ruby,后者仍然受支持。

      【讨论】:

        【解决方案4】:

        首先尝试通过包管理器(如果您在类 UNIX 系统中)在您的系统中安装最新的 sqlite3,如果您在 Windows 上,则使用通常的方式。

        在尝试再次安装 sqlite3 gem 之后。如果您收到错误,请提供以下信息:

        操作系统、操作系统版本、SQLite3 版本、ruby 版本。

        最好的问候,

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2021-03-23
          • 2015-05-02
          • 2017-05-12
          • 2018-07-18
          • 2017-02-19
          • 2013-05-30
          相关资源
          最近更新 更多