Project

General

Profile

Bug #2771

Updated by Benjamin Papillon over 10 years ago

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.

Back