Skip to content

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

@adrianthedev

Description

@adrianthedev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions