我正在尝试使用 Sinatra 运行一个简单的应用程序,但我无法安装重新加载器。
我试过了
gem install sinatra-contrib
我的源文件中有这样一行:
require "sinatra/reloader" if development?
在我的Gemfile
gem "sinatra-contrib", "~> "1.3.1"
gem 'sinatra-reloader'
我在尝试启动 gem install sinatra-config 时遇到错误
>gem install sinatra-contrib
ERROR: Error installing sinatra-contrib:
ERROR: Failed to build gem native extension.
C:/Ruby192/bin/ruby.exe extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... *** 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.`
我想不通。如果我有这require "sinatra/reloader" if development?
条线,它就行不通了。网络上关于此的内容并不多。我知道霰弹枪在 Windows 中不是一个选项。