I'm trying to install Gitorious on Debian Wheezy. gitorious uses bundler for automated installation.
When I run "bundle install" (not only when installing gitorious, also redmine for example) I sometimes get errors like:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
~/.rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling houdini_js_e.c
compiling houdini_xml_e.c
compiling houdini_html_u.c
compiling houdini_html_e.c
compiling houdini_uri_u.c
compiling escape_utils.c
escape_utils.c: In function ‘rb_eu_escape_html_as_html_safe’:
escape_utils.c:126:2: error: assignment of read-only member ‘klass’
make: *** [escape_utils.o] Error 1
make failed, exit code 2
Gem files will remain installed in ~/.rvm/gems/ruby-2.1.0/gems/escape_utils-0.3.2 for inspection.
Results logged to ~/.rvm/gems/ruby-2.1.0/extensions/x86_64-linux/2.1.0/escape_utils-0.3.2/gem_make.out
An error occurred while installing escape_utils (0.3.2), and Bundler cannot continue.
Make sure that `gem install escape_utils -v '0.3.2'` succeeds before bundling.
In this specific example I was able to fix the build error by changing the sources in the given directory. (I copied the up-to-date source from github, which fixes the issue https://github.com/brianmario/escape_utils/issues/42 ).
I then executed "make && make install && ~/.rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb" successfully.
How can I continue my "bundle install" after fixing the gem? When I re-execute "bundle install" the gem is simply refetched and recompiled, with the same error of course, discarding my changes completely.
What I tried so far:
- Generating cache with "bundle package" and execute "bundle install --local"
- Copy the compiled the gem over to the gitorious directory.
- Executing "gem install" on the fixed sources.
What is the right way of continuing a "bundle install" after such errors?