对于Ruby/Rails来说真的很陌生,在本周末我试图自己解决这个问题之后,我试图在这里寻求建议.
我在FreeBSD上完成了一个完整的Ruby/Apache/Passenger设置,我正在尝试完成使用Windows作为Ruby开发环境的任务.
至今:
"> rake db:create"告诉我:
请安装sqlite3适配器:( gem install activerecord-sqlite3-adaptersqlite3不是捆绑包的一部分.将其添加到Gemfile.)
我没有"理解".试图安装activerecord-sqlite3-adapter给我一个"找不到有效的宝石......"
"> gem install sqlite3"返回:
Building native extensions. This could take a while...
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
D:/Development/Ruby200-x64/bin/ruby.exe extconf.rb
checking for sqlite3.h... *** extconf.rb failed ***
现在我停留在我甚至不知道我的Ruby on Windows安装的状态的位置.我正在尝试遵循主要的Rails教程并且它没有指定任何这些问题(可能是因为Ruby在Windows上似乎是很多人的自然痛苦.)
我错过了什么?!?我只是想在Windows上为Ruby安装sqlite3,看起来很简单吧?
如果我这样做">rais db"了SQLite shell:
SQLite version 3.7.15.2 2013-01-09 11:53:05
类似问题的步骤无法解决我的问题: 在Windows 7上安装SQLite 3.6
我今天开始学习Ruby on rails.我已经安装了Ruby,DEVELOPMENT KIT,SQLite3,bundler和rails.
接下来,我的教科书说要rails new todo在控制台中运行.然后,出现以下消息:
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read
server certificate B: certificate verify failed (https://rubygems.org/gems/coffee-rails-4.0.1.gem)
An error occurred while installing execjs (2.2.2), and Bundler cannot
continue.
Make sure that `gem install execjs -v '2.2.2'` succeeds before bundling.
Run Code Online (Sandbox Code Playgroud)
我做了如下.
C:\rubyfolder>gem install execjs -v 2.2.2
Run Code Online (Sandbox Code Playgroud)
然后它出现如下:
Fetching: execjs-2.2.2.gem (100%)
Successfully installed execjs-2.2.2
Parsing documentation for execjs-2.2.2
Installing ri documentation for execjs-2.2.2
Done installing documentation for execjs after 1 seconds
WARNING: Unable to pull data from …Run Code Online (Sandbox Code Playgroud)