Unable to install eventmachine 1.0.3 dependency - gitlab installation fails
Created by: dmsimard
When attempting to install the current master branch, I am getting the following error:
Installing eventmachine (1.0.3) sh: 1: Syntax error: Unterminated quoted string
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb --with-cflags="-O2 -pipe -march=native -w
Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/eventmachine-1.0.3 for inspection.
Results logged to /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/eventmachine-1.0.3/ext/gem_make.out
An error occurred while installing eventmachine (1.0.3), and Bundler cannot continue.
Indeed, in .bundle/config, I can see the following:
---
BUNDLE_BUILD__EVENTMACHINE: --with-cflags="-O2 -pipe -march=native -w
BUNDLE_BUILD__THIN: --with-cflags="-O2 -pipe -march=native -w
BUNDLE_FROZEN: '1'
BUNDLE_PATH: vendor/bundle
BUNDLE_WITHOUT: development:test:postgres
BUNDLE_DISABLE_SHARED_GEMS: '1'
There are no matching double quotes end the string to the BUNDLE_BUILD lines.
I was not able to reproduce this error in 5.2 - eventmachine is not a dependancy to 5.2. This error is obtained both from upgrading 5.2 to master as well as a fresh install of master.
Using Ubuntu 12.04. Note: The package ruby 1.9.3 is used (apt-get install ruby1.9.3), even though the ruby binary file name is ruby1.9.1:
# /usr/bin/ruby1.9.1 -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]
I have found this bug in bundler which may be related: https://github.com/bundler/bundler/issues/2469