Forum: Ruby on Rails cPanel Ruby Gems

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.
C00218c047a27287fd91a3251976c425?d=identicon&s=25 Rob P. (robmfc)
on 2009-01-15 20:48
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
6d3c187a8b3ef53b08e3e7e8572c4fea?d=identicon&s=25 Jeremy McAnally (Guest)
on 2009-01-16 01:08
(Received via mailing list)
Also try: gem update --system

--Jeremy

On Thu, Jan 15, 2009 at 1:48 PM, Rob Pa
<rails-mailing-list@andreas-s.net> wrote:
> Bulk updating Gem source index for: http://gems.rubyforge.org/
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>



--
http://jeremymcanally.com/
http://entp.com/
http://omgbloglol.com

My books:
http://manning.com/mcanally/
http://humblelittlerubybook.com/ (FREE!)
B5061b7cee6c9de9447a80874b5ed23f?d=identicon&s=25 Michael Mike (mikefrederick)
on 2009-02-12 16:06
Did you find a solution to this? I am experiencing the same problem.
C00218c047a27287fd91a3251976c425?d=identicon&s=25 Rob P. (robmfc)
on 2009-02-13 15:49
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
6883e5ef03484d4fcef507d7b4f1d243?d=identicon&s=25 Matt Jones (Guest)
on 2009-02-14 22:22
(Received via mailing list)
On Feb 13, 9:49 am, Rob Pa <rails-mailing-l...@andreas-s.net> 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 Jones
C00218c047a27287fd91a3251976c425?d=identicon&s=25 Rob P. (robmfc)
on 2009-02-15 20:15
Hi,

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

Thanks, Rob
6883e5ef03484d4fcef507d7b4f1d243?d=identicon&s=25 Matt Jones (Guest)
on 2009-02-15 21:50
(Received via mailing list)
Very odd - what version of rails is this under?

--Matt Jones
B5061b7cee6c9de9447a80874b5ed23f?d=identicon&s=25 Michael Mike (mikefrederick)
on 2009-02-15 22:01
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
B5061b7cee6c9de9447a80874b5ed23f?d=identicon&s=25 Michael Mike (mikefrederick)
on 2009-02-15 22:05
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.
C00218c047a27287fd91a3251976c425?d=identicon&s=25 Rob P. (robmfc)
on 2009-02-16 00:38
Matt Jones wrote:
> Very odd - what version of rails is this under?
>
> --Matt Jones

Hi,

Im using;
Gems version 1.3.1
Rails version 2.0.2

Cheers, Rob
6883e5ef03484d4fcef507d7b4f1d243?d=identicon&s=25 Matt Jones (Guest)
on 2009-02-16 10:52
(Received via mailing list)
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 Jones
C00218c047a27287fd91a3251976c425?d=identicon&s=25 Rob P. (robmfc)
on 2009-06-08 17:31
Matt Jones 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 Jones

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
This topic is locked and can not be replied to.