Red Hat Linux + Rails + RVM: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension -
so i'm trying deploy rails 3 app red hat linux server uses rvm, keeps failing:
** [out :: myserver.server.com] gem::installer::extensionbuilderror: error: failed build gem native extension. ** [out :: myserver.server.com] ** [out :: myserver.server.com] /usr/local/rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb ** [out :: myserver.server.com] checking vm_core.h... no ** [out :: myserver.server.com] checking vm_core.h... no ** [out :: myserver.server.com] makefile creation failed ** [out :: myserver.server.com] ************************************************************************** ** [out :: myserver.server.com] no source ruby-1.9.3-p448 provided debugger-ruby_core_source gem. ** [out :: myserver.server.com] ************************************************************************** ** [out :: myserver.server.com] *** extconf.rb failed *** ** [out :: myserver.server.com] not create makefile due reason, lack of ** [out :: myserver.server.com] necessary libraries and/or headers. check mkmf.log file more ** [out :: myserver.server.com] details. may need configuration options. ** [out :: myserver.server.com] ** [out :: myserver.server.com] provided configuration options: ** [out :: myserver.server.com] --with-opt-dir ** [out :: myserver.server.com] --without-opt-dir ** [out :: myserver.server.com] --with-opt-include ** [out :: myserver.server.com] --without-opt-include=${opt-dir}/include ** [out :: myserver.server.com] --with-opt-lib ** [out :: myserver.server.com] --without-opt-lib=${opt-dir}/lib ** [out :: myserver.server.com] --with-make-prog ** [out :: myserver.server.com] --without-make-prog ** [out :: myserver.server.com] --srcdir=. ** [out :: myserver.server.com] --curdir ** [out :: myserver.server.com] --ruby=/usr/local/rvm/rubies/ruby-1.9.3-p448/bin/ruby ** [out :: myserver.server.com] --with-ruby-dir ** [out :: myserver.server.com] --without-ruby-dir ** [out :: myserver.server.com] --with-ruby-include ** [out :: myserver.server.com] --without-ruby-include=${ruby-dir}/include ** [out :: myserver.server.com] --with-ruby-lib ** [out :: myserver.server.com] --without-ruby-lib=${ruby-dir}/lib ** [out :: myserver.server.com] ** [out :: myserver.server.com] ** [out :: myserver.server.com] gem files remain installed in /usr/local/www/sherry-authorize-staging/shared/bundle/ruby/1.9.1/gems/debugger-linecache-1.1.2 inspection. ** [out :: myserver.server.com] results logged /usr/local/www/sherry-authorize-staging/shared/bundle/ruby/1.9.1/gems/debugger-linecache-1.1.2/ext/trace_nums/gem_make.out ** [out :: myserver.server.com] error occurred while installing debugger-linecache (1.1.2), , bundler ** [out :: myserver.server.com] cannot continue. ** [out :: myserver.server.com] make sure `gem install debugger-linecache -v '1.1.2'` succeeds before ** [out :: myserver.server.com] bundling.
so listened directions , made sure gem install on server sshing server , running gem install debugger-linecache -v '1.1.2'
, , going server , manually cloning git repo , running bundle install
gems exist on server. however, gems there, whenever deploy still same message. log in user , type gem list
, gems show up. gems global , in right place:
[emai@511863-web3 ~]$ gem /usr/local/rvm/rubies/ruby-1.9.3-p448/bin/gem
does know how fix this?
so listened geoffroy , installed rvm-capistrano gem, , added these lines capistrano script
set :bundle_dir, '' set :bundle_flags, '--system --quiet' set :rvm_type, :system
and worked!
Comments
Post a Comment