Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adrianthedev opened this issue Mar 22, 2023 · 2 comments
Open

Comments

@adrianthedev
Copy link

adrianthedev commented Mar 22, 2023

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
@adrianthedev adrianthedev changed the title Failed to install in ruby docker image Failed to install in ruby docker image (vm_insnhelper.h missing) Mar 22, 2023
@torresomar
Copy link

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

@adrianthedev
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants