新しいサーバー機(AWS)を用意したが、動かない。
仮想機、別のサーバーでは動くのに...
問題がわかりません。どなたか回避策など教えていただけますか。
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/app/.rbenv/versions/1.9.3-p551/bin/ruby extconf.rb
checking for ruby/thread.h... no
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
Using mysql_config at /usr/bin/mysql_config
checking for mysql.h... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes
Setting libpath to /usr/lib64/mysql
creating Makefile
make
compiling infile.c
compiling result.c
result.c: In function ‘msec_char_to_uint’:
result.c:189:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < (len - 1); i++) {
^
compiling client.c
compiling mysql2_ext.c
linking shared-object mysql2/mysql2.so
/usr/bin/ld: cannot find -lmysqlclient
collect2: error: ld returned 1 exit status
make: *** [mysql2.so] Error 1
Gem files will remain installed in /var/www/project/vendor/bundle/ruby/1.9.1/gems/mysql2-0.3.20 for inspection.
Results logged to /var/www/project/vendor/bundle/ruby/1.9.1/gems/mysql2-0.3.20/ext/mysql2/gem_make.out
An error occurred while installing mysql2 (0.3.20), and Bundler cannot continue.
Make sure that gem install mysql2 -v '0.3.20'
succeeds before bundling.
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/11/30 08:49
2015/11/30 10:02
2015/11/30 10:09