mini_portile安装在Digitalocean上冻结

时间:2015-01-11 17:17:44

标签: ruby-on-rails ruby ruby-on-rails-3 gem digital-ocean

我正在尝试运行bundle install。 所有的宝石安装都很好,但在 mini_portile 它会冻结,10分钟后会显示消息

Killed. !

我尝试重启我的Droplet,然后删除了这个再次创建的Droplet等等。

但没有解决方案。

Error: Failed to build gem native extension

在错误日志中,我可以看到此消息:

Running 'compile' for libxml2 2.9.2.. ERROR

我的宝石文件:

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

任何帮助?

感谢

1 个答案:

答案 0 :(得分:5)

按照@luislavena使用建议here

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