简体   繁体   English

无法在Windows XP中安装sqlite3-1.3.6 ruby​​ gem

[英]Cannot install sqlite3-1.3.6 ruby gem in windows xp

New to Ruby on Rails. Ruby on Rails的新手。 Working in Windows XP. 在Windows XP中工作。

I have installed the rails installer from railsinstaller dot org 我已经从railsinstaller dot org安装了Rails安装程序

Working through the example from guides dot rubyonrails dot org / getting_started 通过指南中的示例点rubyonrails dot org / getting_started

Issued the command 'rails new blog' 发出命令“ rails new blog”

the bundle install fails on Network error while fetching https://rubygems.org/quick/Marshal.4.8/sqlite3-1.3.6.gemspec.rz 在获取https://rubygems.org/quick/Marshal.4.8/sqlite3-1.3.6.gemspec.rz时 ,由于网络错误而导致捆绑安装失败

I have downloaded the sqlite3-1.3.6 gem and tried to manually install, receiving the following error: 我已经下载了sqlite3-1.3.6 gem,并尝试手动安装,收到以下错误:

checking for sqlite3.h... no sqlite3.h is missing. 检查sqlite3.h ...没有sqlite3.h丢失。 Install SQLite3 from http://www.sqlite.org/ first. 首先从http://www.sqlite.org/安装SQLite3。 * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. * extconf.rb失败*由于某些原因(可能缺少必要的库和/或头文件)而无法创建Makefile。 Check the mkmf.log file for more details. 检查mkmf.log文件以获取更多详细信息。 You may need configuration options. 您可能需要配置选项。

I've read many different websites that tell me to make sure Sqlite3.dll is in the system path, so I've downloaded the latest Sqlite3.dll (from sqlite3 dot org, using the windows precompiled binaries) and placed them within the path, even overwriting the Sqlite3.dll file within c:\\Railsinstall\\Ruby1.9.3\\bin but all to no avail. 我已经阅读了许多不同的网站,这些网站告诉我确保Sqlite3.dll在系统路径中,所以我已经下载了最新的Sqlite3.dll(使用SQL预编译的二进制文件从sqlite3 dot org下载)并将其放在路径中,甚至覆盖c:\\ Railsinstall \\ Ruby1.9.3 \\ bin中的Sqlite3.dll文件,但无济于事。 I've even tried registering Sqlite3.dll using regsrv32 Sqlite3.dll, only to receive the message "Sqlite3.dll was loaded, but the DllRegisterServer entry point was not found. This file can not be registered" 我什至尝试使用regsrv32 Sqlite3.dll注册Sqlite3.dll,仅收到消息“已加载Sqlite3.dll,但未找到DllRegisterServer入口点。无法注册此文件”

I have successfully been able to install Sqlite3-1.3.6-x86-mingw32.gem, however 'rails new blog' still looks for Sqlite-1.3.6 我已经能够成功安装Sqlite3-1.3.6-x86-mingw32.gem,但是“ rails new blog”仍在查找Sqlite-1.3.6

If I try 'rails new blog --skip-bundle', I can successfully create blog, but I think I'm just skirting the issue. 如果我尝试使用“ rails new blog --skip-bundle”,则可以成功创建Blog,但是我认为这只是在解决问题。

Anyone have any idea what I might be missing? 有人知道我可能会缺少什么吗? I have the Sqlite3.dll within the path, but still can't get past the Sqlite3.h file not found error. 我在路径中有Sqlite3.dll,但仍然无法通过Sqlite3.h文件找不到错误。

Thanks 谢谢

(I know I may have a proxy issue, but I still should be able to install the gem file locally. I've been able to do that for every other requested gem file.) (我知道我可能遇到代理问题,但是我仍然应该能够在本地安装gem文件。对于其他所有请求的gem文件,我都可以这样做。)

  1. Go to SQLite3 download page , “Precompiled Binaries For Windows” section 转到SQLite3下载页面 ,“ Windows的预编译二进制文件”部分
  2. Download “sqlite-shell” and “sqlite-dll” archive files 下载“ sqlite-shell”和“ sqlite-dll”存档文件
  3. Unpack them in C:\\WINDOWS\\system32 folder (or any other that is in your PATH) 将它们解压缩到C:\\ WINDOWS \\ system32文件夹(或PATH中的任何其他文件夹)
  4. Install the sqlite3 Ruby gem. 安装sqlite3 Ruby gem。

Having .dlls in system32 is MANDATORY 在system32中具有.dll是强制性的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM