Wrong version of ruby is used during tests
When I installed ruby 2.5 and run its internal tests, I noticed relocation error:
ld.so.1: ruby: fatal: relocation error: file /usr/ruby/2.1/bin/ruby: symbol rb_cFixnum: referenced symbol not found
Problem isn't the error itself but the fact that tests are using ruby 2.1 (which is also installed on the machine and is the default version) instead of the one it should be testing. When I install ruby 2.5 and set it as main version (ruby link points to -> ruby2.5), the error message goes away. I wasn't able to locate it but i believe that somewhere tests are using just ruby and not absolute path to version 2.5.
Maybe I don't have something set correctly, but even the ruby -v command right above the error line tells me that it is using ruby 2.5.1.
Whole test output is attached.