I am getting following error when trying to run rails application:-
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/rmagick-2.12.2/lib/RMag
I solved this problem on RHEL5 with the following changes:
add the following lines:
/usr/lib /usr/local/lib
run ldconfig
ldconfig
This fixed the issue for me. (On to the next dependency ..)