# Installing RMagick with Gmagick on xp64!

**URL:** <https://www.ruby-forum.com/t/installing-rmagick-with-gmagick-on-xp64/136268>\
**Category:** Ruby\
**Created:** [April 30, 2008, 9:00am UTC](https://www.ruby-forum.com/t/installing-rmagick-with-gmagick-on-xp64/136268 "2008-04-30T09:00:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Gunn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/8edcca/32.png) [@Chris\_Gunn](https://www.ruby-forum.com/u/Chris_Gunn)\
**Post date:** [April 30, 2008, 9:00am UTC](https://www.ruby-forum.com/t/installing-rmagick-with-gmagick-on-xp64/136268/1 "2008-04-30T09:00:46Z")

</div>

With Ruby -186-26

I installed GMagic first. v 1.1.11 q16  
as I wanted some simple graphics. lines etc.  
Then I installed RMagic 2.3.0

Now, it’s in the gem list:  
\*\*\* LOCAL GEMS \*\*\*

fxri (0.3.6)  
fxruby (1.6.12)  
hpricot (0.6)  
log4r (1.0.5)  
rake (0.7.3)  
rmagick (2.3.0) \<\<=== see? it’s here!  
rubygems-update (1.1.1)  
sources (0.0.1)  
win32-api (1.0.4)  
win32-clipboard (0.4.3)  
win32-dir (0.3.2)  
win32-eventlog (0.4.6)  
win32-file (0.5.4)  
win32-file-stat (1.2.7)  
win32-process (0.5.3)  
win32-sapi (0.1.4)  
win32-sound (0.4.1)  
windows-api (0.2.0)  
windows-pr (0.7.2)

However the following code:

require ‘rubygems’  
require ‘RMagick’

when executed results in a window saying:  
The procedure entry point EncipherImage could not be located in the  
dynamic link library CORE\_RL\_magic\_.dll

Then txt to the console says:

c:/Program Files  
(x86)/ruby/gems/1.8/gems/rmagick-2.3.0-x86-mswin32/ext/RMagick2.so:  
127: The specified procedure could not be found.  
… etc

So, where am I going wrong?

_desparate_

TIA!

---

<div class="post-metadata">

**Author:** ![Chris\_Gunn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/8edcca/32.png) [@Chris\_Gunn](https://www.ruby-forum.com/u/Chris_Gunn)\
**Post date:** [April 30, 2008, 9:35am UTC](https://www.ruby-forum.com/t/installing-rmagick-with-gmagick-on-xp64/136268/2 "2008-04-30T09:35:08Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Chris Gunn wrote:  
| With Ruby -186-26  
|  
| I installed GMagic first. v 1.1.11 q16  
| as I wanted some simple graphics. lines etc.  
| Then I installed RMagic 2.3.0

|  
| require ‘rubygems’  
| require ‘RMagick’  
|  
| when executed results in a window saying:  
| The procedure entry point EncipherImage could not be located in the  
| dynamic link library CORE\_RL\_magic\_.dll  
|  
| Then txt to the console says:  
|  
| c:/Program Files  
| (x86)/ruby/gems/1.8/gems/rmagick-2.3.0-x86-mswin32/ext/RMagick2.so:  
| 127: The specified procedure could not be found.  
| … etc  
|  
|  
| So, where am I going wrong?

Probably by installing an ImageMagick fork. From a superficial  
eyeballing of GraphicsMagick (which tells me it was forked off of  
ImageMagick 5.5.2), you get the issue that RMagick cannot use the DLL  
provided by your installation of GMagick. (Oh the joyful world of  
forks…)

Anyway, to solve your question / issue:

The RMagick FAQ says to use the mswin32 gem (which, at least the last  
time I had it installed, sort-of breaks RubyGems, but I’m too lazy to  
file a bug, let alone find out if it is one), which comes with a bundled  
ImageMagick that you have to use.

The FAQ:  
[http://rmagick.rubyforge.org/install-faq.html#win](http://rmagick.rubyforge.org/install-faq.html#win)

You can grab the Gem / ImageMagick version from

[http://rubyforge.org/frs/?group\_id=12](http://rubyforge.org/frs/?group_id=12)

* * *

Phillip G.  
Twitter: [twitter.com/cynicalryan](http://twitter.com/cynicalryan)  
Blog: [http://justarubyist.blogspot.com](http://justarubyist.blogspot.com)

Make sure comments and code agree.  
~ - The Elements of Programming Style (Kernighan & Plaugher)  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.8 (MingW32)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org](http://enigmail.mozdev.org)

iEYEARECAAYFAkgYIEMACgkQbtAgaoJTgL9wIwCgocsLRZT+bTvx5/zuPg9hMEg2  
U+4An3bkvTGXgQXSealGz5TdLn3dEwuX  
=gyMC  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![Chris\_Gunn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/8edcca/32.png) [@Chris\_Gunn](https://www.ruby-forum.com/u/Chris_Gunn)\
**Post date:** [April 30, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/installing-rmagick-with-gmagick-on-xp64/136268/3 "2008-04-30T13:15:59Z")

</div>

On Wed, 30 Apr 2008 02:34:34 -0500, Phillip G.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> |  
> | (x86)/ruby/gems/1.8/gems/rmagick-2.3.0-x86-mswin32/ext/RMagick2.so:
> 
> Anyway, to solve your question / issue:
> 
> The RMagick FAQ says to use the mswin32 gem (which, at least the last  
> time I had it installed, sort-of breaks RubyGems, but I’m too lazy to  
> file a bug, let alone find out if it is one), which comes with a bundled  
> ImageMagick that you have to use.
> 
> The FAQ:  
> [http://rmagick.rubyforge.org/install-faq.html#win](http://rmagick.rubyforge.org/install-faq.html#win)

I largely followed this, except I went the Gmagick way.

> You can grab the Gem / ImageMagick version from
> 
> [http://rubyforge.org/frs/?group\_id=12](http://rubyforge.org/frs/?group_id=12)

So what you are saying is I should go the Imagick way.

Should I uninstall Gmagick first?

Gunn

---

<div class="post-metadata">

**Author:** ![Chris\_Gunn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/8edcca/32.png) [@Chris\_Gunn](https://www.ruby-forum.com/u/Chris_Gunn)\
**Post date:** [May 1, 2008, 6:20am UTC](https://www.ruby-forum.com/t/installing-rmagick-with-gmagick-on-xp64/136268/4 "2008-05-01T06:20:44Z")

</div>

On Wed, 30 Apr 2008 06:30:24 -0500, Phillip G.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Probably not necessary. Though, unless something else depends on it, it  
> might be a good idea to remove it (what, with DLL Hell, and all…).

I didn’t unintall Gmagic, installed Imagic, and it’s much happier!

Thanks!

Gunn

---

<div class="post-metadata">

**Author:** ![Chris\_Gunn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/8edcca/32.png) [@Chris\_Gunn](https://www.ruby-forum.com/u/Chris_Gunn)\
**Post date:** [April 30, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/installing-rmagick-with-gmagick-on-xp64/136268/5 "2008-04-30T13:31:24Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Chris Gunn wrote:

|  
| So what you are saying is I should go the Imagick way.  
|  
| Should I uninstall Gmagick first?

Probably not necessary. Though, unless something else depends on it, it  
might be a good idea to remove it (what, with DLL Hell, and all…).

* * *

Phillip G.  
Twitter: [twitter.com/cynicalryan](http://twitter.com/cynicalryan)  
Blog: [http://justarubyist.blogspot.com](http://justarubyist.blogspot.com)

Use statement labels that mean something.  
~ - The Elements of Programming Style (Kernighan & Plaugher)  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.8 (MingW32)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org](http://enigmail.mozdev.org)

iEYEARECAAYFAkgYWE4ACgkQbtAgaoJTgL+26QCeNjJly7uhovgI1Sc+lnMChK3T  
W3IAn11AWU2cPAXfCm+InjKii1F8Z4uZ  
=M2Wu  
-----END PGP SIGNATURE-----
