Forum: Ruby on Rails rubygems broken

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Eb7e397a43c04bc34321d579c5e15906?d=identicon&s=25 expilo (Guest)
on 2008-11-24 15:16
(Received via mailing list)
Hello,

I have been trying for the last three days on two different debian
linux platforms x386 and amd64 using different rubygems versions
1.1.1, 1.2.0 and 1.3.1 to update gems on my system. No way! It only
says it's  doing a bulk source update, eats all memory and does
nothing. The longest I was waiting was 10 hours. Surely that's enough
to update rails installation with dependencies and a couple of other
gems  on a 1Mb cable line? It seems I'll have to learn to live with
manual gem downloads. So my question is: how do you live without
rubygems when you have to? Has anyone any shell scripts that use awk
or sed, tar and wget? I'm sure they would do a better job. I'm close
to start writing one but maybe someone already got something like
this.

Many thanks for any hints

Piotr
4dd8ed31b9effe2ee868e4cf78495c98?d=identicon&s=25 James Mitchell (Guest)
on 2008-11-24 15:23
(Received via mailing list)
Are you sure it's not your firewall settings?

On 11/24/08, expilo <kopszak@gmail.com> wrote:
> manual gem downloads. So my question is: how do you live without
> >
>


--

--
James Mitchell
247cd3d37084a3d6794076207bd9fbd7?d=identicon&s=25 Bobnation (Guest)
on 2008-11-24 16:06
(Received via mailing list)
The only time I've run into anything similar is when my internet has
either went *kaput* or a firewall setting at work stopped me from
downloading any gems automatically. I would maybe check there first.
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2008-11-24 16:16
(Received via mailing list)
You can download the .gem files yourself and install them. Since
rubygems 1.2 i've never had any problems, but prior versions were a
bit problematic (especially on machines with not so much memory)

Fred
Eb7e397a43c04bc34321d579c5e15906?d=identicon&s=25 expilo (Guest)
on 2008-11-24 18:33
(Received via mailing list)
I got 512 MB. Maybe that's too little? I don't think it's the internet
problem. I can download http://gems.rubyforge.org/yaml (27 M) with
wget in 3 min 46 s.

Piotr
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2008-11-24 18:42
(Received via mailing list)
On 24 Nov 2008, at 17:33, expilo wrote:

>
> I got 512 MB. Maybe that's too little? I don't think it's the internet
> problem. I can download http://gems.rubyforge.org/yaml (27 M) with
> wget in 3 min 46 s.
>
You might well be under pressure with that much ram. I've never had
that problem since rubygems 1.2

Fred
Eb7e397a43c04bc34321d579c5e15906?d=identicon&s=25 expilo (Guest)
on 2008-11-24 18:55
(Received via mailing list)
So what  RAM size would you recommend? If 512MB is too little another
tool is really needed, at least for those on low memory VPSs.

Piotr
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2008-11-24 19:01
(Received via mailing list)
On 24 Nov 2008, at 17:54, expilo wrote:

>
> So what  RAM size would you recommend? If 512MB is too little another
> tool is really needed, at least for those on low memory VPSs.
>

I don't honestly know, but what I was trying to say is that that
problem has gone away since rubygems 1.2. If you've still got that
problem then it's something else
Eb7e397a43c04bc34321d579c5e15906?d=identicon&s=25 expilo (Guest)
on 2008-11-24 22:28
(Received via mailing list)
What on earth could it be? Ruby version? Mine is 1.8.7 (2008-08-11
patchlevel 72) [x86_64-linux] I tried again latest (1.3.1) version and
it behaves  the same. It slowly eats memory until about 80% and then
starts swapping heavily. Maybe that's simply the way it's supposed to
be nowadays and one can only add more RAM? Can you say how much RAM
you got?

Piotr
6ef8cb7cd7cd58077f0b57e4fa49a969?d=identicon&s=25 Brian Hogan (Guest)
on 2008-11-24 22:35
(Received via mailing list)
It's a problem with your particular version of Rubygems. I just worked
around it here. The amount of RAM you need for the bulk update depends
on the amount of Gems you have installed.

The easy solution is to upgrade to 1.3.0 or higher where bulk updating
no longer happens.

wget
http://rubyforge.org/frs/download.php/43984/rubyge...
sudo gem install rubygems-update-1.3.0.gem
sudo update_rubygems

Then to make sure you have the latest...

sudo gem update --system
Eb7e397a43c04bc34321d579c5e15906?d=identicon&s=25 expilo (Guest)
on 2008-11-24 23:26
(Received via mailing list)
Oh! What joy! It does work indeed! Many thanks for the solution.

P.
This topic is locked and can not be replied to.