[SDRuby] Can't see installed gem

68 views
Skip to first unread message

Guyren G Howe

unread,
May 9, 2010, 5:40:51 AM5/9/10
to sdr...@googlegroups.com
Any idea how this happens?

$sudo gem install ruby-debug-ide19
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug-ide19:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb
*** extconf.rb failed ***

<snip>

extconf.rb:2:in `require': no such file to load -- ruby_core_source (LoadError)
from extconf.rb:2


$ sudo gem list

*** LOCAL GEMS ***

<snip>

ruby_core_source (0.1.4)

--
SD Ruby mailing list
sdr...@googlegroups.com
http://groups.google.com/group/sdruby

Gisborne

unread,
May 10, 2010, 4:13:50 AM5/10/10
to SD Ruby
On May 9, 2:40 am, Guyren G Howe <guy...@gmail.com> wrote:
> Any idea how this happens?
>
> $sudo gem install ruby-debug-ide19
> Building native extensions.  This could take a while...
> ERROR:  Error installing ruby-debug-ide19:
>         ERROR: Failed to build gem native extension.
>
> /usr/local/bin/ruby extconf.rb
> *** extconf.rb failed ***
>
> <snip>
>
> extconf.rb:2:in `require': no such file to load -- ruby_core_source (LoadError)
>         from extconf.rb:2
>
> $ sudo gem list
>
> *** LOCAL GEMS ***
>
> <snip>
>
> ruby_core_source (0.1.4)

This is depressing. I can't find any reference to this via Google,
either. This is on a new Mac: I install XCode, Ruby and then this.

No-one?

Matt Aimonetti

unread,
May 10, 2010, 4:23:54 AM5/10/10
to sdr...@googlegroups.com
Try installing ruby-debug19 first, I bet you the ide version doesn't declare its deps properly.

- Matt

Guyren G Howe

unread,
May 10, 2010, 5:06:38 AM5/10/10
to sdr...@googlegroups.com
On May 10, 2010, at 1:23 , Matt Aimonetti wrote:

> Try installing ruby-debug19 first, I bet you the ide version doesn't declare its deps properly.

Doesn't the trace show trying to install ruby-debug-ide19, only to be told it requires ruby_core_source?

This is in fact what I tried to do originally. It complained about wanting ruby_core_source, so I installed that, but it doesn't seem to have noticed.

Kevin Ball

unread,
May 10, 2010, 11:03:09 AM5/10/10
to guy...@gmail.com, sdr...@googlegroups.com
Hi Guyren,

  I don't know for certain, but I've seen problems with this in two types of situations before.  One is a 32bit vs 64bit mismatch, the other is a ruby versions mismatch.  My suspicion is in this case its probably the latter.  Do you have multiple versions of ruby and/or rubygems installed on your system?  Is it possible that you updated ruby after installing ruby_core_source?

  You mentioned that you installed ruby after installing xcode; What version of ruby did you install and how?  On my macbook pro it came with a 1.8.7 build already installed, so its possible that the ruby_core_source is built/installed for that version and you are now trying to build the new gem for the new version.

  -Kevin

Miguel Pinto

unread,
May 14, 2010, 7:37:06 PM5/14/10
to SD Ruby


On May 10, 10:06 am, Guyren G Howe <guy...@gmail.com> wrote:

> Doesn't the trace show trying to install ruby-debug-ide19, only to be told it requires ruby_core_source?
>
> This is in fact what I tried to do originally. It complained about wanting ruby_core_source, so I installed that, but it doesn't seem to have noticed.
>

Hi Guyren. I'm a total ruby/rails noob and have only been
experimenting with this for the last few days, just to see what all
the fuss is about, so I'm not exactly sure your problem is the same as
mine, but I was getting the exact same output. I had installed
ruby_core_source and it simply was ignored by the install of ruby-
debug19. I'm using Ubuntu 10.04 x64 btw.

I remembered that the other day when I first installed rails, at a
certain point some action required the GEM_HOME variable. I exported
it at the time (but didn't put it in /etc/profile or similar) and
whatever required it ran correctly.

Today I was getting the same output and it occurred to me that it
might have to do something with it. I exported the var as a non-root
user, did sudo install and nothing. Then I recalled that sudo'ing
wouldn't carry the var so I really needed a root shell and did this:

$ sudo su
# export GEM_HOME=/usr/lib/ruby1.9.1/gems/1.9.1/
# gem install ruby-debug19 (no sudo here!)
Building native extensions. This could take a while...

Building native extensions. This could take a while...
Successfully installed linecache19-0.5.11
Successfully installed ruby-debug-base19-0.11.23
Successfully installed ruby-debug19-0.11.6
3 gems installed
Installing ri documentation for linecache19-0.5.11...
Installing ri documentation for ruby-debug-base19-0.11.23...
Installing ri documentation for ruby-debug19-0.11.6...
Updating class cache with 3239 classes...
Installing RDoc documentation for linecache19-0.5.11...
Installing RDoc documentation for ruby-debug-base19-0.11.23...
Installing RDoc documentation for ruby-debug19-0.11.6...

And this is the output I got. I'll probably put GEM_HOME in /etc/
export so just sudo'ing will work.

A friend of mine that knows a lot more than I about ruby/rails tells
me this shouldn't require the GEM_HOME var so there's probably
something wrong with Ubuntu Ruby or one of these gems. Still, hope it
gets you through. :)
Reply all
Reply to author
Forward
0 new messages