loaderror:126:找不到指定的模块。 " windows7的" sqlite3_native.so

时间:2014-09-29 21:09:57

标签: ruby-on-rails sqlite

平台:

Windows 7 64 bit
Rails 4.1.6
gem 2.2.2

按照编译本机gem的安装步骤进行操作。 使用devkit中的实用程序然后configure然后make然后make install

宝石安装很顺利:

C:\Sites>gem install sqlite3 --platform=ruby  -- --with-sqlite3-include=C:\DevKit\home\hivoltage sqlite-autoconf --with-sqlite3-lib=C:\DevKit\home\hivoltage\sqlite-autoconf\.libs

Temporarily enhancing PATH to include DevKit...

Building native extensions with: '--with-sqlite3-include=C:\DevKit\home\hivoltage\sqlite-autoconf --with-sqlite3-lib=C:\DevKit\home\hivoltage\sqlite-autoconf\.libs'

This could take a while...

Successfully installed sqlite3-1.3.9

Parsing documentation for sqlite3-1.3.9

Installing ri documentation for sqlite3-1.3.9

Done installing documentation for sqlite3 after 0 seconds

1 gem installed

现在错误是当我尝试运行rake命令时:

C:\Sites\demo>rake db:migrate

rake aborted!

LoadError: 126: The specified module could not be found.   - C:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/sqlite3-1.3.9/sqlite3/sqlite3_native.so
C:/Sites/demo/config/application.rb:7:in `<top (required)>'C:/Sites/demo/Rakefile:4:in `<top (required)>'

LoadError: cannot load such file -- sqlite3/2.1/sqlite3_native C:/Sites/demo/config/application.rb:7:in `<top (required)>'
C:/Sites/demo/Rakefile:4:in `<top (required)>'

(See full trace by running task with --trace)

我还确保gemfile和gemfile.lock列出了正确的版本。

有谁知道为什么我不能让这个sqlite3 gem与我的rails项目一起工作?

0 个答案:

没有答案