Ruby Forum Ruby on Rails > activerecord 2.0.1 gem

Posted by Ray Case (rags)
on 07.12.2007 19:46
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
Posted by Jeff Coleman (progressions)
on 07.12.2007 19:53
(Received via mailing list)
I'm getting the same result here.
Posted by dondani@gmail.com (Guest)
on 09.12.2007 03:05
(Received via mailing list)
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, "progressi...@gmail.com" <progressi...@gmail.com>
Posted by Ray Case (rags)
on 10.12.2007 18:28
dondani@gmail.com 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, "progressi...@gmail.com" <progressi...@gmail.com>

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

Ray
Posted by Ray Case (rags)
on 10.12.2007 19:17
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 Case wrote:
> dondani@gmail.com 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, "progressi...@gmail.com" <progressi...@gmail.com>
> 
> Yes,  that fixed it - it updates cleanly!
> Thanks for the help!!
> 
> Ray
Posted by Ray Case (rags)
on 10.12.2007 19:53
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 Case 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 Case wrote:
>> dondani@gmail.com 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, "progressi...@gmail.com" <progressi...@gmail.com>
>> 
>> Yes,  that fixed it - it updates cleanly!
>> Thanks for the help!!
>> 
>> Ray
Posted by Onno van der Straaten (Guest)
on 12.12.2007 10:11
(Received via mailing list)
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....
Posted by Onno van der Straaten (Guest)
on 12.12.2007 11:05
(Received via mailing list)
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 
http://gems.rubyforge.org/gems/actionmailer-2.0.1.gem