Hackintosh – Time for RVM install Ruby.

Hopefully everyone knows not to trust my pronoucements. The default Ruby (2.x) and Shoes on OSX shares the same problem with Linux : not compiled with –enable-load-relative. To refresh your memory there are two types of Shoes 3.2 – tight shoes and loose shoes. Tight shoes can be shared or copied or moved across the internets because they have their own copy of Ruby. Loose shoes (build from source) just compiles with whatever Ruby you have and can’t be moved. I’ve whined about this before but it still matters. Things appear to work for you (me) and yet they don’t work for anyone else. See here if you don’t believe me.

The OSX code (rakefiles) doesn’t know about loose vs tight for OSX. OSX needs to be a Tight Shoes if I’m going to put up a binary tbz for others to download, so I need to compile a Ruby that does the right thing (Rubies that come with the system, rarely do the right thing for Shoes).

I had hoped to buy a real mac mini but that fell apart. I still will, when the price is right but I was hoping I wouldn’t have to do rvm twice and homebrew one more time. I lose. Not that more practice would hurt me.

FWIW, the Hackintosh in Virtualbox survived the 10.9.3 upgrade. I used the Jewelery Box GUI to install RVM. Then I started a new terminal (to get rvm env) and did a command line install $ rvm install 2.0.0 -C --enable-load-relative
Cecils-Mac-Pro:~ ccoupe$ rvm install 2.0.0 -C --enable-load-relative
Checking requirements for osx.
Installing requirements for osx.
Updating system......................................
Installing required packages: autoconf, automake, libtool, libyaml, readline, li
bksba, openssl.........
Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/ccoupe/.rvm/rubies/ruby-2.0.0-p451, this
may take a while depending on your cpu(s)...
ruby-2.0.0-p451 - #downloading ruby-2.0.0-p451, this may take a while depending
on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.2M 100 10.2M 0 0 233k 0 0:00:44 0:00:44 --:--:-- 685k
ruby-2.0.0-p451 - #extracting ruby-2.0.0-p451 to /Users/ccoupe/.rvm/src/ruby-2.0
.0-p451...
ruby-2.0.0-p451 - #applying patch /Users/ccoupe/.rvm/patches/ruby/changeset_r452
25.diff.
ruby-2.0.0-p451 - #applying patch /Users/ccoupe/.rvm/patches/ruby/changeset_r452
40.diff.
ruby-2.0.0-p451 - #configuring.................................................
ruby-2.0.0-p451 - #post-configuration.
ruby-2.0.0-p451 - #compiling....................................................
ruby-2.0.0-p451 - #installing..............
ruby-2.0.0-p451 - #making binaries executable..
ruby-2.0.0-p451 - #downloading rubygems-2.2.2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 404k 100 404k 0 0 276k 0 0:00:01 0:00:01 --:--:-- 276k
No checksum for downloaded archive, recording checksum in user configuration.
ruby-2.0.0-p451 - #extracting rubygems-2.2.2...
ruby-2.0.0-p451 - #removing old rubygems.........
ruby-2.0.0-p451 - #installing rubygems-2.2.2...............
ruby-2.0.0-p451 - #gemset created /Users/ccoupe/.rvm/gems/ruby-2.0.0-p451@global
ruby-2.0.0-p451 - #importing gemset /Users/ccoupe/.rvm/gemsets/global.gems.....|
ruby-2.0.0-p451 - #generating global wrappers.........
ruby-2.0.0-p451 - #gemset created /Users/ccoupe/.rvm/gems/ruby-2.0.0-p451
ruby-2.0.0-p451 - #importing gemsetfile /Users/ccoupe/.rvm/gemsets/default.gems
evaluated to empty gem list
ruby-2.0.0-p451 - #generating default wrappers.........
ruby-2.0.0-p451 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.0.0-p451 - #complete
Please be aware that you just installed a ruby that requires 2 patches ju
st to be compiled on an up to date linux system.
This may have known and unaccounted for security vulnerabilities.
Please consider upgrading to ruby-2.1.1 which will have all of the latest securi
ty patches.
Ruby was built without documentation, to build it run: rvm docs generate-ri
Cecils-Mac-Pro:~ ccoupe$

Note that RVM installed the autoconf,make and build stuff (to bite me later?) and the Ruby dependencies (libyaml, readline, openssl ..). I do like that. Note how it updated for Rubygems 2.2.2 — that is a real time saver.
Then I installed Ruby 2.1.1 as suggested.

Does the OSX rakefile know how to handle an RVM install? — Stay tuned.

Leave a Reply

Your email address will not be published. Required fields are marked *