# could not find rmagick locally or in a repository

**URL:** <https://discuss.rubyonrails.org/t/could-not-find-rmagick-locally-or-in-a-repository/49098>\
**Category:** rubyonrails-talk\
**Created:** [February 3, 2010, 10:16pm UTC](https://discuss.rubyonrails.org/t/could-not-find-rmagick-locally-or-in-a-repository/49098 "2010-02-03T22:16:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [February 3, 2010, 10:16pm UTC](https://discuss.rubyonrails.org/t/could-not-find-rmagick-locally-or-in-a-repository/49098/1 "2010-02-03T22: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:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [February 4, 2010, 1:07pm UTC](https://discuss.rubyonrails.org/t/could-not-find-rmagick-locally-or-in-a-repository/49098/2 "2010-02-04T13: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:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [February 4, 2010, 2:53pm UTC](https://discuss.rubyonrails.org/t/could-not-find-rmagick-locally-or-in-a-repository/49098/3 "2010-02-04T14: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:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [February 4, 2010, 4:01pm UTC](https://discuss.rubyonrails.org/t/could-not-find-rmagick-locally-or-in-a-repository/49098/4 "2010-02-04T16: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:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [February 4, 2010, 6:51pm UTC](https://discuss.rubyonrails.org/t/could-not-find-rmagick-locally-or-in-a-repository/49098/5 "2010-02-04T18: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:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [February 4, 2010, 7:08pm UTC](https://discuss.rubyonrails.org/t/could-not-find-rmagick-locally-or-in-a-repository/49098/6 "2010-02-04T19: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 Hunter, 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:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [February 4, 2010, 7:15pm UTC](https://discuss.rubyonrails.org/t/could-not-find-rmagick-locally-or-in-a-repository/49098/7 "2010-02-04T19: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 Hunter, 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:** ![11155](https://avatars.discourse-cdn.com/v4/letter/1/d26b3c/32.png) [@11155](https://discuss.rubyonrails.org/u/11155)\
**Post date:** [June 23, 2010, 3:08pm UTC](https://discuss.rubyonrails.org/t/could-not-find-rmagick-locally-or-in-a-repository/49098/8 "2010-06-23T15:08:03Z")

</div>

Vishwa Rao 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 Hunter, 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 www.waydotnet.com
