[Rails] MacOS + darwinport + rubygems

Mat Schaffer schapht at gmail.com
Fri Aug 4 12:37:12 GMT 2006


On Aug 4, 2006, at 6:07 AM, Jean-Etienne Durand wrote:

> Hi,
>
> Installing ruby (following wiki recommandations) with darwinport, I  
> have
> the following error when I want to install rails gem:
>
> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require': no such file to load -- sources (LoadError)
>         from
> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
>         from
> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/remote_installer.rb: 
> 462:in
> `sources'
>         from
> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/remote_installer.rb: 
> 472:in
> `source_index_hash'
>         from
> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/remote_installer.rb: 
> 436:in
> `install'
>         from
> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_commands.rb:258:in
> `execute'
>         from
> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_commands.rb:220:in
> `execute'
>         from
> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/command.rb:69:in `invoke'
>         from
> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/cmd_manager.rb:117:in
> `process_args'
>         from
> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/cmd_manager.rb:88:in  
> `run'
>         from
> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_runner.rb:29:in `run'
>         from /opt/local/bin/gem:23
>
> Any idea?
>
> Thank you


Yeah, my buddy just ran into this.  I think the build process for  
rubygems 0.8.11 is broken in darwin ports.  Go into /opt/local and do  
'find . -name setup.rb' look for the rubygems' setup.rb, and run that  
as root.  Refer to this page for install instructions: http:// 
www.rubygems.org/read/chapter/3#page13

If that still doesn't work, just install rubygems from source using -- 
prefix=/opt/local and that should work fine too.
-Mat


More information about the Rails mailing list