Red Hat Bugzilla – Bug 1000794
ruby-devel should have gcc as dependency
Last modified: 2013-08-27 02:57:01 EDT
Description of problem:
Steps to Reproduce:
whoops, I hit enter, but didn't thought it will submit it immediately... and seems I can't delete it either.
anyway on freshly installed Fedora 19
when I install `ruby` and `ruby-devel`, I still don't have compiler such as gcc
so when I try to update gems with `gem update` it fails to compile native extensions because I don't have toolchain.
I can't imagine use of ruby-devel without compiler so I think it should be as dependency.
here's how it looked like after I typed `gem update`
Fetching: json-1.8.0.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DJSON_GENERATOR -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic -fPIC -O3 -Wall -O0 -ggdb -m64 -o generator.o -c generator.c
make: gcc: Command not found
make: *** [generator.o] Error 127
Gem files will remain installed in /usr/local/share/gems/gems/json-1.8.0 for inspection.
Results logged to /usr/local/share/gems/gems/json-1.8.0/ext/json/ext/generator/gem_make.out
Than you for your suggestion. Although I agree that for the use case you describe, it would make much sense, the -devel package is generally not bound to gcc. You can install the package independently, for example to use it with different compiler, to read the header files, to package ruby library, to query ruby build options and in other languages also for different needs. So as long as RPM is not expressive enough to have it as *optional* dependency, I have to reject it.
Ok, fair enough. But doesn't yum have something as "suggested packages"? I think I've seen that somewhere, maybe on Ubuntu...
Not sure about Ubuntu, but nothing like this in Fedora :/ The only remotely similar thing in Fedora is comps .
But generally, the idea is that you should not need compiler on your system, since Fedora provides you precompiled version of gem.
Tell that to Gems :D Lot of gems require compilation.
And yeah, it's apt-get (Ubuntu/Debian, etc)  with such feature, I think would be good if yum would have something similar. Or maybe I should learn how to properly use yum groupinstall...
(In reply to Dāvis from comment #6)
> Tell that to Gems :D Lot of gems require compilation.
Lot of the gems which needs compilation is already in Fedora. You gave example with JSON and we have rubygem-json in Fedora. If that is too old version, you might want to check with its maintainer (probably via Bugzilla) if update is feasible.
> I think would be good if yum would have something similar.
You can't imagine how happy I would be, if that happens, but that is surprisingly low priority for RPM/YUM devs :/