Debian Etch: RMagick LoadError

| Posted: - Last updated:
| Tagged general rubyonrails ruby ruby on rails rails imagemagick libmagickwand magick rmagick
| ~200wrds (~1min)

If you’re on Debian Etch, you may encounter the following error cannot open shared object file: No such file or directory - /usr/lib/ruby/gems/1.8/gems/rmagick-2.3.0/lib/

This basically means that the file cannot be found. However, it is available on your system. All you need to do to fix it, is tell your box to look in the right place for the file.

To fix this issue once and for all, open up /etc/ The whatever_file_is_here is named after the kernel you have installed.

In this file, add the following line at the bottom


Save the file and next run the ‘ldconfig’ command. This will reread the configuration file you just edited. Now, restart your Rails app and you’ll notice the error is gone and all is good again.


This change will be kept after you reboot, so you won’t encounter this error any time soon again.

My site is free of ads and trackers. I record privacy-respecting usage statistics with Fathom.

Was this post helpful to you? Why not ☕ Buy me a coffee or use Brave Browser to send a tip.