Issue #93 resolved

Is the rake-compiler gem needed for runtime?

eolamey avatareolamey created an issue


I am packaging pg as a RPM for RHEL (and derivatives) and I wanted to add the latest 0.12.0 release. I can see that rake-compiler has been added as a runtime dependency. Is this really needed, or should it only be a development one? If rake-compiler is really needed at runtime, does it mean that a C compiler is also needed?

Thank you.

Comments (5)

  1. eolamey

    I just realized this is a stupid question :) It actually only makes sense for packagers such as myself. What I want to do is distribute a RPM with the gem already compiled, so I need to have rake-compiler on the machine that produces the RPM, but my users won't. I need to remove the runtime dependency for them though, which might be a problem...

  2. Michael Granger

    Exactly right.

    I'm not sure what the resolution is for packagers like yourself, but people who wish to install the gem from source will definitely need rake-compiler installed before they do so.

  3. eolamey


    Thank you for your answer, and sorry for taking up your time with silly tickets. I solved the issue by packaging rake-compiler and added it as a build dependency for the RPM itself, but removed the dependency from the gem specification, once installed (a bit hacky, but I don't see any other solution). If you ever need it, RPM packages can be found at

  4. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.