Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#15669 closed defect (fixed)

ruby-1.8.7 builds with wrong search path

Reported by: andreac@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: ruby search_path rubygems exec_prefix Cc: pguyot (Paul Guyot), openmaintainer@…
Port:

Description

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.

Change History (2)

comment:1 Changed 16 years ago by pguyot (Paul Guyot)

Resolution: fixed
Status: newclosed

Fixed in r37673. Thanks for the report!

comment:2 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.