# Could not find rmagick locally or in a repository

**URL:** <https://www.ruby-forum.com/t/could-not-find-rmagick-locally-or-in-a-repository/182858>\
**Category:** Rails\
**Created:** [February 3, 2010, 11:16pm UTC](https://www.ruby-forum.com/t/could-not-find-rmagick-locally-or-in-a-repository/182858 "2010-02-03T23:16:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vihrao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/f07891/32.png) [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Post date:** [February 3, 2010, 11:16pm UTC](https://www.ruby-forum.com/t/could-not-find-rmagick-locally-or-in-a-repository/182858/1 "2010-02-03T23:16:01Z")

</div>

I unzipped simple captcha in vendor/plugins  
Then I did

> rake simple\_captcha:setup  
> Gave error:  
> rake aborted!  
> no such file to load – RMagick2.so

SO I thought Rmagick has to be installed.

So downloaded  
2.12.0 binary gem for Ruby 1.8.6 DT 2009-10-04 16:05  
RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip

Unzipped the file

Ran ImageMagick-6.5.6-8-Q8-windows-dll.exe  
It installed the program in windows/program files directory. I thought  
it was supposed to install in Ruby Dr.

Then I did

> gem install rmagick --local  
> gives error: ERROR: could not find gem rmagick locally or in a  
> repository

I am lost completely with this. Can someopne please help?  
I have been struggling with install for 2 days - which should take  
couple of minutes.

---

<div class="post-metadata">

**Author:** ![vihrao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/f07891/32.png) [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Post date:** [February 4, 2010, 2:07pm UTC](https://www.ruby-forum.com/t/could-not-find-rmagick-locally-or-in-a-repository/182858/2 "2010-02-04T14:07:11Z")

</div>

> I thought it was supposed to install in Ruby Dr.  
> No, ImageMagick is not a ruby library, its a standalone application.

RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip contains a file called  
“rmagick-2.12.0-x86-mswin32.gem”. Extract this file somewhere, for  
instance c:\rmagick

On the command prompt run:  
cd /rmagick  
gem install rmagick --local

---

<div class="post-metadata">

**Author:** ![vihrao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/f07891/32.png) [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Post date:** [February 4, 2010, 5:01pm UTC](https://www.ruby-forum.com/t/could-not-find-rmagick-locally-or-in-a-repository/182858/3 "2010-02-04T17:01:16Z")

</div>

Its been a while since I worked with imagemagick/rmagick, so I am not  
sure.

Is imagemagick added to your windows PATH environment variable?  
If not, add it.  
(The path is something like “C:\Program Files\ImageMagick-6.5.6-Q16”)  
And you need to reboot after that is done.

---

<div class="post-metadata">

**Author:** ![vihrao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/f07891/32.png) [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Post date:** [February 4, 2010, 7:51pm UTC](https://www.ruby-forum.com/t/could-not-find-rmagick-locally-or-in-a-repository/182858/4 "2010-02-04T19:51:59Z")

</div>

Sharagoz – wrote:

> Its been a while since I worked with imagemagick/rmagick, so I am not  
> sure.
> 
> Is imagemagick added to your windows PATH environment variable?  
> If not, add it.  
> (The path is something like “C:\Program Files\ImageMagick-6.5.6-Q16”)  
> And you need to reboot after that is done.

The path is there. I rebooted and ran the command:  
rake simple\_captcha:setup  
Gives error:  
The application has failed to start becausee msvcrt-ruby18.dll was not  
found. reinstalling the applicaiton may fix the problem.  
Which application should I reinstall - ruby, rmagica, simple\_captcha

---

<div class="post-metadata">

**Author:** ![vihrao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/f07891/32.png) [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Post date:** [February 4, 2010, 3:53pm UTC](https://www.ruby-forum.com/t/could-not-find-rmagick-locally-or-in-a-repository/182858/5 "2010-02-04T15:53:48Z")

</div>

Sharagoz – wrote:

> RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip contains a file called  
> “rmagick-2.12.0-x86-mswin32.gem”. Extract this file somewhere, for  
> instance c:\rmagick
> 
> On the command prompt run:  
> cd /rmagick  
> gem install rmagick --local

Thank you. I got the Rmagick installed as below.

C:\VR\downloads\RMagick-2.12.0-ImageMagick-6.5.6-8-Q8\>gem install  
RMagick  
Successfully installed rmagick-2.12.0-x86-mswin32  
1 gem installed  
Installing ri documentation for rmagick-2.12.0-x86-mswin32…  
Installing RDoc documentation for rmagick-2.12.0-x86-mswin32…

Then I install simple\_captcha, I get following error:  
C:\VR\RailsPrograms\health\vendor\plugins\>rake simple\_captcha:setup  
(in C:/VR/RailsPrograms/health)  
rake aborted!  
126: The specified module could not be found. -  
C:/Ruby19/lib/ruby/gems/1.9.1/  
gems/rmagick-2.12.0-x86-mswin32/ext/RMagick2.so  
(See full trace by running task with --trace)

Can you please tell me what else needs to be done.

---

<div class="post-metadata">

**Author:** ![vihrao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/f07891/32.png) [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Post date:** [February 4, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/could-not-find-rmagick-locally-or-in-a-repository/182858/6 "2010-02-04T20:08:41Z")

</div>

You really should try to do some research on your own before asking  
questions in forums. Most questions have already been asked and  
answered. Simply googling for “msvcrt-ruby18.dll” results in the answer  
at the 2nd hit.

Quote, Tim H., creator of Rmagick:  
“RMagick 2 can be built to run with Ruby 1.9.0 when you build RMagick  
from source. However, I built the Win32 gem with Ruby 1.8.6. There is no  
pre-built version of RMagick that works with Ruby 1.9.0.”

What’s he’s saying is that you’ll need ruby 1.8.6 to run Rmagick on  
windows, unless you want to try and compile Rmagick from source yourself  
with ruby 1.9

---

<div class="post-metadata">

**Author:** ![vihrao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/f07891/32.png) [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Post date:** [February 4, 2010, 8:15pm UTC](https://www.ruby-forum.com/t/could-not-find-rmagick-locally-or-in-a-repository/182858/7 "2010-02-04T20:15:00Z")

</div>

Sharagoz – wrote:

> You really should try to do some research on your own before asking  
> questions in forums. Most questions have already been asked and  
> answered. Simply googling for “msvcrt-ruby18.dll” results in the answer  
> at the 2nd hit.
> 
> Quote, Tim H., creator of Rmagick:  
> “RMagick 2 can be built to run with Ruby 1.9.0 when you build RMagick  
> from source. However, I built the Win32 gem with Ruby 1.8.6. There is no  
> pre-built version of RMagick that works with Ruby 1.9.0.”
> 
> What’s he’s saying is that you’ll need ruby 1.8.6 to run Rmagick on  
> windows, unless you want to try and compile Rmagick from source yourself  
> with ruby 1.9

Thank you. I know I have to do some searching around before posting.

---

<div class="post-metadata">

**Author:** ![vihrao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/f07891/32.png) [@vihrao](https://www.ruby-forum.com/u/vihrao)\
**Post date:** [June 23, 2010, 5:08pm UTC](https://www.ruby-forum.com/t/could-not-find-rmagick-locally-or-in-a-repository/182858/8 "2010-06-23T17:08:03Z")

</div>

Vishwa R. wrote:

> Sharagoz – wrote:
> 
> > You really should try to do some research on your own before asking  
> > questions in forums. Most questions have already been asked and  
> > answered. Simply googling for “msvcrt-ruby18.dll” results in the answer  
> > at the 2nd hit.
> > 
> > Quote, Tim H., creator of Rmagick:  
> > “RMagick 2 can be built to run with Ruby 1.9.0 when you build RMagick  
> > from source. However, I built the Win32 gem with Ruby 1.8.6. There is no  
> > pre-built version of RMagick that works with Ruby 1.9.0.”
> > 
> > What’s he’s saying is that you’ll need ruby 1.8.6 to run Rmagick on  
> > windows, unless you want to try and compile Rmagick from source yourself  
> > with ruby 1.9
> 
> Thank you. I know I have to do some searching around before posting.

or use this tips 😃

[http://www.waydotnet.com/blog/2010/02/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/](http://www.waydotnet.com/blog/2010/02/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/)

WaYdotNET  
Carlo Bertini

> **[WaYdotNET WebSite](https://www.waydotnet.com/)**
>
> This is My New Hugo Site
