[MacPorts] #15669: ruby-1.8.7 builds with wrong search path

MacPorts noreply at macports.org
Wed Jun 18 08:23:53 PDT 2008


#15669: ruby-1.8.7 builds with wrong search path
---------------------------------------------------+------------------------
 Reporter:  andreac at dollos.it                      |       Owner:  macports-tickets at lists.macosforge.org
     Type:  defect                                 |      Status:  new                                  
 Priority:  Normal                                 |   Milestone:  Port Bugs                            
Component:  ports                                  |     Version:  1.6.0                                
 Keywords:  ruby search_path rubygems exec_prefix  |  
---------------------------------------------------+------------------------
 I've upgraded from Ruby 1.8.6 to 1.8.7 and now I can't use RubyGems
 anymore. This is the error I get when running gem:

 {{{
 iMac:~ $ gem
 /opt/local/bin/gem:8:in `require': no such file to load -- rubygems
 (LoadError)
         from /opt/local/bin/gem:8
 }}}

 I've traced the issue to a wrong search path:

 {{{
 iMac:~ $ ruby -e 'puts $:'
 /opt/local/lib/ruby/site_ruby/1.8
 /opt/local/lib/ruby/site_ruby/1.8/i686-darwin8.11.1
 /opt/local/lib/ruby/site_ruby
 ${exec_prefix}/lib/ruby/vendor_ruby/1.8
 ${exec_prefix}/lib/ruby/vendor_ruby/1.8/i686-darwin8.11.1
 ${exec_prefix}/lib/ruby/vendor_ruby
 /opt/local/lib/ruby/1.8
 /opt/local/lib/ruby/1.8/i686-darwin8.11.1
 .
 }}}

 Instead of ${exec_prefix} I should have /opt/local.

-- 
Ticket URL: <http://trac.macports.org/ticket/15669>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list