centos - How to control ruby-devel presence in a Software Collections environment -
i'm trying build ruby app on centos 6.6 machine. there different ruby stacks installed through software collections. please not not have root on machine, , privileges limited, particularly, not include package installation.
native extensions not build. seems ruby-devel
missing, told admin correctly installed both stacks:
dnf install rh-ruby22-ruby-devel.x86_64 ruby193-ruby-devel.x86_64 -y
here problem:
bob@server ~> scl enable rh-ruby22 bash bash-4.1$ ruby -v ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux-gnu] bash-4.1$ gem install json building native extensions. take while... error: error installing json: error: failed build gem native extension. /opt/rh/rh-ruby22/root/usr/bin/ruby -r ./siteconf20150625-17536-saskmd.rb extconf.rb mkmf.rb can't find header files ruby @ /opt/rh/rh-ruby22/root/usr/share/include/ruby.h extconf failed, exit code 1 gem files remain installed in ~/.gem/ruby/gems/json-1.8.3 inspection. results logged ~/.gem/ruby/extensions/x86_64-linux/json-1.8.3/gem_make.out
how can check if ruby-devel
(more precisely, rh-ruby22-ruby-devel.x86_64
) installed?
what next place search if it's working intended?
this because don't have devel libraries installed sclo ruby version.
sudo yum install rh-ruby22-ruby-devel
Comments
Post a Comment