こんにちは、ruby gem json をインストールしようとしましたが、次のエラーが表示されます
`ネイティブ拡張機能の構築。これには時間がかかる場合があります... エラー: json のインストール中にエラーが発生しました: エラー: gem ネイティブ拡張機能のビルドに失敗しました。
mkmf.rb は /usr/share/include/ruby.h で ruby のヘッダー ファイルを見つけることができません
Gem ファイルは、検査のために /home/jenkins/.gem/ruby/gems/json-2.0.2 にインストールされたままになります。結果は /home/jenkins/.gem/ruby/gems/json-2.0.2/ext/json/ext/generator/gem_make.out` に記録されます
同様の投稿を調べたところ、ruby-devel をインストールするように指示されました。しかし、それは私に苦労も与えました。
yum install ruby-devel
Loaded plugins: addreleaserel, priorities, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package ruby-devel.x86_64 0:2.0.0.598-25.el7_1 will be installed
--> Processing Dependency: ruby(x86-64) = 2.0.0.598-25.el7_1 for package: ruby-devel-2.0.0.598-25.el7_1.x86_64
--> Finished Dependency Resolution
Error: Package: ruby-devel-2.0.0.598-25.el7_1.x86_64 (RHN-rhel-x86_64-server-optional-7-1-locked)
Requires: ruby(x86-64) = 2.0.0.598-25.el7_1
Installed: ruby-2.0.0.648-29.el7.x86_64 (@RHN-rhel-x86_64-server-7-latest)
ruby(x86-64) = 2.0.0.648-29.el7
Available: ruby-2.0.0.353-20.el7.x86_64 (RHN-rhel-x86_64-server-7)
ruby(x86-64) = 2.0.0.353-20.el7
Available: ruby-2.0.0.353-22.el7_0.x86_64 (RHN-rhel-x86_64-server-7)
ruby(x86-64) = 2.0.0.353-22.el7_0
Available: ruby-2.0.0.598-24.el7.x86_64 (RHN-rhel-x86_64-server-7)
ruby(x86-64) = 2.0.0.598-24.el7
Available: ruby-2.0.0.598-25.el7_1.x86_64 (RHN-rhel-x86_64-server-7-1-locked)
ruby(x86-64) = 2.0.0.598-25.el7_1
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
yum を使用して ruby-devel をインストールする手順を教えてください。