Ruby rbconfig.rb
-
Is ruby rbconfig.rb file the same in all operating systems? Or is it different?
-
Should be the same, BUT the values of the
Config::CONFIG
hash attributes WILL DIFFER.
The problem with the above statement is that rbconfig.rb is written by mkconfig.rb, (when the Ruby was built,) which may have itself changed over the various versions. Also, on Windows, some users install a one-click installer edition, that was not built on their own computer, and they may install it in a custom path, which may invalidate some of the values in the rbconfig.rb file.AND, only machines with a full Ruby install will have the rbconfig.rb file (in the platform subdir, of the Ruby lib dir.)
Advertisement