bhb/rack-perftools_profiler

Installation fails for ruby 2.1

Closed this issue · 3 comments

Installation for ruby 2.1.0-preview1 fails. This is the error message:

killa@ubuntu:~/workspace/one_flexo$ gem install rack-perftools_profiler
Building native extensions. This could take a while...
ERROR: Error installing rack-perftools_profiler:
ERROR: Failed to build gem native extension.

/home/killa/.rvm/rubies/ruby-2.1.0-preview1/bin/ruby extconf.rb

(I'm about to compile google-perftools.. this will definitely take a while)
-- tar zpxvf gperftools-2.0.tar.gz
-- patch -p1 < ../../../patches/perftools.patch
-- patch -p1 < ../../../patches/perftools-notests.patch
-- patch -p1 < ../../../patches/perftools-pprof.patch
-- patch -p1 < ../../../patches/perftools-gc.patch
-- patch -p1 < ../../../patches/perftools-debug.patch
-- patch -p1 < ../../../patches/perftools-objects.patch
-- patch -p1 < ../../../patches/perftools-frames.patch
-- patch -p1 < ../../../patches/perftools-realtime.patch
-- patch -p1 < ../../../patches/perftools-pause.patch
-- sed -i -e 's,SpinLock,ISpinLock,g' src/.cc src/.h src/base/.cc src/base/.h
-- ./configure --disable-heap-profiler --disable-heap-checker --disable-debugalloc --disable-shared
-- make
checking for method.h... no
checking for vm_core.h... no
Makefile creation failed


No source for ruby-2.1.0 (revision 43011) provided with debugger-ruby_core_source gem.


*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/home/killa/.rvm/rubies/ruby-2.1.0-preview1/bin/ruby

Gem files will remain installed in /home/killa/.rvm/gems/ruby-2.1.0-preview1/gems/perftools.rb-2.0.1 for inspection.
Results logged to /home/killa/.rvm/gems/ruby-2.1.0-preview1/gems/perftools.rb-2.0.1/ext/gem_make.out

I'll be happy to provide any other informations if needed.

+1

bhb commented

Thanks for reporting this, but it appear to be an issue with perftools.rb, not the middleware. I see the same error when running gem install perftools.rb on Ruby 2.1. Please submit the issue here.

Since the fix is not in this project, I'm going to close this. Please let me know if you have any questions.