Project

General

Profile

Actions

Bug #2771

closed

Debian packages missing ruby-dev dep

Added by Kal McFate almost 11 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When installing foreman on debian I was getting the following error:

Setting up foreman (1.2.0+debian2) ...
D020000: trigproc_activate_packageprocessing pkg=foreman
D000002: fork/exec /var/lib/dpkg/info/foreman.postinst ( configure )
dpkg: error processing foreman (--configure):
subprocess installed post-installation script returned error exit status 5

When running /var/lib/dpkg/info/foreman.postinst manually in DEBUG it gave:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1

Gem files will remain installed in /usr/share/foreman/vendor/ruby/1.8/gems/json-1.8.0 for inspection.
Results logged to /usr/share/foreman/vendor/ruby/1.8/gems/json-1.8.0/ext/json/ext/generator/gem_make.out

Installing ruby-dev resolved the problem. This should be included as a package dependency.

Actions

Also available in: Atom PDF