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

Ruby 2.7 support #1113

Closed
ain opened this issue Mar 11, 2020 · 3 comments
Closed

Ruby 2.7 support #1113

ain opened this issue Mar 11, 2020 · 3 comments

Comments

@ain
Copy link

ain commented Mar 11, 2020

In addition to #1105, installation also fails on Ubuntu, e.g. on Google App Engine build that is based on the image of gcr.io/gcp-runtimes/ruby/ubuntu16/generate-dockerfile@sha256:feed21acf09aee94685864e1eed51c08e31b305199553cd3fa04096bc88d45ad.

Failure log:

Step #1: LoadError: libmariadb.so.3: cannot open shared object file: No such file or directory - /app/vendor/bundle/ruby/2.7.0/bundler/gems/mysql2-c66eb365a977/lib/mysql2/mysql2.so
Step #1: /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
Step #1: /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
Step #1: /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
Step #1: /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
Step #1: /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
Step #1: /app/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `block in require'
Step #1: /app/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in `load_dependency'
Step #1: /app/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require'
Step #1: /app/vendor/bundle/ruby/2.7.0/bundler/gems/mysql2-c66eb365a977/lib/mysql2.rb:36:in `<main>'
Step #1: /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
Step #1: /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
Step #1: /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
Step #1: /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
Step #1: /app/vendor/bundle/ruby/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
Step #1: /app/config/application.rb:13:in `<top (required)>'
Step #1: /app/Rakefile:4:in `require'
Step #1: /app/Rakefile:4:in `<top (required)>'
Step #1: /app/vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
Step #1: /opt/rbenv/versions/2.7.0/bin/bundle:23:in `load'
Step #1: /opt/rbenv/versions/2.7.0/bin/bundle:23:in `<main>'
Step #1: (See full trace by running task with --trace)

Reproduced on:

@jeremy
Copy link
Contributor

jeremy commented Mar 11, 2020

  • Does this occur on Ruby 2.7 only, or 2.6.x as well?
  • Does your build environment differ from your runtime? Missing libmariadb.so.3 suggests LD_LIBRARY_PATH difference.
  • Can you reproduce with a standalone Dockerfile to share?

@ain
Copy link
Author

ain commented Mar 16, 2020

Thanks for the rather fast response @jeremy.

The answers that I can give you form the back of my head:

  • Occurs only on 2.7, does not occur on 2.6.5
  • No
  • Currently not, but we can try if it helps

@ain
Copy link
Author

ain commented May 19, 2020

Cleaning the gem cache resolved the issue.

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