Fixed                
                
            
            
                
                    Created: May 29, 2014   
                                            Updated: Dec 3, 2018                                    
                
                    
                                    
             
         
        
            
            
                                    
                        Resolved Date: Aug 20, 2014                    
                
                                    
                        Previous ID: LIN5-18826                    
                
                                    
                        Found In Version: 6.0                    
                
                                    
                        Fix Version: 6.0.0.11                    
                
                                        
                            Severity: Standard                        
                    
                                        
                            Applicable for: Wind River Linux 6                        
                    
                                    
                        Component/s: Userspace                    
                
                
                             
         
                        
                If you build ruby-native and then ruby (non -native) certain files, 
such as : tmp/sysroots/x86_64-linux/usr/lib/ruby/x86_64-linux/rbconfig.rb
Will be updated with incorrect values (such as the path of ruby as expected on the target, not the host).
This results in errors such as:
| ERROR:  Error installing yajl-ruby-1.2.0.gem:
|       ERROR: Failed to build gem native extension.
| 
|         /usr/bin/ruby extconf.rb
| sh: 1: /usr/bin/ruby: not found
When you attempt for example to build a gem using 'gem install'
                        
                Build ruby-native again before attempting to build the gem
bitbake ruby-native -C compile
bitbake yajl-ruby -C install
                        
                Attempt to build a gem that has native extensions. You can do this for example by configuring an OpenStack compute  build
wrlinux-x/wrlinux/configure --enable-board=intel-xeon-core \
--enable-addons=wr-ovp,wr-ovp-openstack \
--enable-rootfs=ovp-openstack-compute \
--with-package=chef
make bbs
bitbake chef
bitbake ruby -C compile
bitbake yajl-ruby -C install