Another one of those troublesome gems, here is my definite guide to installing libv8 with the default v8 engine on OS X

bundle config build.libv8 --with-system-v8
bundle install

Note If you also need therubyracer, see my post about installing therubyracer on OS X