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

Add Ruby shared library #73

Closed
5 tasks done
y-yagi opened this issue Nov 2, 2019 · 3 comments
Closed
5 tasks done

Add Ruby shared library #73

y-yagi opened this issue Nov 2, 2019 · 3 comments
Assignees
Labels
Area: Ruby enhancement New feature or request

Comments

@y-yagi
Copy link

y-yagi commented Nov 2, 2019

Tool information

  • Tool name: Ruby shared library
  • Add or update? Add
  • Desired version: Latest
  • Approximate size:
  • If this is an add request:
    • Brief description of tool: GitHub Actions Virtual Environments already supported Ruby but it seems it does not build with a shared library. The shared library need when use libraries like using FFI.
    • URL for tool's homepage:

Virtual environments affected

  • macOS 10.14
  • Ubuntu 16.04 LTS
  • Ubuntu 18.04 LTS
  • Windows Server 2016 R2
  • Windows Server 2019

Can this tool be installed during the build?
Yes

Are you willing to submit a PR?
Yes

@eregon
Copy link

eregon commented Jan 12, 2020

The shared library need when use libraries like using FFI.

Could you give an example?
The FFI gem doesn't need libruby at least.

@kaylangan kaylangan added Area: Ruby enhancement New feature or request labels Jan 13, 2020
@eine eine mentioned this issue Jan 18, 2020
5 tasks
@ankane
Copy link

ankane commented Feb 18, 2020

A few examples are Rice and gems that depend on it (like Torch-rb and fastText). Here's the error message from Rice:

Unfortunately Rice does not build against a staticly linked Ruby.
You'll need to rebuild Ruby with --enable-shared to use this library.

If you're on rvm:    rvm reinstall [version] -- --enable-shared
If you're on rbenv:  CONFIGURE_OPTS="--enable-shared" rbenv install [version]
If you're on Heroku: upgrade your stack to heroku-16 or later

@maxim-lobanov
Copy link
Contributor

Hello, recently we have switched Ruby to official Ruby binaries for all os. Currently, binaries are consumed from https://github.com/ruby/ruby-builder
As far as I know, new binaries use shared libraries and this issue can be resolved.
Please let me know if you have any concerns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Ruby enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants