Sunday, January 12, 2014

No Ri and No Rdoc by Default

You can prevent ri and rdoc from being installed on a per (Ruby) gem basis from the command line by adding --no-document to the end of your gem install GEM_NAME command.

If you want ri and rdoc to not be installed by default, put the following in your ~/.gemrc file:


$ cat .gemrc 
--- 
:benchmark: false
gem: --no-document
install: --no-ri --no-rdoc
update: --no-ri --no-rdoc
:update_sources: true
:backtrace: false
:bulk_threshold: 1000
:verbose: true
:sources: 
- http://rubygems.org
- http://gems.github.com
- http://gems.rubyforge.org
- http://gemcutter.org

Caskable Apps

I'd recommend using Homebrew to install apps such as curl and git on OSX and using brew-cask to install GUI apps such as node and parallels.

Current List of Caskable Apps


a-slower-speed-of-light
acorn
actiontastic
activity-audit
adapter
adium
adobe-air
adventure
aegisub
aerofs
air-video-server
airdisplay
airfoil
airmail-beta
airparrot
airserver
akai-lpk25-editor
alfred
aliwangwang
all2mp3
amadeus-pro
amazon-cloud-drive
amazon-cloud-player
amethyst
android-file-transfer
android-studio
anki
anonym
antirsi
anvil
anxiety
ap-grapher
apikitchen
apns-pusher
appcleaner
appcode
appdelete
appfresh
appmenuboy
apptivate
appzapper
aptana-studio
aquamacs
aquaterm
arduino
armitage
armory
arq
asepsis
asteroid
atext
atmonitor
audacity
audio-editor
audio-hijack-pro
audiobook-binder
audioslicer
authy-bluetooth
avidemux
awareness
back-in-time
backblaze-downloader
backuploupe
balsamiq-mockups
baretorrent
bartender
base
basecamp
basictex
bathyscaphe
battery-guardian
battery-report
battery-time-remaining
baygenie
bbedit
beamer
bettertouchtool
betterzip
betterzipql
bibdesk
bill
binreader
bitcoin-qt
bitmessage
bittorrent-sync
blender
blueharvest
bodega
bonjour-browser
bootchamp
bootxchanger
bowtie
boxcryptor-classic
boxer
brain-workshop
breakaway
brightness
broomstick
burn
caffeine
calcservice
calibre
calibre2opds
camino
camranger
camtasia
candybar
carbon-copy-cloner
carlson-minot
catch
ccleaner
ccmenu
cdto
cfxr
chainsaw
chameleon-ssd-optimizer
changes
charles
chatology
cheatsheet
chicken
chocolat
choosy
chromatic
chromecast
chromium
chronicle
chronoagent
chronomate
chronosync
cinch
clamxav
clarify
cleanmymac
clementine
clipmenu
clix
cloak
clonk-rage
cloud-pull
cloudapp
cloudup
cocktail
cocoa-packet-analyzer
cocoa-rest-client
cocoaspell
coconutbattery
coda
codebug
codekit
cog
colloquy
color-oracle
colorpicker-antetype
colorpicker-developer
colorpicker-hex
colorpicker-propicker
colors
colorschemer-studio
comic-book-lover-sync
comic-book-lover
commandq
concentrate
contexts
controllermate
controlplane
coolterm
copy
cord
cornerstone
coteditor
couchbase-server-community
couchbase-server-enterprise
crashlytics
crashplan
crushftp
cuppa
cups-pdf
cura
curse-client
cutesdr
cyberduck
daisydisk
darktable
dash
dashlane
dataurlmaker
day-o
dbeaver
deal-alert
debt-quencher
deeper
default-folder-x
delibar
delicious-library
delivery-status
deltawalker
deluge
desmume
dia
dict-unifier
diffmerge
disk-drill
disk-inventory-x
diskaid
diskmaker-x
diskwave
divvy
djview
dnscrypt
dogecoin
dolphin
dosbox
douban-radio
doubletwist
doxie
doxygen
dradio
dragthing
drobo-dashboard
dropbox-encore
dropbox
dropin
droplr
dropzone
dsp-radio
dukto
duplicate-annihilator
eagle
easy-vpn
easysimbl
eclipse-ide
eclipse-platform
ecoute
ejector
electric-sheep
electrum
emacs
enjoyable
entropy
espresso
etrecheck
evernote
evom
exhaust
expandrive
eye-fi
eyetv
f-lux
fairmount
fake
fakethunder
fantastical
fastscripts
feeder
feeds
fender-amp-drivers
fender-fuse
ffmpegx
fiji
filebot
filedrop
filezilla
find-any-file
firefox
flash-decompiler
flash
flickr-uploadr
flight-gear
flip4mac
flow
flowdock
fluid
flux
fm-designer
fm-fw-installer
folx
fontexplorer-x-pro
fontprep
forklift
fotomagico
fourk-video-downloader
fourpeaks
foxmail
fpc
free-ruler
freecad
freemind
freezer
fritzing
frizzix
fs-uae
fugu
functionflip
ganttproject
garagesale
garmin-training-center
gas-mask
gawker
geekbench
geektool
gemini
genymotion
gephi
gfxcardstatus
ghostlab
gifrocket
gimp-lisanet
gimp
git-annex
gitbox
github
gitifier
gitx-l
gitx-rowanj
gitx
glimmerblocker
gmail-notifr
gnucash
goagentx
gog-downloader
google-app-engine-launcher
google-chrome
google-drive
google-earth
google-hangouts
google-music-manager
google-notifier
google-quick-search-box
google-refine
google-web-designer
gopanda
gpgtools
gpower3
gqrx
grabbox
grandperspective
grandtotal
gridwars
grooveshark
groovesquid
growl-fork
growler
growlnotify
growlvoice
gurpscharactersheet
hall
hamachi
handbrake
handbrakebatch
hands-off
haroopad
harvest
haskell-platform
hazel
heroku-toolbelt
hexels
hexfiend
hipchat
hiss
hive
hockeycoach
hopper-disassembler-gdb
hopper-disassembler
horndis
hostbuddy
houdahgeo
houdahspot
httpscoop
hyperdock
hyperswitch
hyro
ibank
icefloor
ichm
icompta
icursor
id3-editor
identify
ideskcal
iexplorer
ifilex
igetter
imagealpha
imageoptim
img2icns
inboard
inc
induction
inkscape
instacast
insync
integrity
intellij-idea-community
intellij-idea-ultimate
iograph
ioquake3
ipalette
iphone-configuration-utility
iphoney
ireadfast
irip
isolator
istat-menus
istopmotion
istumbler
iterm2
itools
itunes-volume-control
itweax
jabref
java
jd-gui
jdownloader
jewelrybox
jing
jitsi
join-me
josm
jsonlook
jubler
julia
jumpcut
jumpshare
justlooking
kaleidoscope
kdiff3
keepassx
keka
kext-drop
kext-utility
kext-wizard
key-codes
keyboard-cleaner
keyboard-maestro
keyboardcleantool
keycue
keyfinder
keyremap4macbook
kindle
kismac
kiwi
knock
knox
kobito
komodo-edit
kompozer
lastfm
lastpass-universal
latexit
launchbar
launchcontrol
layervault
lazarus
league-of-legends
less-app
libreoffice
licecap
licensed
light-table
lightpaper
limechat
linein
linkinus
litecoin
liteicon
liteide
little-snitch
livereload
livestation
locko
logisim
logitech-control-center
logitech-unifying
logmein-ignition-beta
love
lyn
lyx
macdrops
macfusion
macintosh-explorer
macpardeluxe
macpass
macpilot
macports
macs-fan-control
mactex
mactracker
macupdate-desktop
macvim
magic-launch
mailfollowup
mailmate
mailplane
makemkv
makerware
mamp
manager
manico
maratis
marked2
marsedit
max
maxthon
media-converter
menubar-countdown
menubarfilter
menumeters
menuola
mesasqlite
meshlab
meteorologist
mi
middleclick
mikogo
milkytracker
minco
mindnode-pro
minecraft
miro-video-converter
miro
mirror-displays
mixlr
mixxx
mkvtoolnix
mocksmtp
money
moneymoney
moneywell
mongohub
mono-mdk
mono-mre
monolingual
monotype-skyfonts
moom
moreamp
mosh
mou
mover
movist-fork
mozart
mpeg-streamclip
mplayer-osx-extended
mplayerx
mucommander
mudlet
multibit
multibrowser
mumble
musescore
myphonedesktop
mysql-workbench
namebench
namechanger
namemangler
navicat-data-modeler
navicat-mariadb
navicat-mysql
navicat-oracle
navicat-postgresql
navicat-premium
navicat-sql-server
navicat-sqlite
neofinder
netbeans-cpp
netbeans-php
netbeans
nethack-cocoa
netlogo
netnewswire
netshade
netspot
neu
nightingale
nitrous-io
nocturne
node-webkit
node
noejectdelay
noiz2sa
nomacs
nosleep
notational-velocity
ntfs-free
nvalt
nzb-vortex
objektiv
obsidian-menu-bar-mountain-lion
omnidazzle
omnidisksweeper
omnifocus
omnigraffle
omnioutliner-pro
omnioutliner
omniplan
omniweb
onepassword
onyx
oovoo
openemu
openoffice
openscad
opera-mail
opera-mobile-emulator
opera-next
opera
optimal-layout
orange
origin
ormr
osxfuse
owncloud
p4merge
pacifist
pagico
paintbrush
pandoc
paparazzi
papers
parallels
paraview
password-practice
pastor
path-finder
pcalc
pckeyboardhack
pdfsam
pencil
pester
pg-commander
pgadmin3
phoenix-slides
phoneclean
photo-ninja
phpstorm
pi-filler
pianopub
picard
picasa
picturelife
picturesque
pins
pinta
pixel-check
pixelpeeper
pixelstick
plain-clip
platypus
pleasesleep
plex-home-theater
plex-media-server
plug
pngcommentator
poedit
pokerstars
pokertracker
port-map
porthole
postbox
power-manager-pro
power-manager
powerkey
preen
pref-setter
preference-manager
preferencecleaner
prefs-editor
prepros
prey
prizmo
processing
prolific-usb-serial-driver
propane
protege
provisioning
proximity
ps3-media-server
pupil
putio-adder
puush
pwnagetool
pycharm-community
pycharm-pro
qbittorrent
qlcolorcode
qlimagesize
qlmarkdown
qlprettypatch
qlstephen
qq-music
qq
qqbrowser
qt-creator
quassel-client
querious
quickcast
quickhue
quicklook-csv
quicklook-json
quickradar
quicksilver
quotefixformac
racket
rcdefaultapp
rcenvironment
rcwebcolorpicker
rdio
readytalk
recovery-disk-assistant
redis-desktop-manager
reflector
refresh-finder
reggy
renamer
repetier
rescuetime
rest-client
retinacapture
retinizer
retroshare
reveal
riffworkst4
right-zoom
ringtones
ripit
rname
robomongo
royal-tsx
rrootage
rss
rstudio
rtx
rubymine
runtastic-connect
sabnzbd
sandbox
satellite-eyes
sauce
scala-ide
screenflick
screenflow
screenhero
screens-connect
screensteps
scribus
scriptql
scrivener
scrup
scummvm
sdrdx
seafile
seamonkey
seashore
second-life
secondbar
selfcontrol
send-to-kindle
sequel-pro
serial-cloner
serial-tools
shadowsweeper
shelf-leveler
shiftit
shimo
shiori
shoes
shortcat
shotcut
shuttle
sidekick
sidestep
sidplay
sigil
silverlight
sim-pholders
simon
simpholders
simple-comic
simple-css
simplecap
simulator-folders
sitesucker
sizeup
sizzlingkeys
sketch
sketchup
skim
skitch
skydrive
skype
slack
slate
sleep-monitor
slice-eq
slicy
slimbatterymonitor
sloth
slowy
smaller
smartgithg
smcfancontrol
snagit
snip
snippets-me
sonic-visualiser
sonos
sophos-antivirus
soulseek
soulver
soundflower
soundnote
sourcetree
space-monkey
spark-inspector
sparkle
sparkleshare
sparrow
spectacle
speed-download
speedcrunch
speedlimit
speedtao
spek
spirited-away
splashtop-personal
splashtop-streamer
splayerx
spotdox
spotifree
spotify-menubar
spotify
spring-tool-suite
spyder
sql-explorer
sqleditor
sqlite-browser
squidman
squirrel
sqwiggle
sshfs
steam
steermouse
strongvpn
subethaedit
subler
sublime-text
subnetcalc
subsmarine
subtitle-master
subtitles
sunlogin-remote
super-otr
supercollider
superduper
surplusmeter
suspicious-package
sweet-home3d
swingfish
swinsian
synergy
synology-assistant
synthesia
tagalicious
tagr
tapaal
taskpaper
teamspeak-client
teamviewer
teamviz
teeworlds
teleport
testflight
texmacs
texmaker
texshop
textadept
textexpander
textmate
texts
textwrangler
the-hit-list
the-unarchiver
theremin
things
thumbsup
thunderbird
tickets
tikz-editor
tilemill
time-out
time-tracker-mac
timemachineeditor
timemachinescheduler
timings
tinkertool
tinygrab
tksuite-client
toad-mac
toau
todoist
toggldesktop
tomahawk
tomighty
tongbu
tor-browser
torus-trooper
totalfinder
totals
totalspaces
totalterminal
tower
trailrunner
transmission-remote-gui
transmission
transmit
trim-enabler
truecrypt
tune-instructor
tunewiki
tunnelbear
tunnelblick
tuxguitar
tv-show-tracker
tvbrowser
tvmobili
tvshows
twitterrific
uber-network-fuser
ukelele
uncrustifyx
undercover
unetbootin
uninstallpkg
unison-usenet
unison
unity3d
unpkg
unrarx
usb-overdrive
utorrent
vagrant
valentina-studio
versions
viber
vienna-rss
vimediamanager
vine-server
vinoteka
virtualbox
virtualhostx
viscosity
visit
vistrails
visualvm
vitamin-r
vlc-remote
vlc-streamer
vlc
vmware-fusion
vocabulist
voicemac
vox
wallpaper-wizard
waterroof
wavtap
webp-quicklook
webstorm
wedge
weka
welly
whatpulse
whatsapp-pocket
whiteclock
wineskin
wireshark
witch
woodhouse
wordservice
wraparound
wunderlist
x48
xamarin-studio
xbench
xbmc
xbox360-controller-driver
xiami
xld
xmarks-safari
xmind
xnviewmp
xquartz
xscope
xtrafinder
xunlei
yanvi
ynab
yorufukurou
youview
yubikey-personalization-gui
yubiswitch
zap-proxy
zepheer
zephyros
zero-ad
zero-xed
zipcleaner
zipeg
zooom
zotero
zterm


Easy way to get list of Caskable App Names

Go here https://github.com/phinze/homebrew-cask/tree/master/Casks and copy the list into your clipboard.

Use code below to extract just the app names:


x =<<TEXT
	..		
a-slower-speed-of-light.rb	Add A Slower Speed of Light	a month ago
acorn.rb	Fixes hardcoded version in Acorn cask	7 months ago
actiontastic.rb	Actiontastic beta8	2 months ago
activity-audit.rb	Adding cask for Activity Audit	8 days ago
adapter.rb	Add Adapter.app	6 months ago
. . .
zooom.rb	Minor fix to incorrect homepage URL.	6 months ago
zotero.rb	Update Zotero cask version to 4.0.17.	23 days ago
zterm.rb	ZTerm is a terminal emulation program for the Macintosh	5 months ago
TEXT


a = x.split("\n")
a.delete_at(0)  # Get rid of ".." that I accidentally copied
a.each{|i| puts i.split(' ')[0].split('.')[0]};nil

References

https://github.com/phinze/homebrew-cask/tree/master/Casks

Friday, January 10, 2014

Downgrade Your Rubygems for Ruby 1.9.3 Dependencies

Have you upgraded to Mavericks (OSX 10.9) and installed the latest version of Ruby and Rails and then get a project with Ruby 1.9.3 gem dependencies?

If so, you might have already installed Rubygems version 2+ and run into some bundle install errors.

I hope this post helps you through the muck and mire of old bundler gem dependencies.

TL;DR

To get compatible RubyGems run: gem update --system 1.8.29

Where necessary, run: bundle update GEM_NAME

If you have more issues, please continue reading...

Unable to Build Your Ruby/Rails Project?


$ bundle install 
. . .
Fetching from: https://s3.amazonaws.com/production.s3.rubygems.org/quick/Marshal.4.8/will_paginate-3.0.4.gemspec.rz
HTTP Success
Fetching from: https://rubygems.org/quick/Marshal.4.8/zeus-0.13.3.gemspec.rz
HTTP Redirection
Fetching from: https://s3.amazonaws.com/production.s3.rubygems.org/quick/Marshal.4.8/zeus-0.13.3.gemspec.rz
HTTP Success
Installing rake (10.0.3)
0:  rake (10.0.3) from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/specifications/rake-10.0.3.gemspec

Gem::InstallError: ZenTest requires RubyGems version ~> 1.8. Try 'gem update --system' to update RubyGems itself.
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in `ensure_required_rubygems_version_met'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:758:in `pre_install_checks'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:213:in `install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/source/rubygems.rb:95:in `block in install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/rubygems_integration.rb:118:in `preserve_paths'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/source/rubygems.rb:94:in `install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:111:in `block in install_gem_from_spec'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/rubygems_integration.rb:150:in `with_build_args'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:110:in `install_gem_from_spec'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:295:in `block in install_sequentially'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/forwardable.rb:201:in `each'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/forwardable.rb:201:in `each'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:294:in `install_sequentially'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:97:in `run'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:15:in `install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:257:in `install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/command.rb:27:in `run'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_command'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor.rb:363:in `dispatch'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/base.rb:438:in `start'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:10:in `start'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `block in '
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `'
/Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `load'
/Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `
' An error occurred while installing ZenTest (4.8.3), and Bundler cannot continue. Make sure that `gem install ZenTest -v '4.8.3'` succeeds before bundling. Bundler::InstallError: An error occurred while installing ZenTest (4.8.3), and Bundler cannot continue. Make sure that `gem install ZenTest -v '4.8.3'` succeeds before bundling. /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:143:in `rescue in install_gem_from_spec' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:106:in `install_gem_from_spec' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:295:in `block in install_sequentially' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:294:in `install_sequentially' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:97:in `run' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:15:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:257:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/command.rb:27:in `run' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_command' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor.rb:363:in `dispatch' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/base.rb:438:in `start' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:10:in `start' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `block in ' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `' /Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `load' /Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `
'

Doing what output suggests fails


  $ gem update --system
Latest version currently installed. Aborting.
  $ gem install ZenTest -v '4.8.3'
ERROR:  Error installing ZenTest:
ZenTest requires RubyGems version ~> 1.8. Try 'gem update --system' to update RubyGems itself.
  $ gem update --system
Latest version currently installed. Aborting.
  $ gem install ZenTest
Fetching: ZenTest-4.9.5.gem (100%)
Successfully installed ZenTest-4.9.5
Installing ri documentation for ZenTest-4.9.5
1 gem installed
  $ gem update --system
Latest version currently installed. Aborting.

Why did that happen?

Likely, it's because you installed rubygems without specifying a version. Here's how I managed to accomplish that:

brew update
brew install rbenv
brew install rbenv-gem-rehash
brew install ruby-build
rbenv install  1.9.3-p484
rbenv global  1.9.3-p484
gem update --system
gem install bundler pg rails thin --no-rdoc --no-ri



RubyGems version 2.2.1 is installed when I installed Ruby version 1.9.3. (Yes. I am an rbenv fan.)

I noticed that I hadn't reloaded my shell, which then caused by system ruby to be managed by rbenv (version 1.9.3).

~ $ rbenv global  1.9.3-p484
~ $ gem update --system
Updating rubygems-update
Fetching: rubygems-update-2.2.1.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
~ $ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]

~ $ rbenv versions
  system
* 1.9.3-p484 (set by /Users/lex/.rbenv/version)
~ $ rbenv whence rackup
~ $ rbenv rehash
~ $ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
~ $ . ~/.bashrc
Current directory: /Users/lex
~ $ ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-darwin13.0.0]


Then when I updated my system gems, it chose to install RubyGems version 2.2.1, which is incompatible with a gem or two in my ruby project.

  $ rbenv global  1.9.3-p484
  $ gem update --system
Updating rubygems-update
Fetching: rubygems-update-2.2.1.gem (100%)
Successfully installed rubygems-update-2.2.1
Installing RubyGems 2.2.1
RubyGems 2.2.1 installed

Downgrade Rubygems

The most recent version of rubygems that will work for a Ruby 1.9.3 dependency is Rubygems version 1.8.29

  $ gem update --system 1.8.29
Updating rubygems-update
Fetching: rubygems-update-1.8.29.gem (100%)
Successfully installed rubygems-update-1.8.29
Installing RubyGems 1.8.29
RubyGems 1.8.29 installed

== 1.8.29 / 2013-11-23

Bug fixes:

* Fixed installation when the LANG environment variable is empty.
* Added DigiCert High Assurance EV Root CA to the default SSL certificates for
  cloudfront.


------------------------------------------------------------------------------

RubyGems installed the following executables:
/Users/lex/.rbenv/versions/1.9.3-p484/bin/gem

RubyGems system software updated
  $ gem --version
1.8.29
  $ bundle install

Need for Ruby Debug Gem Causes another Dependency Related Failure


Installing debugger-linecache (1.2.0)
0:  debugger-linecache (1.2.0) from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/specifications/debugger-linecache-1.2.0.gemspec
Installing debugger-ruby_core_source (1.2.2)
0:  debugger-ruby_core_source (1.2.2) from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/specifications/debugger-ruby_core_source-1.2.2.gemspec

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /Users/lex/.rbenv/versions/1.9.3-p484/bin/ruby extconf.rb 
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-p484 provided with debugger-ruby_core_source gem.
**************************************************************************
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
 --with-opt-dir
 --without-opt-dir
 --with-opt-include
 --without-opt-include=${opt-dir}/include
 --with-opt-lib
 --without-opt-lib=${opt-dir}/lib
 --with-make-prog
 --without-make-prog
 --srcdir=.
 --curdir
 --ruby=/Users/lex/.rbenv/versions/1.9.3-p484/bin/ruby
 --with-ruby-dir
 --without-ruby-dir
 --with-ruby-include=${ruby-dir}/include
 --with-ruby-lib
 --without-ruby-lib=${ruby-dir}/lib


Gem files will remain installed in /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/debugger-1.6.0 for inspection.
Results logged to /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/debugger-1.6.0/ext/ruby_debug/gem_make.out

/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:564:in `rescue in block in build_extensions'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:540:in `block in build_extensions'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:515:in `each'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:515:in `build_extensions'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:180:in `install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/source/rubygems.rb:95:in `block in install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/rubygems_integration.rb:118:in `preserve_paths'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/source/rubygems.rb:94:in `install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:111:in `block in install_gem_from_spec'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/rubygems_integration.rb:150:in `with_build_args'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:110:in `install_gem_from_spec'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:295:in `block in install_sequentially'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/forwardable.rb:201:in `each'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/forwardable.rb:201:in `each'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:294:in `install_sequentially'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:97:in `run'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:15:in `install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:257:in `install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/command.rb:27:in `run'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_command'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor.rb:363:in `dispatch'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/base.rb:438:in `start'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:10:in `start'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `block in '
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `'
/Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `load'
/Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `
' An error occurred while installing debugger (1.6.0), and Bundler cannot continue. Make sure that `gem install debugger -v '1.6.0'` succeeds before bundling. Bundler::InstallError: An error occurred while installing debugger (1.6.0), and Bundler cannot continue. Make sure that `gem install debugger -v '1.6.0'` succeeds before bundling. /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:143:in `rescue in install_gem_from_spec' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:106:in `install_gem_from_spec' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:295:in `block in install_sequentially' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:294:in `install_sequentially' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:97:in `run' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:15:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:257:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/command.rb:27:in `run' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_command' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor.rb:363:in `dispatch' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/base.rb:438:in `start' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:10:in `start' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `block in ' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `' /Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `load' /Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `
' $ ruby -v ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-darwin13.0.0] $ gem install debugger -v '1.6.0' Building native extensions. This could take a while... ERROR: Error installing debugger: ERROR: Failed to build gem native extension. /Users/lex/.rbenv/versions/1.9.3-p484/bin/ruby extconf.rb checking for rb_method_entry_t.called_id in method.h... no checking for rb_control_frame_t.method_id in method.h... no checking for rb_method_entry_t.called_id in method.h... no checking for rb_control_frame_t.method_id in method.h... no Makefile creation failed ************************************************************************** No source for ruby-1.9.3-p484 provided with debugger-ruby_core_source gem. ************************************************************************** *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/Users/lex/.rbenv/versions/1.9.3-p484/bin/ruby --with-ruby-dir --without-ruby-dir --with-ruby-include=${ruby-dir}/include --with-ruby-lib --without-ruby-lib=${ruby-dir}/lib Gem files will remain installed in /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/debugger-1.6.0 for inspection. Results logged to /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/debugger-1.6.0/ext/ruby_debug/gem_make.out

Install Ruby with readline

Make a script out of this and run it:

VERSION=1.9.3-p484
brew update
brew install rbenv ruby-build rbenv-vars readline ctags
if [ -n "${ZSH_VERSION:-}" ]; then
  echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.zshrc
else
  echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.bash_profile
fi
eval "$(rbenv init - --no-rehash)" # load rbenv in the current shell
CONFIGURE_OPTS="--disable-install-doc --with-readline-dir=$(brew --prefix readline)" rbenv install $VERSION
rbenv global $VERSION
gem install --no-ri --no-rdoc bundler rbenv-rehash git-up hitch gem-browse gem-ctags cheat awesome_print pry
gem ctags



Next, run this:


$ gem install debugger -- --with-ruby-include=~/.rbenv/versions/1.9.3-p484/include
Fetching: debugger-ruby_core_source-1.3.1.gem (100%)
Fetching: debugger-1.6.5.gem (100%)
Building native extensions.  This could take a while...
Successfully installed debugger-ruby_core_source-1.3.1
Successfully installed debugger-1.6.5
2 gems installed

Yet another dependency error...


Installing launchy (2.2.0)
0:  launchy (2.2.0) from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/specifications/launchy-2.2.0.gemspec

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /Users/lex/.rbenv/versions/1.9.3-p484/bin/ruby extconf.rb 
creating Makefile
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
Using compiler: g++
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o has no symbols
In file included from ../src/accessors.cc:28:
In file included from ../src/v8.h:60:
In file included from ../src/objects-inl.h:38:
In file included from ../src/elements.h:33:
In file included from ../src/heap.h:41:
../src/store-buffer.h:229:9: error: private field 'heap_' is not used [-Werror,-Wunused-private-field]
  Heap* heap_;
        ^
1 error generated.
make[1]: *** [/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o] Error 1
make: *** [x64.release] Error 2
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound)
 from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/location.rb:35:in `each'
 from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/location.rb:35:in `verify_installation!'
 from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/location.rb:26:in `install!'
 from extconf.rb:7:in `
' GYP_GENERATORS=make \ build/gyp/gyp --generator-output="out" build/all.gyp \ -Ibuild/standalone.gypi --depth=. \ -Dv8_target_arch=x64 \ -S.x64 -Dv8_can_use_vfp_instructions=true CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/conversions.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/diy-fp.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/dtoa.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fast-dtoa.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fixed-dtoa.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/once.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparse-data.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser-api.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/scanner.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/strtod.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/token.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/unicode.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/utils.o LIBTOOL-STATIC /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/libpreparser_lib.a CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser/preparser/preparser-process.o LINK(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/preparser CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o Gem files will remain installed in /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13 for inspection. Results logged to /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/gem_make.out /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/rubygems/installer.rb:562:in `rescue in block in build_extensions' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/rubygems/installer.rb:540:in `block in build_extensions' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/rubygems/installer.rb:515:in `each' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/rubygems/installer.rb:515:in `build_extensions' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/rubygems/installer.rb:180:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/source/rubygems.rb:95:in `block in install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/rubygems_integration.rb:118:in `preserve_paths' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/source/rubygems.rb:94:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:111:in `block in install_gem_from_spec' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/rubygems_integration.rb:150:in `with_build_args' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:110:in `install_gem_from_spec' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:295:in `block in install_sequentially' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/forwardable.rb:201:in `each' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/forwardable.rb:201:in `each' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:294:in `install_sequentially' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:97:in `run' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:15:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:257:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/command.rb:27:in `run' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_command' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor.rb:363:in `dispatch' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/base.rb:438:in `start' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:10:in `start' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `block in ' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `' /Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `load' /Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `
' An error occurred while installing libv8 (3.11.8.13), and Bundler cannot continue. Make sure that `gem install libv8 -v '3.11.8.13'` succeeds before bundling. Bundler::InstallError: An error occurred while installing libv8 (3.11.8.13), and Bundler cannot continue. Make sure that `gem install libv8 -v '3.11.8.13'` succeeds before bundling. /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:143:in `rescue in install_gem_from_spec' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:106:in `install_gem_from_spec' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:295:in `block in install_sequentially' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:294:in `install_sequentially' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:97:in `run' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:15:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:257:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/command.rb:27:in `run' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_command' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor.rb:363:in `dispatch' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/base.rb:438:in `start' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:10:in `start' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `block in ' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `' /Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `load' /Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `
' $ gem install libv8 -v '3.11.8.13' Building native extensions. This could take a while... ERROR: Error installing libv8: ERROR: Failed to build gem native extension. /Users/lex/.rbenv/versions/1.9.3-p484/bin/ruby extconf.rb creating Makefile Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Unable to find a compiler officially supported by v8. It is recommended to use GCC v4.4 or higher Using compiler: g++ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o has no symbols In file included from ../src/accessors.cc:28: In file included from ../src/v8.h:60: In file included from ../src/objects-inl.h:38: In file included from ../src/elements.h:33: In file included from ../src/heap.h:41: ../src/store-buffer.h:229:9: error: private field 'heap_' is not used [-Werror,-Wunused-private-field] Heap* heap_; ^ 1 error generated. make[1]: *** [/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o] Error 1 make: *** [x64.release] Error 2 /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound) from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/location.rb:35:in `each' from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/location.rb:35:in `verify_installation!' from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/location.rb:26:in `install!' from extconf.rb:7:in `
' GYP_GENERATORS=make \ build/gyp/gyp --generator-output="out" build/all.gyp \ -Ibuild/standalone.gypi --depth=. \ -Dv8_target_arch=x64 \ -S.x64 -Dv8_can_use_vfp_instructions=true CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/conversions.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/diy-fp.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/dtoa.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fast-dtoa.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fixed-dtoa.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/once.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparse-data.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser-api.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/scanner.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/strtod.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/token.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/unicode.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/utils.o LIBTOOL-STATIC /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/libpreparser_lib.a CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser/preparser/preparser-process.o LINK(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/preparser CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o Gem files will remain installed in /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13 for inspection. Results logged to /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/gem_make.out $ gem install libv8 -v '3.16.14.3' -- --with-system-v8 Fetching: libv8-3.16.14.3-x86_64-darwin-13.gem (100%) Successfully installed libv8-3.16.14.3-x86_64-darwin-13 1 gem installed Installing ri documentation for libv8-3.16.14.3-x86_64-darwin-13... Installing RDoc documentation for libv8-3.16.14.3-x86_64-darwin-13... $ bundle config build.libv8 --with-system-v8 $ bundle install

Keep all versions at level specified in Gemfile.lock and use the "bundle update GEM_NAME" command to get the the newest gem version of therubyracer.


$ bundle update therubyracer
Your Gemfile lists the gem launchy (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Fetching from: https://rubygems.org/api/v1/dependencies
HTTP Redirection
Fetching from: https://bundler.rubygems.org/api/v1/dependencies
HTTP Success
. . .

References

http://rubygems.org/gems/rubygems-update/versions
http://bundler.io/v1.3/bundle_config.html
http://cache.ruby-lang.org/pub/ruby/