#MastdonをCentOS7にインストールしていますがエラーがでます。
環境:さくらのクラウド CentOS7
参考サイト:http://qiita.com/bezeklik/items/1a8530d530613acd665c
ほぼ完全コピペで行っています。
##エラーメッセージ
Installing av 0.9.0 Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /home/mastodon/live/vendor/bundle/ruby/2.4.0/gems/cld3-3.1.2/ext/cld3 /home/mastodon/.rbenv/versions/2.4.1/bin/ruby -r ./siteconf20170529-2078-1rl5nfp.rb extconf.rb Failed to locate protobuf *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/home/mastodon/.rbenv/versions/2.4.1/bin/$(RUBY_BASE_NAME) --with-protobuf-config --without-protobuf-config --with-pkg-config --without-pkg-config To see why this extension failed to compile, please check the mkmf.log which can be found here: /home/mastodon/live/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0-static/cld3-3.1.2/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /home/mastodon/live/vendor/bundle/ruby/2.4.0/gems/cld3-3.1.2 for inspection. Results logged to /home/mastodon/live/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0-static/cld3-3.1.2/gem_make.out An error occurred while installing cld3 (3.1.2), and Bundler cannot continue. Make sure that `gem install cld3 -v '3.1.2'` succeeds before bundling. In Gemfile: cld3
なお、cld3については正常に入っているようです。
よろしくお願いします。
その後
yum install protobuf-lite-devel
であるところまで解決されました。
##bundle install の後のrake secret
最初のほうで bundle install で
Fetching rake 11.3.0 Installing rake 11.3.0
をしています。
しかし、rake secret をすると
[mastodon@testdon2 live]$ rake secret rake aborted! Gem::LoadError: You have already activated rake 12.0.0, but your Gemfile requires rake 11.3.0. Prepending `bundle exec` to your command may solve this. /home/mastodon/live/config/boot.rb:3:in `<top (required)>' /home/mastodon/live/config/application.rb:1:in `require_relative' /home/mastodon/live/config/application.rb:1:in `<top (required)>' /home/mastodon/live/Rakefile:4:in `<top (required)>' LoadError: cannot load such file -- bundler/setup /home/mastodon/live/config/boot.rb:3:in `<top (required)>' /home/mastodon/live/config/application.rb:1:in `require_relative' /home/mastodon/live/config/application.rb:1:in `<top (required)>' /home/mastodon/live/Rakefile:4:in `<top (required)>' (See full trace by running task with --trace)
と出てしまいます。

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2017/05/31 02:22