I’ve often heard that the same compiler should be used to compile
Ruby and C extensions. I’ve also heard the same restriction for Perl,
mod_perl, and Apache. Libraries distributed as binaries for Windows
have to be compiled with Microsoft the compiler as well, right?
Say, for example, you’ve got a Ruby in Solaris compiled with the Sun
compiler, and the suite is not installed, nor can you install it.
Would you try to tweak Makefiles to compile some library with gcc? Or
is that just a bad idea and it is better to compile Ruby by hand
bypassing the system Ruby and go on from there?
I am not very familiar with compilers and linkers, which is the
reason behind these constraints?