1. 执行
bundle install --without development test
时,走到
Installing mysql2 0.3.19 with native extensions
这一步后就一直停在这里。
后来发现是没有安装 mysql的dev文件。
执行
sudo aptitude install libmysqlclient-dev
后,就能继续往下走了
2.
Installing rmagick 2.15.4 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/charles/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150821-29135-14k28n4.rb extconf.rb
checking for gcc... yes
checking for Magick-config... no
checking for pkg-config... yes
Package MagickCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickCore' found
checking for outdated ImageMagick version (<= 6.4.9)... *** extconf.rb failed ***
解决方法:
sudo aptitude install libmagickwand-dev