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 3.1 doesn't bring fiber.so and crashes Ocra #179

Open
damian-m-g opened this issue Jan 7, 2022 · 8 comments
Open

Ruby 3.1 doesn't bring fiber.so and crashes Ocra #179

damian-m-g opened this issue Jan 7, 2022 · 8 comments

Comments

@damian-m-g
Copy link

damian-m-g commented Jan 7, 2022

Hi larsch, and guys,

I tried to compile a script today with Ruby 3.1 x64 and with 3.1 x86. Ocra shouts about not finding fiber.so. He says that can't find it in the current directory, but he looks before in the Ruby installation dir.

I'm attaching the comparison of this two folders. I just had to copy-paste the fiber.so of my 3.0 x64 (or x86 respectively) version in the analog folder for 3.1 x64 (or x86 respectively) and the script compiled. I didn't inquire deeper into why that file isn't there, or why is it being required by Ocra.

image

Cheers.

@enumag
Copy link

enumag commented Mar 12, 2022

I ran into this bug as well but I don't know where to find the fiber.so file. I don't have any older version of ruby installed. What can I do?

Note for myself: the file belongs to C:\Ruby31-x64\lib\ruby\3.1.0\x64-mingw-ucrt (or similar based on where Ruby is installed)

@damian-m-g
Copy link
Author

@enumag here it is for you. For x64.

fiber.zip

@fguillen
Copy link

I have the same problem here. Any way of solving it without manually doing extrange file pasting movements? (I am creating a tutorial and this sounds very weird) :/

@Largo
Copy link

Largo commented Apr 28, 2022

If you want to download the file from another source:
ridk.cmd exec pacman -S mingw-w64-x86_64-ruby

Still need to copy the file to C:\Ruby31-x64\lib\ruby\3.1.0\x64-mingw-ucrt sadly

@enumag
Copy link

enumag commented Dec 27, 2023

Is there some better solution for this? The fiber.so from older ruby is likely outdated so it doesn't feel right to use it in newer versions.

@Largo
Copy link

Largo commented Jan 6, 2024

Is there some better solution for this? The fiber.so from older ruby is likely outdated so it doesn't feel right to use it in newer versions.

I can only refer you to my fork ocran

@enumag
Copy link

enumag commented Jan 6, 2024

I can only refer you to my fork ocran

I actually found out that for ocra it's enough to just create a blank fiber.so file. It's not actually used.

Anyway I ended up using aibika which is another ocra fork. What are the differences between ocran and aibika?

@SimoLRepo
Copy link

I also encountered the same problem, it's surprising that this bug hasn't been fixed yet. For the moment I use ocran which works perfectly.

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

5 participants