larsch / ocra

One-Click Ruby Application Builder
http://ocra.rubyforge.org/
835 stars 83 forks source link

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

Open damian-m-g opened 2 years ago

damian-m-g commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

@enumag here it is for you. For x64.

fiber.zip

fguillen commented 2 years ago

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 commented 2 years ago

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 commented 11 months ago

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 commented 10 months ago

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 commented 10 months ago

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 commented 1 month ago

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.