Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 327835 - Error while installing ruby gem.
Summary: Error while installing ruby gem.
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 327839 327841 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-11 20:22 UTC by Michal Kawalec
Modified: 2011-01-13 07:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
output of "emerge --info" (emerge-info,4.07 KB, text/plain)
2010-09-20 07:14 UTC, Queria Sa-Tas
Details
output of "eix -IA ruby" (eix-ruby,6.22 KB, text/plain)
2010-09-20 07:16 UTC, Queria Sa-Tas
Details
list of installed gems "gem list --local" (gem-list-local,1.70 KB, text/plain)
2010-09-20 07:17 UTC, Queria Sa-Tas
Details
output of "gem install rubygame --verbose --backtrace" (gem-install-rubygame,34.59 KB, text/plain)
2010-09-20 07:31 UTC, Queria Sa-Tas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Kawalec 2010-07-11 20:22:04 UTC
When one tries to install a ruby gem using gem install gem_name, he always gets an error saying rake18: command not found (tested with sup, ncursesw).

To 'fix' it a following symlink suffices: ln -s /usr/bin/rake /usr/bin/rake18

NOTE: I installed the latest ruby from ~x86 branch.

Reproducible: Always

Steps to Reproduce:
1.Issue command gem install sup with ~x86 ruby


Actual Results:  
I got an output: rake18: command not found

Expected Results:  
Install a gem.
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2010-07-11 21:01:34 UTC
*** Bug 327841 has been marked as a duplicate of this bug. ***
Comment 2 Christian Ruppert (idl0r) gentoo-dev 2010-07-11 21:01:38 UTC
*** Bug 327839 has been marked as a duplicate of this bug. ***
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-07-12 23:57:51 UTC
I could choose between NEEDINFO and INVALID, but I'll go with the former since there is no emerge --info. We really don't support using the gem command to install gems...
Comment 4 Queria Sa-Tas 2010-09-20 07:11:19 UTC
I have a same problem. With gem ffi (dependency of rubygame).

I will try to attach some files with more information (emerge --info, install log ...).

I think that it is some kind of system misconfiguration etc, because i didn't found any trace of missing rake18 command inside directory of failing gem. So something has to say "use rake18 instead of rake" but it's wrong because there is no (missing?) rake18 on my system. If i created symlink /usr/bin/rake18 pointing to /usr/bin/rake as mentioned in this bug everything works ok.

-- OT question: --
Installing gems using 'gem install' is not supported?
Did you mean that you are not gems-hotline or that using gem install(...) is discouraged on gentoo, so ruby-gems should be limited to packages contained in portage?

What should i do if i want these gems (in this case rubygame and deps: ffi, nice-ffi, ruby-sdl-ffi). Is there easy way how to prepare ebuild for ruby gem?
Comment 5 Queria Sa-Tas 2010-09-20 07:14:51 UTC
Created attachment 248093 [details]
output of "emerge --info"
Comment 6 Queria Sa-Tas 2010-09-20 07:16:41 UTC
Created attachment 248095 [details]
output of "eix -IA ruby"
Comment 7 Queria Sa-Tas 2010-09-20 07:17:53 UTC
Created attachment 248096 [details]
list of installed gems "gem list --local"
Comment 8 Queria Sa-Tas 2010-09-20 07:31:15 UTC
Created attachment 248098 [details]
output of "gem install rubygame --verbose --backtrace"

I'm not sure if this will help much, but here is how this bug looks like. 
For purpose of creating this bugs attachment i invoked it with LANG=C LC_ALL=C prepended (result is same).

Content of at the end mentioned gem_make.out file is already contained in this attachment but here it is:

rake18 RUBYARCHDIR=/usr/local/lib/ruby/gems/1.8/gems/ffi-0.6.3/lib RUBYLIBDIR=/usr/local/lib/ruby/gems/1.8/gems/ffi-0.6.3/lib
sh: rake18: command not found