#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: | new → closed |
Note: See
TracTickets for help on using
tickets.
Fixed in r37673. Thanks for the report!