Bundler를 Capistrano를 통해 사용하는 Rails 앱을 배포하려고합니다. MySQL과 MySQL2 gem은 호스트에서 빌드되지만 Capistrano 또는 SSH를 통해 빌드하지 않습니다.
** [out :: (my host)] Installing mysql2 (0.2.6)
** [out :: (my host)] with native extensions
*** [err :: (my host)] /usr/lib64/ruby/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
*** [err :: (my host)]
*** [err :: (my host)] /usr/bin/ruby extconf.rb
*** [err :: (my host)] checking for rb_thread_blocking_region()... no
*** [err :: (my host)] checking for mysql_query() in -lmysqlclient... no
*** [err :: (my host)] checking for main() in -lm... yes
*** [err :: (my host)] checking for mysql_query() in -lmysqlclient... no
*** [err :: (my host)] checking for main() in -lz... yes
*** [err :: (my host)] checking for mysql_query() in -lmysqlclient... no
*** [err :: (my host)] checking for main() in -lsocket... no
*** [err :: (my host)] checking for mysql_query() in -lmysqlclient... no
*** [err :: (my host)] checking for main() in -lnsl... yes
*** [err :: (my host)] checking for mysql_query() in -lmysqlclient... no
*** [err :: (my host)] checking for main() in -lmygcc... no
*** [err :: (my host)] checking for mysql_query() in -lmysqlclient... no
*** [err :: (my host)] *** extconf.rb failed ***
*** [err :: (my host)] Could not create Makefile due to some reason, probably lack of
*** [err :: (my host)] necessary libraries and/or headers. Check the mkmf.log file for more
*** [err :: (my host)] details. You may need configuration options.
그냥 MySQL의-DEV 패키지 또는 오른쪽으로 뭔가를 설치
:cap deploy:cold
실행
이 제공? 보석 (mysql과 mysql2)은 아무런 문제없이 Bundler로 시스템을 구축하고 다른 보석은 문제없이 설치하기 때문에.
카피 스트라 노가하는 일은 무엇이 다른가요?
좋아 도움이되기를 바랍니다 :이 같은 전에 그것을 한 적이 (SSH user @ host 'cd dir; 번들 설치 --deployment --local --path gem_path'')가 작동하지 않습니다. – madh