Hi All,
I guess it could be useful, if anyone landed up on this issue. BTW I
don't know if its ever reported
I was doing a fresh installation of foreman in debian squeeze. But it
was failing during post-installation.
···
-------------------------------------------------------------------- 0 packages upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 0 B/9902 kB of archives. After unpacking 17.4 MB will be used. Selecting previously deselected package foreman. (Reading database ... 24102 files and directories currently installed.) Unpacking foreman (from .../foreman_1.1.1+debian1_amd64.deb) ... Setting up foreman (1.1.1+debian1) ... WARNING: abstract-1.0.0 has an invalid nil value for @cert_chain WARNING: builder-2.1.2 has an invalid nil value for @cert_chain dpkg: error processing foreman (--configure): subprocess installed post-installation script returned error exit status 5 configured to not write apport reports Errors were encountered while processing: foreman E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up foreman (1.1.1+debian1) ... dpkg: error processing foreman (--configure): subprocess installed post-installation script returned error exit status 5 Errors were encountered while processing: foreman --------------------------------------------------------------------After running it in debug mode, it looks that “make” command is not
installed, so after installing make and build-essential did resolved it.
But it took a lot more time to figure this out.
I would request foreman-dev to have a build-essential added as a
dependencies package when installing foreman, So it should get installed
by itself rather then someone figuring out by themself
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
extension.
/usr/bin/ruby1.8 extconf.rb
creating Makefile
make
sh: make: not found
Gem files will remain installed in
/usr/share/foreman/vendor/ruby/1.8/gems/json-1.7.7 for inspection.
Results logged to
/usr/share/foreman/vendor/ruby/1.8/gems/json-1.7.7/ext/json/ext/generator/gem_make.out
–
- Ashish