I ran into trouble the other day running
rspec on my project. It had been working just fine the day before, but all of a sudden:
/Users/mburke/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/i686-darwin12.3.0/digest/sha1.bundle: dlopen(/Users/mburke/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/i686-darwin12.3.0/digest/sha1.bundle, 9): Library not loaded: /opt/local/lib/libcrypto.1.0.0.dylib (LoadError)
From what I could Google up, this happens when ruby is missing an
OpenSSL dependency. Then I remembered that yesterday in a fit of irrational rage I had removed
MacPorts. MacPorts supplied the
OpenSSL library that my ruby installation was linked against (notice Ruby was looking in
/opt/local/ which is where MacPorts installs things)
RVM now has the ability to install dependencies automatically:
1 2 3 4 5 6 7 8 9 10 11
I will probably have to do the last line for each ruby version I have installed.
I did get an error:
Installing required custom packages: homebrew/versions homebrew/versions….
Error running ‘requirements_osx_brew_install_custom homebrew/versions homebrew/versions’,
please read /Users/mburke/.rvm/log/1378383360_ruby-1.8.7-p302/install_custom.log
Requirements installation failed with status: 1.
But checking the log yielded
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
That doesn’t seem like an error, but whatever. So I just ran the command again. Now my machine is happily compiling and installing
openssl1098. Soon a fixed ruby install will be available.