こんにちは私はruby gem jsonをインストールしようとしますが、それは次のエラーを返しますyumを使用してruby-develをインストールする際にエラーが発生しましたか?
`ビルディングネイティブ拡張。これはしばらく時間がかかります... エラー:jsonのインストール中にエラーが発生しました。 エラー:gemネイティブ拡張をビルドできませんでした。
mkmf.rbは
宝石ファイルが/home/jenkins/.gem/ruby/gems/json-にインストールされたままになります/usr/share/include/ruby.hでルビーのためのヘッダファイルを見つけることができません検査のために2.0.2。 結果は/ home/jenkins/.gem/ruby/gems/json-2.0.2/ext/json/ext/generator/gem_make.out`に記録されます。
私は同様の投稿を検索してruby-開発しかし、それはまた私に苦労しました。
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を使用してルビー-develのをインストールする手順をお勧めすることはできますか?してください
yaaそれは良い説明だったし、私のために働いてくれてありがとう – naresh