==============================
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb install rmagick
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1:in `<main>'
1、sudo apt-get install imagemagick libmagickwand-dev
2、sudo apt-get install imagemagick
3、sudo apt-get install graphicsmagick-libmagick-dev-compat
4、gem install rmagick
===================================
gem 'execjs'
gem 'therubyracer'
![](/qrcode.jpg)
`autodetect': Could not find a JavaScript runtime.
sudo apt-get install libv8-dev
sudo apt-get install nodejs
可以安装nodejs
sudo aptitude install -y python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get install nodejs
====================================
RMagick2.so (LoadError)
sudo apt-get install imagemagick
sudo apt-get install librmagick-ruby #ruby
sudo apt-get install libmagickwand-dev 或 graphicsmagick-libmagick-dev-compat