swcng2001
swcng2001

Reputation: 31

Mountain Lion - Rails - Symbol not found: _rb_Digest_MD5_Finish (LoadError)

I am running Mountain Lion. After installing apple-gcc-4.2 using Macports (with a symlink to /usr/bin/gcc-4.2), rvm, ruby 1.9.3 and gem install rails, I received the error "Symbol not found: _rb_Digest_MD5_Finish (LoadError) Referenced from: /Users/userid/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/x86_64-darwin12.2.0/digest/md5.bundle" error when running 'rails new testapp'. I don't see this discussed anywhere and am completely stumped on how to proceed.

Any help would be much appreciated.

Thanks.

Stephen

Upvotes: 2

Views: 208

Answers (2)

Erik Peterson
Erik Peterson

Reputation: 4311

Check if C_INCLUDE_PATH is set. env | grep C_INCLUDE_PATH. If it is, remove it from your environment, and then rebuild Ruby.

Upvotes: 2

Lajos Viktor
Lajos Viktor

Reputation: 148

Install XQuartz and try reinstall Ruby, and Rails

It will solve the 'darwin' problems

Upvotes: 0

Related Questions