I am really struggling to understand the meaning of the error below. I develop on OS X Lion, and I have RMagick installed there, and my code works flawlessly.
Yet on the production RedHat machine, the below:
MissingSourceFile (no such file to load -- RMagick2.so):
rmagick (2.13.1) [v] lib/RMagick.rb:11
Yes, I installed the rmagick gem locally to both machines. And I have unpacked the gem on each machine to vendor/gems.
What is probably the funniest to me is that this error is so stupid. There’s not an RMagick.so file on my Mac either, but the code works.
What is the problem here?
So I removed this gem from vendor/gems, because unpacking it evidently misses the dynamic library.
Then I created a new file:
/etc/ld.so.conf.d/local.conf
and put this in there:
And now it is working.