hi everyone,
I have installed foreman using packages,now it had worked.Then,i want to
install foreman_discovery, The leader article is
"https://github.com/theforeman/foreman_discovery/tree/master"
but it failed when "scl enable ruby193 "bundle update"
The error:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
extension.
/opt/rh/ruby193/root/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at
/opt/rh/ruby193/root/usr/share/include/ruby.h
Gem files will remain installed in
/opt/rh/ruby193/root/usr/local/share/gems/gems/json-1.8.0 for inspection.
Results logged to
/opt/rh/ruby193/root/usr/local/share/gems/gems/json-1.8.0/ext/json/ext/generator/gem_make.out
An error occured while installing json (1.8.0), and Bundler cannot continue.
Make sure that gem install json -v '1.8.0'
succeeds before bundling.
my json version:
json (1.5.4)
multi_json (1.7.7, 1.3.6)
po_to_json (0.0.7)
so , i dont know how can i go on !!
thanks a lot!!
Running "bundle update" isn't required, I'll get those instructions fixed.
You should only need to do:
-
create ~foreman/bundler.d/Gemfile.local.rb containing:
gem 'foreman_discovery'
-
yum -y install ruby193-rubygem-nokogiri
-
scl enable ruby193 'gem install foreman_discovery'
If you have moved Gemfile.in to Gemfile, please move it back. Restart
httpd and/or Foreman after the above steps.
···
--
Dominic Cleal
Red Hat Engineering
On 29/07/13 07:32, linuxdingding3@gmail.com wrote:
hi everyone,
I have installed foreman using packages,now it had worked.Then,i
want to install foreman_discovery, The leader article is
"https://github.com/theforeman/foreman_discovery/tree/master"
but it failed when "scl enable ruby193 "bundle update"
The error:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
extension.
/opt/rh/ruby193/root/usr/bin/ruby extconf.rb
mkmf.rb can’t find header files for ruby at
/opt/rh/ruby193/root/usr/share/include/ruby.h
Gem files will remain installed in
/opt/rh/ruby193/root/usr/local/share/gems/gems/json-1.8.0 for inspection.
Results logged to
/opt/rh/ruby193/root/usr/local/share/gems/gems/json-1.8.0/ext/json/ext/generator/gem_make.out
An error occured while installing json (1.8.0), and Bundler cannot continue.
Make sure that gem install json -v '1.8.0'
succeeds before bundling.
my json version:
json (1.5.4)
multi_json (1.7.7, 1.3.6)
po_to_json (0.0.7)
so , i dont know how can i go on !!
thanks a lot!!