新人求教 rails数据库development tools是什么

weixin_40130116 2017-11-13 12:04:00
工作需要最近学习ror
开始用的ruby on rails 没什么问题,后来改用jruby on rails,无论安装什么数据库都报同一个错误,好像是差个什么东西阿
百度了一下,没有找到讲windows的.哪位能指导一下吗
下面是复制的dos信息:

Using tilt 2.0.8
Using sass-rails 5.0.6
Fetching sqlite3 1.3.13
Installing sqlite3 1.3.13 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/jruby-9.1.14.0/lib/ruby/gems/shared/gems/sqlite3-1.3.13/ext/sqlite3
C:/jruby-9.1.14.0/bin/jruby.exe -r ./siteconf20171113-5256-13tzn62.rb extconf.rb

checking for sqlite3.h... RuntimeError: The compiler failed to generate an
executable file.
You have to install development tools first.

try_do at C:/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:456
try_cpp at C:/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:587
block in find_header at C:/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:1144
block in checking_for at C:/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:942
block in postpone at C:/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:350
open at C:/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:320
block in postpone at C:/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:350
open at C:/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:320
postpone at C:/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:346
checking_for at C:/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:941
find_header at C:/jruby-9.1.14.0/lib/ruby/stdlib/mkmf.rb:1143
<main> at extconf.rb:50
*** 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
...全文
4461 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

2,763

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ruby/Rails
社区管理员
  • Ruby/Rails社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧