# Problem with Rmagick and simple captcha in Godaddy's ROR

**URL:** <https://www.ruby-forum.com/t/problem-with-rmagick-and-simple-captcha-in-godaddys-ror/122250>\
**Category:** Deployment\
**Created:** [December 5, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/problem-with-rmagick-and-simple-captcha-in-godaddys-ror/122250 "2007-12-05T22:25:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahaleo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7feea3/32.png) [@ahaleo](https://www.ruby-forum.com/u/ahaleo)\
**Post date:** [December 5, 2007, 10:25pm UTC](https://www.ruby-forum.com/t/problem-with-rmagick-and-simple-captcha-in-godaddys-ror/122250/1 "2007-12-05T22:25:28Z")

</div>

I am running into a problem with Godaddy’s Ruby on Rails (shared  
hosting) when trying to use simple captcha plugin with Rmagick. Here is  
the error:  
sh: line 1: gs: command not found  
sh: line 1: gs: command not found  
RMagick: unable to read font `arial'. RMagick: Postscript delegate failed`/tmp/magick-XX4CNdDE’.  
sh: line 1: gs: command not found  
sh: line 1: gs: command not found  
RMagick: unable to read font `arial'. RMagick: Postscript delegate failed`/tmp/magick-XXinMRaI’.

Any idea? Thanks for your help.

---

<div class="post-metadata">

**Author:** ![ahaleo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7feea3/32.png) [@ahaleo](https://www.ruby-forum.com/u/ahaleo)\
**Post date:** [December 6, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/problem-with-rmagick-and-simple-captcha-in-godaddys-ror/122250/2 "2007-12-06T21:05:20Z")

</div>

On Wed, 2007-12-05 at 22:25 +0100, Leo Chan wrote:

> I am running into a problem with Godaddy’s Ruby on Rails (shared  
> hosting) when trying to use simple captcha plugin with Rmagick. Here is  
> the error:  
> sh: line 1: gs: command not found

Hey Leo -

FWIW, I did a captcha thing for a client a while back. Rather than  
trying to set up a bunch of stuff on the server to generate the images  
in realtime, I generated a couple thousand images on my workstation  
along with the SQL necessary to load them up (e.g., INSERT INTO captcha  
(filename, word) VALUES (‘1.jpg’, ‘zgysd998’)). Then I put the files on  
the server in a directory that Apache could access, loaded up the SQL,  
and wrote a little code to generate the img tag and whatnot.

It was nice and fast since the images were just static files, and we  
could repopulate the table with new captchas just by rerunning a script.  
Food for thought, anyhow…

Yours,

Tom  
[http://generatingparserswithjavacc.com/](http://generatingparserswithjavacc.com/)

---

<div class="post-metadata">

**Author:** ![ahaleo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7feea3/32.png) [@ahaleo](https://www.ruby-forum.com/u/ahaleo)\
**Post date:** [December 6, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/problem-with-rmagick-and-simple-captcha-in-godaddys-ror/122250/3 "2007-12-06T19:45:00Z")

</div>

On Dec 5, 2007, at 1:25 PM, Leo Chan wrote:

> sh: line 1: gs: command not found  
> RMagick: unable to read font `arial'. RMagick: Postscript delegate failed `/tmp/magick-XXinMRaI’.
> 
> Any idea? Thanks for your help.

I’m not familiar with GoDaddy’s hosting service as I run a hosting  
firm… but from what I can see, it looks like maybe GhostScript isn’t  
installed on the server…

You might talk to their technical support.

Robby

–  
Robby R.  
Founder and Executive Director

PLANET ARGON, LLC  
Design, Development, and Hosting with Ruby on Rails

> **[Planet Argon](https://www.planetargon.com/)**
>
> Planet Argon is a Ruby on Rails development agency specializing in maintenance and support for existing Rails apps. Based in Portland, OR, Planet Argon has been a member of the Rails community since 2004.

[http://www.robbyonrails.com/](http://www.robbyonrails.com/)

+1 503 445 2457  
+1 877 55 ARGON [toll free]  
+1 815 642 4068 [fax]

---

<div class="post-metadata">

**Author:** ![ahaleo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7feea3/32.png) [@ahaleo](https://www.ruby-forum.com/u/ahaleo)\
**Post date:** [December 10, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/problem-with-rmagick-and-simple-captcha-in-godaddys-ror/122250/4 "2007-12-10T18:18:27Z")

</div>

Thanks Tom. Found out the problem is GoDaddy didn’t install GhostScript  
as Robby’s post has suggested. I ended up using recaptcha and a ruby  
plugin to talk to recaptcha server. It was simple enough and it only  
takes me less than an hour to implement. Also the added bonus is  
recaptcha also support audio, not just visual images. I thought that is  
pretty cool.

Leo

Tom C. wrote:

> On Wed, 2007-12-05 at 22:25 +0100, Leo Chan wrote:
> 
> > I am running into a problem with Godaddy’s Ruby on Rails (shared  
> > hosting) when trying to use simple captcha plugin with Rmagick. Here is  
> > the error:  
> > sh: line 1: gs: command not found
> 
> Hey Leo -
> 
> FWIW, I did a captcha thing for a client a while back. Rather than  
> trying to set up a bunch of stuff on the server to generate the images  
> in realtime, I generated a couple thousand images on my workstation  
> along with the SQL necessary to load them up (e.g., INSERT INTO captcha  
> (filename, word) VALUES (‘1.jpg’, ‘zgysd998’)). Then I put the files on  
> the server in a directory that Apache could access, loaded up the SQL,  
> and wrote a little code to generate the img tag and whatnot.
> 
> It was nice and fast since the images were just static files, and we  
> could repopulate the table with new captchas just by rerunning a script.  
> Food for thought, anyhow…
> 
> Yours,
> 
> Tom  
> [http://generatingparserswithjavacc.com/](http://generatingparserswithjavacc.com/)

---

<div class="post-metadata">

**Author:** ![ahaleo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7feea3/32.png) [@ahaleo](https://www.ruby-forum.com/u/ahaleo)\
**Post date:** [December 11, 2007, 4:02am UTC](https://www.ruby-forum.com/t/problem-with-rmagick-and-simple-captcha-in-godaddys-ror/122250/5 "2007-12-11T04:02:33Z")

</div>

On Mon, 2007-12-10 at 18:18 +0100, Leo Chan wrote:

> Thanks Tom. Found out the problem is GoDaddy didn’t install GhostScript  
> as Robby’s post has suggested. I ended up using recaptcha and a ruby  
> plugin to talk to recaptcha server. It was simple enough and it only  
> takes me less than an hour to implement. Also the added bonus is  
> recaptcha also support audio, not just visual images. I thought that is  
> pretty cool.

Ah, cool, yup, that _is_ nice!

Tom
