ruby-debug / debase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to install in ruby docker image (vm_insnhelper.h missing)

adrianthedev opened this issue · comments

Hi.

I'm getting the following error and don't know how to solve it. Can you please help me with this?

Context

I'm trying to install this in a docker image that starts from ruby:3.2.1 (tried 3.2.0 and 3.1.0).
I clone the repository, I build the gem and then try to install it.

RUN git clone --branch v0.2.5.beta2 https://github.com/ruby-debug/debase.git
RUN cd debase && gem build
RUN gem install debase ./debase/debase-0.2.5.beta2.gem

I see that vm_insnhelper.h is missing.

#11 1.741 Successfully installed debase-ruby_core_source-3.2.0
#11 1.741 Building native extensions. This could take a while...
#11 2.325 ERROR:  Error installing debase:
#11 2.325 	ERROR: Failed to build gem native extension.
#11 2.325
#11 2.325     current directory: /usr/local/bundle/gems/debase-0.2.4.1/ext
#11 2.325 /usr/local/bin/ruby -I /usr/local/lib/ruby/3.2.0 extconf.rb
#11 2.325 checking for vm_core.h... no
#11 2.325 checking for vm_core.h... no
#11 2.325 **************************************************************************
#11 2.325 No source for ruby-3.2.1-p31 (revision 31819e82c88c6f8ecfaeb162519bfa26a14b21fd) provided with
#11 2.325 debase-ruby_core_source gem. Falling back to ruby-3.2.0-p0.
#11 2.325 **************************************************************************
#11 2.325 checking for vm_core.h... yes
#11 2.325 checking for iseq.h... yes
#11 2.325 checking for version.h... yes
#11 2.325 checking for vm_core.h... yes
#11 2.325 checking for vm_insnhelper.h... no
#11 2.325 Makefile creation failed
#11 2.325 *************************************************************
#11 2.325
#11 2.325   NOTE: If your headers were not found, try passing
#11 2.325         --with-ruby-include=PATH_TO_HEADERS
#11 2.325
#11 2.325 *************************************************************
#11 2.325
#11 2.325 *** extconf.rb failed ***
#11 2.325 Could not create Makefile due to some reason, probably lack of necessary
#11 2.325 libraries and/or headers.  Check the mkmf.log file for more details.  You may
#11 2.325 need configuration options.
#11 2.325

Seems like this may be solved with the solution mentioned in #102

I can confirm that 0.2.5.beta2 did not fix my issue.
I tried to install it from rubygems and from github from the 0.2.5.beta2 specific branch.

The error is different from #102