redmine インストール記録
概要
bundle install --without development test
このコマンド入力でこんなエラーが出てきました。
Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /var/lib/gems/2.3.0/gems/json-1.8.6/ext/json/ext/generator /usr/bin/ruby2.3 -r ./siteconf20170222-9601-62lhb8.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h extconf failed, exit code 1 Gem files will remain installed in /var/lib/gems/2.3.0/gems/json-1.8.6 for inspection. Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/json-1.8.6/gem_make.out An error occurred while installing json (1.8.6), and Bundler cannot continue. Make sure that `gem install json -v '1.8.6'` succeeds before bundling.
ほかにも何回も似たように物が足りずにインストールが止まる
解決
sudo apt install -y ruby-dev make gcc libmysqlclient-dev aptitude sudo aptitude install imagemagick libimagemagick libmagickcore libmagickcore-dev libmagickwand-dev