###前提・実現したいこと
AWS上のRDSのbinlogを継続的に取得し、S3に保存したいと思っています。
そのための手法の一つとして、fluentdを使ってAWS上のRDSのbinlogを取得し、S3に保存することを考えました。
fluentdにはfluent-plugin-mysql-binlogというプラグインがあり、これを使えば楽にS3にbinlogを送れるのではと考え、検証することにしました。
上記の目的を達成するために、下記のエラーの解消方法をご教示いただきたいと思っております。
※そもそもこれ以外でよいやり方があれば、ご教示いただけると非常に助かります。
###発生している問題・エラーメッセージ
sudo td-agent-gem install fluent-plugin-mysql-binlog
を実行したときのエラーです。
Fetching: ruby-binlog-0.1.9.gem (100%) Building native extensions. This could take a while... ERROR: Error installing fluent-plugin-mysql-binlog: ERROR: Failed to build gem native extension. /opt/td-agent/embedded/bin/ruby -r ./siteconf20170303-11252-k8nh3v.rb extconf.rb checking for main() in -lstdc++... yes checking for main() in -lreplication... no *** 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 --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=/opt/td-agent/embedded/bin/ruby --with-stdc++lib --without-stdc++lib --with-replicationlib --without-replicationlib extconf failed, exit code 1 Gem files will remain installed in /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/ruby-binlog-0.1.9 for inspection. Results logged to /opt/td-agent/embedded/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0/ruby-binlog-0.1.9/gem_make.out
何かライブラリが足りないのかと思ったのですが、下記の試したことのところのものではなかったようです。
手詰まりになったため、質問させていただこうと思いました。
###試したこと
sudo yum install libxml2 libxslt libxml2-devel libxslt-devel
を実行してみましたが、全てインストール済みでした。
###補足情報(言語/FW/ツール等のバージョンなど)
- OS
Amazon Linux
- mysqlのバージョン
mysql Ver 14.14 Distrib 5.6.35, for Linux (x86_64) using EditLine wrapper
- fluentdのバージョン
td-agent-2.3.4-1
※検証時に新たにインストールしたので最新版です。
情報が不足しているようでしたら後ほど追記します。
あなたの回答
tips
プレビュー