Rod McLaughlin

Issues with ImageMagick - 'unable to read font' (11 nov 12)

Trying to run a Rails app which uses RMagick and Gruff, I got an error:

"unable to read font '/usr/local/share/ghostscript/fonts/n019003l.pfb'"

Google found this:

Almost right, but I had to comment out line

# try_download

in script

after git had created folder ImageMagick-sl.

Then I copied the whole ImageMagick-sl folder, including the above script and the 'fonts' folder it had created, to /usr/local/share/

I created folder /usr/local/share/ghostscript (see error above)

Then I cd'd into /usr/local/share/ghostscript and did this

$ ln -s /usr/local/share/ImageMagick-sl/fonts fonts

This creates a soft link folder where my app thinks the fonts are, pointing to the real folder where the fonts really are.

I then changed the ownership on everything in /usr/local/share, so it belongs to group 'admin', restarted my app, and it works.

$ chown -R me:admin *


Portland London