Rails - Rake error: Library not loaded


I have read just about every post regarding rails errors looking for the solution to my issues and while I have resolved some, I come up with more. I upgraded to Snow Leopard and installed RVM and Rails according to the Agile Development with Rails book. However once I create my app folders and do RAKE, I get this error and I just can not figure out how to fix it. I've tried re-installing everything several times to no avail. Is this an architecture problem? or do I need to find a library and load it? how do I do that?

rake aborted! dlopen(/opt/local/lib/ruby/1.8/i686-darwin9/digest/sha1.bundle, 9): Library not loaded: /opt/local/lib/libcrypto.1.0.0.dylib Referenced from: /opt/local/lib/ruby/1.8/i686-darwin9/digest/sha1.bundle Reason: no suitable image found. Did find: /opt/local/lib/libcrypto.1.0.0.dylib: mach-o, but wrong architecture - /opt/local/lib/ruby/1.8/i686-darwin9/digest/sha1.bundle (See full trace by running task with --trace)


There was probably a change in your system. You might have moved or deleted some files or folders, which were needed by ruby.

rvm reinstall ree

Or spyle's answer is basically correct, but ewww macports. go go Homebrew!


I had this problem with ruby 1.8.7/passenger/apache stack. Reinstalling ruby (via macports) and rebuilding it against the openssl library fixed this for me.


  • Unable to load dynamic library php_zmq.dll - The specified module could not be found
  • Kotlin Higher Order Function Composition
  • Ternary Operators & Maintenance [closed]
  • Various issues installing igraph in Visual Studio 2010 and Cygwin/MinGW (“sys/time.h not found”)
  • three.js — fit a background image panorama
  • How can i share memory between parent-child process that free the memory automatically when they die
  • Executing JavaScript function in Code behind — How to Get the Return Value in Code Behind
  • Encoding/decoding PDP-11 assembly language to binary and hex?
  • Was default_marker removed from mapbox-gl.js
  • How to build executable with pyinstaller that uses pycryptodome?
  • Storyboard iOS MBProgressHUD
  • How to add CKEditor RTE to typo3 Backend Module with the API?
  • How do I detect if an email client is configured on an Android device?
  • android 3G signal strength
  • UIImage to UIColor array of pixel colors
  • Avoiding duplicated data in same table with jquery
  • Enable CORS on Tomcat 8.0.30
  • javax.net.ssl.SSLException: SSL handshake aborted Connection reset by peer while calling webservice
  • Running iPhone crash Logs from testers on XCode
  • Expression.Call GroupBy then Select and Count()?
  • Bundling python(“.py”)files along with java class files for a web application
  • Find all parks for a given zipcode with google maps
  • How to control xtics in gnuplot
  • playing mp3 from nsbundle
  • Run a form (insert/update/delete) from within a div using jquery
  • Facebook Error (#200) The user hasn't authorized the application to perform this action (PHP)
  • How to load dynamic images in custom ListView
  • Request Access Token in Postman for Azure Function App protected by Azure AD B2C
  • How to resolve this in PHPUnit where it is asking me to set KERNEL_DIR in my phpunit.xml?
  • What is the difference between dynamically creating a script tag and statically embed a script tag?
  • How to create subsets of a single set of elements with XSLT?
  • Make checkout phone field optional for specific countries in WooCommerce
  • calling IO Operations from thread in ruby c extension will cause ruby to hang
  • Python Flask - GUI for client
  • Angular 4: Responsive Grid List
  • Angular FormGroup won't update it's value immediately after patchValue or setValue
  • Write to .csv file with PHP (Commas in Data Error)
  • How to mutate multiple variables without repeating codes?
  • ReferenceError: TextEncoder is not defined
  • How to check if object is null in Java?