I finally made it work. Although the gem installation process encountered an error, turns out the error occured after the gem had been installed, during the documentation setup, which is really not important.

The trick after that was to include the line:
require '/home//gems/gems/rmagick-1.15.6/lib/RMagick’
at the end of the config/environment.rb file. Then you can use RMagick.