I am trying to run a ruby program that requires DL. It was written for ruby 1.9.3-p392 and I have tried it on 1.9.3-p392, 1.9.3-p484, 1.9.3-p547 -- all installed via rbenv on a new MBP running Mavericks. (It worked on my last machine, but not this new machine)
The error I am getting is as follows:
>> require 'dl'
MissingSourceFile: cannot load such file -- dl
from /Users/user/.rbenv/versions/1.9.3-p547/lib/ruby/gems/1.9.1/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
I have tried reinstalling ruby versions and compiling with gcc instead of clang as detailed in "Spring doesn't work. [ uninitialized constant Spring::SID::DL ]", which seemed similar, but did not help.
The program works fine on co-workers machines, so I know there isn't a code error. (Also I should be able to do a require 'dl' from the console.)
I have tried manually doing a gem install dl
which works fine, but doesn't fix the problem.