Activerecord 2.0.1 gem

I have tried to install activerecord 2.0.1 both through gem update and
by manually downloading it and doing gem install. They both fail with

MANUAL:

C:\DRC\ruby>gem install activerecord-2.0.1
ERROR: Error installing gem activerecord-2.0.1[.gem]: buffer error

REMOTE:
R:\workzone\dwell-aware\trunk>gem update --source
http://gems.rubyonrails.com
Updating installed gems…
Attempting remote update of activerecord
ERROR: While executing gem … (Zlib::BufError)
buffer error

I believe the .gem file to be corrupt!

Thanks,
Rags

I’m getting the same result here.

Try this command:

gem update --system

It will update your RubyGems to 0.9.5, and you will be able to install
Rails 2.0 without problem.

On Dec 7, 7:53 pm, “[email protected][email protected]

Actually, I will change that to a conditional fix.

gem update rails ‘worked’, but did not update activerecord,
activesource, rake or rails.

I actually had to do gem install rails to get to a working version of
2.0.1

Ray

Ray C. wrote:

[email protected] wrote:

Try this command:

gem update --system

It will update your RubyGems to 0.9.5, and you will be able to install
Rails 2.0 without problem.

On Dec 7, 7:53 pm, “[email protected][email protected]

Yes, that fixed it - it updates cleanly!
Thanks for the help!!

Ray

[email protected] wrote:

Try this command:

gem update --system

It will update your RubyGems to 0.9.5, and you will be able to install
Rails 2.0 without problem.

On Dec 7, 7:53 pm, “[email protected][email protected]

Yes, that fixed it - it updates cleanly!
Thanks for the help!!

Ray

Thanks to Jesper Rønn-jensen for a very clear explanation of all the
things that can and will go wrong if you try to get on the bleeding edge
of rails development. (Including breaking your mongrel server!)

Please see his blog entry:
http://justaddwater.dk/2007/12/09/rails-20-gem-install-windows-mongrel-trouble/

Ray C. wrote:

Actually, I will change that to a conditional fix.

gem update rails ‘worked’, but did not update activerecord,
activesource, rake or rails.

I actually had to do gem install rails to get to a working version of
2.0.1

Ray

Ray C. wrote:

[email protected] wrote:

Try this command:

gem update --system

It will update your RubyGems to 0.9.5, and you will be able to install
Rails 2.0 without problem.

On Dec 7, 7:53 pm, “[email protected][email protected]

Yes, that fixed it - it updates cleanly!
Thanks for the help!!

Ray

wow, gem update system causes a lot of vague (error) messages and then
ends with:

lib/rubygems/local_remote_options.rb:89:30: ‘:’ not followed by
identified or op
erator
As of RubyGems 0.8.0, library stubs are no longer needed.
Searching $LOAD_PATH for stubs to optionally delete (may take a
while)…
…done.
No library stubs found.
RubyGems system software updated
The filename, directory name, or volume label syntax is incorrect.

I’m not confident that I’m fixing a problem now…

gem update rails didn’t work for me…

gem list shows the following:
action_profiler (1.0.0)
actionmailer (1.3.4, 1.3.2, 1.2.5)
actionpack (1.13.4, 1.13.2, 1.12.5)
actionwebservice (1.2.4, 1.2.2, 1.1.6)
activerecord (1.15.4, 1.15.2, 1.14.4)
activesupport (2.0.1, 1.4.3, 1.4.1, 1.3.1)

so only activesupport was updated?

Trying gem install rails again gives me another error message

gem install rails
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
OpenURI::HTTPError: 404 Not Found reading
http://gems.rubyforge.org/gems/act
ionmailer-2.0.1.gem

I am installing Rails on a Linux server and upgrading my development
client (Windows XP) to Rails 2.0.

It is quite shocking to see how many issues I have encountered and
many workaround I have had to apply today.

Examples below:

For gem install rails:

  1. ERROR: While executing gem … (Gem::GemNotFoundException)
    Could not find rails (> 0) in any repository
  2. undefined method `[]=’ for #Gem::ConfigFile:0x84691d4
  3. ERROR: While executing gem … (Zlib::BufError) buffer error
  4. ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
    OpenURI::HTTPError: 404 Not Found reading
    RubyGems.org | your community gem host