Douglas Tan
2006-Jul-31 01:43 UTC
[Rails] Unable to install Gems with RubyGems on Intel OSX with DarwinPorts
I followed Duncan Davidson''s Sandboxing Rails with Darwin Ports guide and everything went fine up till the part where I had to install gems using gem install. I would get this stacktrace: Attempting local installation of ''rake'' Local gem file not found: rake*.gem Attempting remote installation of ''rake'' /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:204:in `report_activate_error'': Could not find RubyGem sources (> 0.0.0) (Gem::LoadError) from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:141:in `activate'' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems .rb:37:in `require_gem_with_options'' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:31:in `require_gem'' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/remote_installer.rb:425:in `sources'' from /opt/local/lib/ruby/vendor_ruby/1.8/ rubygems/remote_installer.rb:435:in `source_index_hash'' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/remote_installer.rb:399:in ` install'' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_commands.rb:195:in `execute'' from /opt/local/lib/ruby/vendor_ruby/1.8/ rubygems/gem_commands.rb:153:in `execute'' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/command.rb:49:in `invoke'' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/cmd_manager.rb:94:in `process_args'' from /opt/local/lib/ruby/vendor_ruby/1.8/ rubygems/cmd_manager.rb:67:in `run'' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_runner.rb:13:in `run'' from /opt/local/bin/gem:17 Adding GEM_PATH and GEM_HOME variables to ~/.profile didnt work either: export PATH=/opt/local/bin:/opt/local/sbin:/opt/local/apache2/bin:$PATH export RUBYLIB=/opt/local/lib/ruby/site_ruby/1.8:/opt/local/lib/ruby/1.8 export GEM_PATH=/opt/local/lib/ruby/gems/1.8 export GEM_HOME=/opt/local/lib/ruby/gems/1.8 Darwin Ports is installing ports in /opt/local/ Is there something I''m missing here? -- Practical_Guile << http://practicalguile.com Clever::Tagline::Pending -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060731/33e1aac1/attachment-0001.html
jeanpierre@gmail.com
2006-Jul-31 04:32 UTC
[Rails] Unable to install Gems with RubyGems on Intel OSX with DarwinPorts
strange, can you quickly verify that the expected ruby and gem are being used: % which ruby && which gem and for good measure: % ruby -v && gem -v && port --version cheers, jean-pierre On 7/30/06, Douglas Tan <bianster@gmail.com> wrote:> I followed Duncan Davidson''s Sandboxing Rails with Darwin Ports guide and > everything went fine up till the part where I had to install gems using gem > install. I would get this stacktrace: > > Attempting local installation of ''rake'' > Local gem file not found: rake*.gem > Attempting remote installation of ''rake'' > /opt/local/lib/ruby/vendor > _ruby/1.8/rubygems.rb:204:in `report_activate_error'': Could not find RubyGem > sources (> 0.0.0) (Gem::LoadError) > from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:141:in > `activate''[...]
Douglas Tan
2006-Jul-31 12:56 UTC
[Rails] Unable to install Gems with RubyGems on Intel OSX with DarwinPorts
This is the output I got: Welcome to Darwin! douglas-computer:~ douglas$ which ruby /opt/local/bin/ruby douglas-computer:~ douglas$ which gem /opt/local/bin/gem douglas-computer:~ douglas$ port --version Warning: (please use "port version" to get version information) Version: 1.211 douglas-computer:~ douglas$ ruby -v ruby 1.8.4 (2005-12-24) [i686-darwin8.7.1] douglas-computer:~ douglas$ gem -v 0.8.11 On 7/31/06, jeanpierre@gmail.com <jeanpierre@gmail.com> wrote:> > strange, can you quickly verify that the expected ruby and gem are being > used: > % which ruby && which gem > and for good measure: > % ruby -v && gem -v && port --version > > cheers, > jean-pierre > > On 7/30/06, Douglas Tan <bianster@gmail.com> wrote: > > I followed Duncan Davidson''s Sandboxing Rails with Darwin Ports guide > and > > everything went fine up till the part where I had to install gems using > gem > > install. I would get this stacktrace: > > > > Attempting local installation of ''rake'' > > Local gem file not found: rake*.gem > > Attempting remote installation of ''rake'' > > /opt/local/lib/ruby/vendor > > _ruby/1.8/rubygems.rb:204:in `report_activate_error'': Could not find > RubyGem > > sources (> 0.0.0) (Gem::LoadError) > > from > > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:141:in > > `activate'' > > [...] > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Practical_Guile << http://practicalguile.com Clever::Tagline::Pending -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060731/f1355836/attachment.html
jeanpierre@gmail.com
2006-Jul-31 16:01 UTC
[Rails] Unable to install Gems with RubyGems on Intel OSX with DarwinPorts
On 7/31/06, Douglas Tan <bianster@gmail.com> wrote:> This is the output I got: > > Welcome to Darwin! > douglas-computer:~ douglas$ which ruby > /opt/local/bin/ruby > douglas-computer:~ douglas$ which gem > /opt/local/bin/gem > douglas-computer:~ douglas$ port --version > Warning: (please use "port version" to get version information) > Version: 1.211 > douglas-computer:~ douglas$ ruby -v > ruby 1.8.4 (2005-12-24) [i686-darwin8.7.1] > douglas-computer:~ douglas$ gem -v > 0.8.11those are the expected results, how about this: % gem environment if you explicitly tell gem to install from remote source, what happens? % sudo gem install rake --remote last shot in the dark, does an update help at all? % sudo gem update cheers, jean-pierre
Douglas Tan
2006-Aug-01 01:44 UTC
[Rails] Unable to install Gems with RubyGems on Intel OSX with DarwinPorts
solved the problem after following the steps to manually install the sources gem in this thread: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/205011 On 8/1/06, jeanpierre@gmail.com <jeanpierre@gmail.com> wrote:> > On 7/31/06, Douglas Tan <bianster@gmail.com> wrote: > > This is the output I got: > > > > Welcome to Darwin! > > douglas-computer:~ douglas$ which ruby > > /opt/local/bin/ruby > > douglas-computer:~ douglas$ which gem > > /opt/local/bin/gem > > douglas-computer:~ douglas$ port --version > > Warning: (please use "port version" to get version information) > > Version: 1.211 > > douglas-computer:~ douglas$ ruby -v > > ruby 1.8.4 (2005-12-24) [i686-darwin8.7.1] > > douglas-computer:~ douglas$ gem -v > > 0.8.11 > > those are the expected results, how about this: > % gem environment > > if you explicitly tell gem to install from remote source, what happens? > % sudo gem install rake --remote > > last shot in the dark, does an update help at all? > % sudo gem update > > cheers, > jean-pierre > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Practical_Guile << http://practicalguile.com Clever::Tagline::Pending -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060801/ae392612/attachment-0001.html
Jose Hales-Garcia
2006-Aug-01 02:37 UTC
[Rails] Re: Re: Unable to install Gems with RubyGems on Intel OSX wi
Douglas Tan wrote:> solved the problem after following the steps to manually install the > sources > gem in this thread: > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/205011There also another link with excellent instructions on installing the Rails/Lighttpd system... http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger -- Posted via http://www.ruby-forum.com/.
jeanpierre@gmail.com
2006-Aug-01 15:32 UTC
[Rails] Unable to install Gems with RubyGems on Intel OSX with DarwinPorts
On 7/31/06, Douglas Tan <bianster@gmail.com> wrote:> solved the problem after following the steps to manually install the sources > gem in this thread: > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/205011i am glad you got it sorted out. for what it is worth, i just installed darwinports 1.3.1 (released yesterday) on a fresh install of 10.4.7 on a macbook pro and didn''t run into the problem you mentioned above when running though jdd''s sandboxing instructions. perhaps there was an issue with the gems port that is now resolved... cheers, jean-pierre