- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
我将 unicorn 添加到我的 Gemfile 中,然后当我进行捆绑安装时出现此错误
em::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/adim86/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb
checking for CLOCK_MONOTONIC in time.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.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/adim86/.rvm/rubies/ruby-1.9.3-p0/bin/ruby
/Users/adim86/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /Users/adim86/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:491:in `block in try_compile'
from /Users/adim86/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:443:in `with_werror'
from /Users/adim86/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:491:in `try_compile'
from /Users/adim86/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:686:in `macro_defined?'
from /Users/adim86/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:822:in `block in have_macro'
from /Users/adim86/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
from /Users/adim86/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
from /Users/adim86/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/adim86/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
from /Users/adim86/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/adim86/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
from /Users/adim86/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
from /Users/adim86/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/mkmf.rb:821:in `have_macro'
from extconf.rb:5:in `<main>'
Gem files will remain installed in /Users/adim86/.rvm/gems/ruby-1.9.3-p0/gems/kgio-2.7.4 for inspection.
Results logged to /Users/adim86/.rvm/gems/ruby-1.9.3-p0/gems/kgio-2.7.4/ext/kgio/gem_make.out
An error occured while installing kgio (2.7.4), and Bundler cannot continue.
Make sure that `gem install kgio -v '2.7.4'` succeeds before bundling
我的 gem 文件如下所示。我尝试将 unicorn 添加到生产 block 中,但我仍然遇到相同的错误。我也删除了 unicorn ,但我仍然遇到同样的错误,也尝试了捆绑更新但无济于事:
source 'https://rubygems.org'
gem 'rails', '3.2.3'
gem 'devise'
gem 'haml-rails'
gem 'omniauth'
gem 'omniauth-twitter'
gem 'omniauth-facebook'
gem 'twitter'
gem 'fb_graph'
gem 'json'
gem 'json_pure'
gem 'simple_form'
gem 'postmark'
gem 'postmark-rails'
gem 'bootstrap-datepicker-rails'
gem 'watu_table_builder', :require => 'table_builder'
gem 'sqlite3'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'uglifier', '>= 1.0.3'
end
gem "therubyracer", :require => 'v8'
gem 'jquery-rails'
gem 'differ'
gem 'whenever'
gem 'unicorn'
谁能帮忙?
最佳答案
Unicorn,旨在利用类 Unix 系统中的功能。
换句话说,它们不能在 Windows 上运行
关于ruby-on-rails - 当我进行捆绑安装时,我收到了 kgio gem 的 gem 安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12380802/
我有 unicorn /kgio/rails 的问题。 当我使用 nginx 启动 unicorn 服务器并尝试通过 Web 界面访问网站时,在 unicorn.stderr.log 中出现以下错误
我已经下载了一个 Rails 开源 Web 应用程序,当我开始使用它时: C:\Users\admin\Downloads\iCare\icare-develop>rails server ←[31m
如何在没有 kgio 的情况下在 Windows 上安装 rails? 当我运行“rails server”时,它会尝试安装我假设是它需要的依赖项。一旦尝试安装 kgio,它就会失败。我做了一些搜索,
我尝试将 unicorn gem 添加到我的 gem 文件中,当我运行 bundle install 时出现以下错误: Installing kgio (2.8.1) with native exte
伙计,现在当我捆绑安装我的 ruby on Rails 项目时它给我错误 extconf failed, exit code 1 Gem files will remain installed i
我将 unicorn 添加到我的 Gemfile 中,然后当我进行捆绑安装时出现此错误 em::Installer::ExtensionBuildError: ERROR: Failed to
在 Windows 上安装 kgio gem 时遇到问题 使用 Ruby 2.1.6 32 位并安装 DevKit。 Installing kgio 2.9.2 with native extensi
注意:我运行的是 Ubuntu,而不是 Windows。 这是在尝试安装 kgio 时发生的情况。我是否缺少依赖项,我应该安装什么? gilani@debris$ gem install kgio -
主要的错误信息是: checking size of struct RFile in ruby.h,ruby/io.h... *** extconf.rb failed *** kgio 使用 RVM
我是一名优秀的程序员,十分优秀!