ocra icon indicating copy to clipboard operation
ocra copied to clipboard

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

Open damian-m-g opened this issue 3 years ago • 8 comments

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.

damian-m-g avatar Jan 07 '22 05:01 damian-m-g

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)

enumag avatar Mar 12 '22 08:03 enumag

@enumag here it is for you. For x64.

fiber.zip

damian-m-g avatar Mar 15 '22 03:03 damian-m-g

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) :/

fguillen avatar Mar 18 '22 10:03 fguillen

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

Largo avatar Apr 28 '22 09:04 Largo

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.

enumag avatar Dec 27 '23 23:12 enumag

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

Largo avatar Jan 06 '24 08:01 Largo

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?

enumag avatar Jan 06 '24 08:01 enumag