One of things you need to do to get Rmagick installed
apt-get install libmagick9-dev
When I try that I get the following errors
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libmagick9-dev: Depends: libjpeg62-dev but it is not going to be installed
Depends: libbz2-dev but it is not going to be installed
Depends: libtiff4-dev but it is not going to be installed
Depends: libwmf-dev (>= 0.2.7-1) but it is not going to be installed
Depends: libz-dev
Depends: libpng12-dev but it is not going to be installed
Depends: libfreetype6-dev but it is not going to be installed
Depends: libexif-dev but it is not going to be installed
Depends: libdjvulibre-dev but it is not going to be installed
Depends: librsvg2-dev but it is not going to be installed
Depends: libgraphviz-dev but it is not going to be installed
E: Broken packages
I don't know what to do to fix this?