Wednesday, June 5, 2013

gem install json "ERROR: Failed to build gem native extension."

[root@Redmine config]# yum install ruby-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.einstein.yu.edu
 * extras: mirrors.einstein.yu.edu
 * updates: centos.aol.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ruby-devel.i686 0:1.8.7.352-10.el6_4 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================
 Package                   Arch                Version                            Repository              Size
===============================================================================================================
Installing:
 ruby-devel                i686                1.8.7.352-10.el6_4                 updates                313 k

Transaction Summary
===============================================================================================================
Install       1 Package(s)

Total download size: 313 k
Installed size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
ruby-devel-1.8.7.352-10.el6_4.i686.rpm                                                  | 313 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : ruby-devel-1.8.7.352-10.el6_4.i686                                                          1/1
  Verifying  : ruby-devel-1.8.7.352-10.el6_4.i686                                                          1/1

Installed:
  ruby-devel.i686 0:1.8.7.352-10.el6_4

Complete!
[root@Redmine config]# gem install json -v '1.8.0'
Building native extensions.  This could take a while...
Successfully installed json-1.8.0
Installing ri documentation for json-1.8.0
/usr/lib/ruby/1.8/rdoc/rdoc.rb:280: warning: conflicting chdir during another chdir block
/usr/lib/ruby/1.8/rdoc/rdoc.rb:287: warning: conflicting chdir during another chdir block
Done installing documentation for json after 1 seconds
1 gem installed
[root@Redmine config]#

No comments:

Post a Comment