cPanel Ruby Gems

Hi,

I am trying to install will_paginate along with other plugins/gems.

However it seems I have version 1.1.1 of Ruby Gems.

I try updating it by ‘gem install rubygems-update’ but I get an error,

[***@cluster1 ***]$ gem install rubygems-update
Bulk updating Gem source index for: http://gems.rubyforge.org/
/usr/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault
ruby 1.8.6 (2007-03-13) [i686-linux]

Aborted (core dumped)

Is this to do with my host?

I am unable to add gems, plugins without the upgrade.

Thanks, Rob

Also try: gem update --system

–Jeremy

On Thu, Jan 15, 2009 at 1:48 PM, Rob Pa
[email protected] wrote:

Bulk updating Gem source index for: http://gems.rubyforge.org/

Posted via http://www.ruby-forum.com/.


http://jeremymcanally.com/
http://entp.com/

My books:

http://humblelittlerubybook.com/ (FREE!)

Did you find a solution to this? I am experiencing the same problem.

Michael Mike wrote:

Did you find a solution to this? I am experiencing the same problem.

I contacted my host and got them to update my Ruby Gems.

However I now get this message;

:0:Warning: Gem::SourceIndex#search support for Regexp patterns is
deprecated

Cheers, Rob

Hi,

It does it whenever I type in a command, i.e. ruby script/generate
controller home

Thanks, Rob

On Feb 13, 9:49 am, Rob Pa [email protected] wrote:

Michael Mike wrote:

Did you find a solution to this? I am experiencing the same problem.

I contacted my host and got them to update my Ruby Gems.

However I now get this message;

:0:Warning: Gem::SourceIndex#search support for Regexp patterns is
deprecated

That’s odd… what command produces that warning? Something is calling
Gem.source_index.search(/some_regexp/, …) when it shouldn’t.

–Matt J.

Very odd - what version of rails is this under?

–Matt J.

I actually can list the gems sometimes from ssh. AND, I have been able
to install gems from there and they will even show up in cpanel but I
can’t access them in my apps for some reason.

In cpanel, if I try to Show Available Ruby Gem(s) I get:

“There was a problem fetching the list of available modules.”

If I try to search for a gem I get:

“No Modules matched your search terms.”

If I try to install a gem:
INFO: gem install -y is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Bulk updating Gem source index for: http://gems.rubyforge.org/
/usr/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault
ruby 1.8.7 (2008-06-20 patchlevel 22) [i686-linux]

If I try to update a gem:
Updating installed gems
Bulk updating Gem source index for: http://gems.rubyforge.org/
/usr/lib/ruby/1.8/yaml.rb:133: [BUG] Segmentation fault
ruby 1.8.7 (2008-06-20 patchlevel 22) [i686-linux]

Output from “gem list” via ssh:

*** REMOTE GEMS ***

Bulk updating Gem source index for: http://gems.rubyforge.org/
Terminated

Matt J. wrote:

Very odd - what version of rails is this under?

–Matt J.

Hi,

Im using;
Gems version 1.3.1
Rails version 2.0.2

Cheers, Rob

This looks like a host problem of some sort - the segmentation faults
are
a problem that older versions of Rubygems had, where they would try to
load the entire RubyForge gem listing into memory (and then fail). The
1.3.1
Rubygems now only tries to load 1000 items, so either cPanel’s hitting
an
old version, or your host’s memory limits are tiny. I’d recommend
opening
a ticket with your hosting provider to sort this out.

–Matt J.

Matt J. wrote:

This looks like a host problem of some sort - the segmentation faults
are
a problem that older versions of Rubygems had, where they would try to
load the entire RubyForge gem listing into memory (and then fail). The
1.3.1
Rubygems now only tries to load 1000 items, so either cPanel’s hitting
an
old version, or your host’s memory limits are tiny. I’d recommend
opening
a ticket with your hosting provider to sort this out.

–Matt J.

Thanks for the reply Matt,

What would you suggest me to raise with my host then? Is it ruby gems
that is out of date?

Should I suggest a whole upgrade of Ruby/Rails/Gems?

I am running;
Rails 2.0.2
Gems 1.3.1
Ruby 1.8.6

Thanks a lot,
Rob