Sep 232014

I keep meaning to get around to do this, but never do. This evening¬†I took a look at and the installation of its CLI program had a homebrew option, so then was a good a moment as any, that and with the imminent relsease of OS 42 (X.10.10)…

$brew -v

==> 0.9.5

$sudo chown -R `whoami` /usr/local
$cd /usr/local
$git fetch origin
$git reset --hard origin/master
$brew cleanup
$brew upgrade

==> ALL OK!

$brew update

==> Err. re. tap … but mostly OK.
–exercism install–

$brew tap homebrew/binary
$brew install exercism

==> Err ūüôĀ “no available formula for exercism” “searching taps…”

$brew untap homebrew/binary
$brew upgrade
$brew update
$brew tap homebrew/binary
$brew install exercism

==> DICE

$exercism configure --key=MY_API_KEY

==>config at ~/.exercism.json
==> API key is in accounts at


Jul 222013

I’ve been playing with Hazel a bit recently, mostly so I can get a handle on it to support others’ usage of a simple file automation/ housekeeping application. I like it, but it is somewhat limited in not allowed nested conditional and other basic logic statements. Anyway, what Hazel does is not much more– and very frequently less– that what I’ve been doing with ad hoc cron scripts. These are not very tidy having built built up over the years. And so I Googled and I found a x-platform, ruby based¬†Hazel alternative in¬†maid.

$ gem install maid

Well I get a slew of errors, so:

$ which ruby
$ ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.10.1]

This version corresponds to Apple’s default on early 2008 Macbook Pros which came preinstalled with Leopard (OS X 10.5). I guess this shows that although I am running Mountain Lion now on a mid-2012 MBP I have not had a clean OS install since April ’08, and I have never done so myself on my own machine. So, proof that:

  1. I am lazy?
  2. Upgrades work ‘plenty fine’, and Apple do a pretty good job in this regard?
  3. I’m scared of losing all the custom build of compilers, interpreters, symlinks, scripts in odd locations doing various things, settings galore‚Ķ etc, etc. that make this machine mine?

Think I’ll persist on this path through Mavericks *then* start fresh with OS XI‚Ķ if I am am still using an increasingly annoying Apple OS.

$ ls -la /usr/bin | grep ruby
lrwxr-xr-x     1 root   wheel        76 Jul 27  2012 ruby -> ../../System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby
-rwxr-xr-x     1 root   wheel       450 Nov 18  2011 sqlite3_ruby

$ rvm -v
rvm 1.9.0 by Wayne E. Seguin ( []
$ ls -la /Users/yearlus/.rvm/rubies/
drwxr-xr-x   8 yearlus  yearlus  272 Oct 26  2011 ruby-1.9.2-p290

update rvm:

$ cd ~/.rvm/
$ \curl -L | bash -s -- --version latest
$ rvm -v
A RVM version 1.21.13 is installed yet 1.9.0 is loaded.
 Please do one of the following:
  * 'rvm reload'
  * open a new shell

$ rvm reload
RVM reloaded!

$ rvm -v
rvm 1.21.13 (latest) by Wayne E. Seguin <>, Michal Papis <> []

$ rvm use 1.9.2
Using /Users/yearlus/.rvm/gems/ruby-1.9.2-p290
$ which ruby

I could fsck with .profile, but will keep flexible for now. Could also use the default flag:

$ rvm use 1.9.2 --default
$sudo gem install maid
dyld: Library not loaded: /Users/sjy2/.rvm/rubies/ruby-1.9.2-p290/lib/libruby.1.9.1.dylib Referenced from: /Users/yearlus/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
Reason: image not found

oh brother!

$ rvm list known
$ rvm list
rvm rubies=> ruby-1.9.2-p290 [ x86_64 ]
$ rvm install 1.9.1
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.1-p431.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
You requested building with '/usr/bin/gcc-4.2' but it is not in your path.


[cc_dos]$ sudo rvm requirements
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
Failed to update Homebrew, follow instructions here: <a href=""></a> and make sure `brew update` works before continuing.
Requirements installation failed with status: 1

Following worked (outputs omitted):

$ chown -R yearlus $(brew --prefix)/.git
$ sudo chgrp -R admin /usr/local
$ sudo chmod -R g+rwx /usr/local
$ sudo chmod -R o-w /usr/local
$ cd /usr/local &amp;&amp; git reset --hard &amp;&amp; git clean -d -f/
$rvm requirements
$brew update
$ sudo gem install maid
$ sudo gem update


Social Widgets powered by