mini_portile 安装在 Digitalocean 上冻结

mini_portile installation freezes on Digitalocean

我正在尝试 运行 捆绑安装。 所有 gems 安装都很好,但在 mini_portile 上它冻结并在 10 分钟后显示消息

Killed. !

我尝试重新启动我的 droplet,然后删除了这个重新创建的 droplet 等等。

但没有解决方案。

Error: Failed to build gem native extension

在错误日志中我可以看到这条消息:

Running 'compile' for libxml2 2.9.2.. ERROR

我的 gem 文件:

source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.6'
# Use mysql as the database for Active Record
gem 'mysql2'

#gem 'paperclip-watermark'
gem 'geo_ip'
gem 'geocoder'
gem 'validates_email_format_of'
#gem 'jquery-validation-rails'
gem 'bcrypt-ruby', :require => 'bcrypt'
gem 'bootstrap-sass', '~> 2.3.2.0'
gem 'bootstrap-timepicker-rails-addon'
#gem 'nifty-generators'
#gem 'ancestry'
gem 'judge', '~> 2.0.5'
gem 'acts_as_votable', '~> 0.10.0'
gem 'cancancan', '~> 1.9'
gem 'inherited_resources', '~> 1.5.1'
gem 'activeadmin', github: 'activeadmin'
#gem "globalize3"
gem 'impressionist'
#gem 'rmagick', '2.13.2'
gem 'ransack'
gem 'mailcatcher'
gem "paperclip", "~> 4.2"
gem 'rqrcode_png'
gem 'friendly_id', '~> 5.0.0' # Note: You MUST use 5.0.0 or greater for Rails 4.0+
# Use SCSS for stylesheets
gem 'therubyracer'
gem 'devise'
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
gem "twitter-bootstrap-rails"
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer',  platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0',          group: :doc

有帮助吗?

谢谢

按照@luislavena 的建议 here 使用:

gem install nokogiri -- --use-system-libraries