jxhwlq
Last Updated: February 25, 2016
·
390
· baltazore

Spring error with `uninitialized constant Spring::SID::DL (NameError)`

When you have ruby installed with rbenv and have following error while starting spring rails c

lib/spring/sid.rb:17:in `fiddle_func': uninitialized constant Spring::SID::DL (NameError)

All you need is reinstall ruby with this patch:

ruby-install -p https://gist.githubusercontent.com/caius/10452604/raw/acd421a8461f4d776a8f752663db19e321f850e0/ext_dl_extconf_rb.patch ruby *your version here*

Or rbenv version of this:

rbenv install --patch 1.9.3-p551 < <(curl -sSL https://gist.githubusercontent.com/caius/10452604/raw/acd421a8461f4d776a8f752663db19e321f850e0/ext_dl_extconf_rb.patch)

Thanks to: https://github.com/rails/spring/issues/274#issuecomment-40185955