相关疑难解决方法(0)

在Windows 7上安装SQLite 3.6

如何在Windows 7上安装SQLite 3.6?

我将sqlite3.exe,sqlite3.dll和sqlite3.def解压缩到C:\ Windows\System32但是当我尝试运行需要使用sqlite3的Ruby程序时,我收到此错误:

程序无法启动,因为您的计算机缺少sqlite3.dll.尝试重新安装该程序以解决此问题.

sqlite windows-7

14
推荐指数
2
解决办法
6万
查看次数

用于Windows x64的预编译SQLite二进制文件

Windows 64bit的SQLite是否有预编译的二进制文件?到目前为止,我无法找到这样的

谢谢.

windows sqlite 64-bit precompiled-binaries

7
推荐指数
1
解决办法
1万
查看次数

安装sqlite3(1.3.11)时发生错误,Bundler无法继续

所以我试着$ bundle install --without production在我之前,$ git push heroku master但我一直得到这个错误

$ bundle install --without production
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies......
Using rake 10.4.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.8.3
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.1.8
Using builder 3.2.2
Using erubis 2.7.0
Using actionview 4.1.8
Using rack 1.5.5
Using rack-test 0.6.3
Using actionpack 4.1.8
Using mime-types 2.99
Using mail 2.6.3 …
Run Code Online (Sandbox Code Playgroud)

ruby git sqlite ruby-on-rails heroku

7
推荐指数
3
解决办法
1万
查看次数

本机 Ruby 模块出现错误“找不到指定的模块。” 这不是真的

我刚刚使用以下命令安装了适用于 Windows 的 Ruby gem“sqlite3”

>gem install sqlite3 --platform=ruby -- --with-sqlite3-include=c:/sqlite3/include --with-sqlite3-lib=c:/sqlite3/lib --with-sqlite3-dir=c:/sqlite3/bin
Run Code Online (Sandbox Code Playgroud)

它编译看起来很完美,但是当我尝试包含 gem 时,我得到:

irb(main):001:0> 需要“sqlite3”
LoadError:126:找不到指定的模块。- C:/Ruby200/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9/lib/sqlite3/sqlite3_native.so
        来自 C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        来自 C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        来自 C:/Ruby200/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9/lib/sqlite3.rb:6:in `rescue in '
        来自 C:/Ruby200/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.9/lib/sqlite3.rb:2:in `'
        来自 C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'
        来自 C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require 中的救援'
        来自 C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
        来自(irb):1
        来自 C:/Ruby200/bin/irb:12:in `'

所以我检查了它为“sqlite3_native.so”提供的路径,你瞧,它就在那里!就像它应该的那样。那么鲁比为什么要对我撒谎呢?我怎样才能找出宝石不起作用的真正原因?

我手动构建 gem 的原因是预构建的 gem 带有过时的 SQLite3 版本

ruby sqlite

6
推荐指数
1
解决办法
3072
查看次数

无法在rails项目上获取我的ruby来创建数据库

这可能是一个新手设置问题.但是这里......

机器设置

我有一台运行rails 4.0.0和ruby 2.0.0的Windows 7 64位机器我的路径中有以下内容

C:\Ruby200-x64\bin;C:\RubyDevKit\bin;C:\RubyDevKit\mingw\bin;
Run Code Online (Sandbox Code Playgroud)

项目设置

我正在从同事的工作存储库中的克隆git项目开始工作.

当我运行我的初始

rake db:migrate
Run Code Online (Sandbox Code Playgroud)

我收到以下错误

rake aborted!
Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 's
qlite3'` to your Gemfile.
C:/Working/mynewproject/config/environment.rb:5:in `<top (required)>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
Run Code Online (Sandbox Code Playgroud)

我的Gemfile确实包含gem'sqlite3',如下所示

# Use sqlite3 as the database for Active Record
gem 'sqlite3' 
Run Code Online (Sandbox Code Playgroud)

完整的Gemfile是

source 'https://rubygems.org'

ruby '2.0.0'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0' …
Run Code Online (Sandbox Code Playgroud)

windows rake 64-bit gem ruby-on-rails

5
推荐指数
1
解决办法
3408
查看次数

Windows/Ruby/Rails安装---.无法加载这样的文件--sqlite3/sqlite3_native windows

Ruby 2.1.3p242 <2014-09-19修订版47630> [x64-mingw32] Rails 4.2.0.beta2

我在64位系统上运行Windows 8.我一直在使用c9(云托管的ubuntu)但是想在我的电脑上开始使用RubyMine IDE来使一切变得更快但是它会带来一些问题.

我已经尝试了几乎所有推荐的方式,包括这个: 如何在Windows上为Ruby安装sqlite3?

但我仍然收到相同的错误消息.非常感谢您的帮助!如果您对我有任何疑问,请与我们联系.

运行$ rails s时出现完整错误消息:

C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `block in require'
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:233:in `load_dependency'
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `require'
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3.rb:6:in `rescue in <top (required)>'
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.9-x64-mingw32/lib/sqlite3.rb:2:in `<top (required)>'
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtime.rb:76:in `require'
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtime.rb:72:in `each'
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtime.rb:72:in `block in require'
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtime.rb:61:in `each'
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler/runtime.rb:61:in `require'
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/bundler-1.7.4/lib/bundler.rb:133:in `require'
    from C:/Sites/aynulhabib-habib-framework-aca42deddccd/config/application.rb:7:in `<top (required)>'
    from C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/railties-4.2.0.beta2/lib/rails/commands/commands_tasks.rb:78:in `require'
    from …
Run Code Online (Sandbox Code Playgroud)

ruby sqlite ruby-on-rails ruby-on-rails-3 windows-8

5
推荐指数
2
解决办法
1万
查看次数

由于缺少sqlite3 gem,Rails 4.0rc1 app无法运行

我第一次尝试安装Rails 4.0.在带有Ruby 2.0 x64的Windows 8上.冉:

gem install rails --version 4.0.0.rc1 --no-ri --no-rdoc
Run Code Online (Sandbox Code Playgroud)

然后我跑:

rails new test_app
cd test_app
rails s
Run Code Online (Sandbox Code Playgroud)

但网页localhost:3000报告以下错误:

为数据库适配器指定'sqlite3',但未加载gem.添加gem 'sqlite3'到您的Gemfile.

它在我的Gemfile中:

gem 'sqlite3'
Run Code Online (Sandbox Code Playgroud)

我尝试bundle install了几次运行,它甚至没有列出所有其他宝石.

更新:我尝试以两种不同的方式安装sqlite3 gem,两者都使用从DevKit的msys.bat文件打开的终端.@szines下面提到的方式给我以下错误:

$ gem install sqlite3 --platform=ruby -- --with-opt-dir=c:/sqlite-amalgamation-3071602
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-opt-dir=c:/sqlite-amalgamation-3071602'
This could take a while...
ERROR:  Error installing sqlite3:
        ERROR: Failed to build gem native extension.

    c:/Ruby200-x64/bin/ruby.exe extconf.rb --with-opt-dir=c:/sqlite-amalgamation-3071602
checking for sqlite3.h... yes
checking for …
Run Code Online (Sandbox Code Playgroud)

sqlite ruby-on-rails bundler ruby-on-rails-4

4
推荐指数
1
解决办法
4418
查看次数

在Windows上安装SQLite3 for Ruby - 目前最简单的路线是什么?

我是Ruby的新手,希望让Redmine在WinServer08 sp1上运行

我在这里阅读了一些线程,详细介绍了让Ruby和SQLite相互配合所需的步骤和变通方法.

Ruby会运行... sqlite3的.dll和api都在指定的目录中......我重新启动但是rake -test失败了.

我想知道是否有一个明确的循序渐进,汇总了所涉及的各种包的先前解决方法. - 太多了!

C:\Ruby>rake -test --trace
rake aborted!
undefined local variable or method `st' for #<Rake::Application:0x4351638>
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2217:in `standard_rake_opt
ions'
C:/Ruby/lib/ruby/1.8/optparse.rb:1291:in `eval'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2217:in `standard_rake_opt
ions'
C:/Ruby/lib/ruby/1.8/optparse.rb:1291:in `call'
C:/Ruby/lib/ruby/1.8/optparse.rb:1291:in `parse_in_order'
C:/Ruby/lib/ruby/1.8/optparse.rb:1247:in `catch'
C:/Ruby/lib/ruby/1.8/optparse.rb:1247:in `parse_in_order'
C:/Ruby/lib/ruby/1.8/optparse.rb:1241:in `order!'
C:/Ruby/lib/ruby/1.8/optparse.rb:1332:in `permute!'
C:/Ruby/lib/ruby/1.8/optparse.rb:1353:in `parse!'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2313:in `handle_options'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2009:in `init'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exceptio
n_handling'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2007:in `init'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1999:in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exceptio
n_handling'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/Ruby/bin/rake:19:in `load'
C:/Ruby/bin/rake:19
Run Code Online (Sandbox Code Playgroud)

sqlite ruby-on-rails windows-server-2008

3
推荐指数
1
解决办法
8357
查看次数

'gem install sqlite3' 失败

当我运行时 rails new todo,它显示如下(相关问题确保'gem install ~'在捆绑之前成功)。

Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read
server certificate B: certificate verify failed (https://rubygems.org/gems/sqlit
e3-1.3.10-x64-mingw32.gem)
An error occurred while installing sqlite3 (1.3.10), and Bundler cannot
continue.
Make sure that `gem install sqlite3 -v '1.3.10'` succeeds before bundling.
Run Code Online (Sandbox Code Playgroud)

当我运行时gem install sqlite3,它显示如下。

C:\Ruby21-x64>gem install sqlite3
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing sqlite3:
        ERROR: Failed to build gem native extension.

    C:/Ruby21-x64/bin/ruby.exe extconf.rb …
Run Code Online (Sandbox Code Playgroud)

sqlite ruby-on-rails

2
推荐指数
1
解决办法
3396
查看次数