[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Installing RMagick with Gmagick on xp64!

Chris Gunn

4/30/2008 6:57:00 AM


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!
4 Answers

Phillip Gawlowski

4/30/2008 7:35:00 AM

0

-----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-fa...


You can grab the Gem / ImageMagick version from

http://rubyforge.org/frs/?g...


- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.bl...

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....

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

Chris Gunn

4/30/2008 11:13:00 AM

0

On Wed, 30 Apr 2008 02:34:34 -0500, Phillip Gawlowski
<cmdjackryan@googlemail.com> wrote:

>-----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-fa...

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

>You can grab the Gem / ImageMagick version from
>
>http://rubyforge.org/frs/?g...


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

Should I uninstall Gmagick first?


Gunn

Phillip Gawlowski

4/30/2008 11:30:00 AM

0

-----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 Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.bl...

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....

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

Chris Gunn

5/1/2008 4:18:00 AM

0

On Wed, 30 Apr 2008 06:30:24 -0500, Phillip Gawlowski
<cmdjackryan@googlemail.com> wrote:

>-----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..).

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



Thanks!


Gunn