# Problem Installing RMagick with Instant Rails on Windows

**URL:** <https://www.ruby-forum.com/t/problem-installing-rmagick-with-instant-rails-on-windows/120990>\
**Category:** Rails\
**Created:** [November 22, 2007, 1:10pm UTC](https://www.ruby-forum.com/t/problem-installing-rmagick-with-instant-rails-on-windows/120990 "2007-11-22T13:10:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Walter\_Lockhart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba8739/32.png) [@Walter\_Lockhart](https://www.ruby-forum.com/u/Walter_Lockhart)\
**Post date:** [November 22, 2007, 1:10pm UTC](https://www.ruby-forum.com/t/problem-installing-rmagick-with-instant-rails-on-windows/120990/1 "2007-11-22T13:10:21Z")

</div>

I’m running Instant Rails 1.4 on Windows XP with SP2.

I have downloaded the Windows binary version of RMagick from the  
RubyForge page.

Specifically, I have downloaded:

1.14.1 binary gem for Ruby 1.8.5 (fixed for RubyGems 0.9.4)  
RMagick-1.14.1\_IM-6.3.0-7-Q8-2.zip

I have removed any older versions of RMagick using:

gem uninstall RMagick

I have updated my version of rubygems.

I executed the ImageMagick installer found in the zip file and  
selected the “Update executable search path” from the installation  
options.

I then installed the gem:

gem install rmagick --local

and received the response:

Successfully installed rmagick-1.14.1-unknown  
1 gem installed

Unfortunately, when I type the following at a Rails Console prompt:

> > require ‘RMagick’

I receive the response:

require 'RMagick’MissingSourceFile: no such file to load – RMagick

Similarly, when I attempt to use RMagick within my Rails application  
(I use it to resize an uploaded image) I get the following message:

Problems loading rmagickProcessor: no such file to load – RMagick

When I place the line:

require ‘RMagick’

in the application’s environment.rb the application fails with the  
message:

## ExitingC:/InstantRails/ruby/lib/ruby/site\_ruby/1.8/rubygems/ custom\_require.rb:27:in `gem\_original\_require’: no such file to load

RMagick (MissingSourceFile)

I have been searching the Internet for days now and I still can’t seem  
to make progress. Can anyone out there please help me?

Thanks in advance.

Kind Regards

Walter

---

<div class="post-metadata">

**Author:** ![Walter\_Lockhart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba8739/32.png) [@Walter\_Lockhart](https://www.ruby-forum.com/u/Walter_Lockhart)\
**Post date:** [November 25, 2007, 9:07pm UTC](https://www.ruby-forum.com/t/problem-installing-rmagick-with-instant-rails-on-windows/120990/2 "2007-11-25T21:07:24Z")

</div>

Thanks for posting that. I was just struggling with the installation  
of the gem.

I upgraded to gem 0.9.4 and installed RMagick ok.

BTW there is some also some information here:

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

Tonypm

---

<div class="post-metadata">

**Author:** ![Walter\_Lockhart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba8739/32.png) [@Walter\_Lockhart](https://www.ruby-forum.com/u/Walter_Lockhart)\
**Post date:** [November 22, 2007, 3:31pm UTC](https://www.ruby-forum.com/t/problem-installing-rmagick-with-instant-rails-on-windows/120990/3 "2007-11-22T15:31:39Z")

</div>

I woud like to thank Robin Mayfield for indirectly resolving my  
similar issue with RMagick.

RMagick is now installed and working.

Here’s what I did:

1. Downloaded 0.9.4 RubyGems zip file.

2. Ran the setup.rb

3. From within the unzipped RMagic-win32 directory I ran: gem install  
rmagick-1.14.1-win32.gem --local

I didn’t need to insert require ‘RMagick’ in the environment.rb file.

Yeeha!!

Apparently, RMagick doesn’t work with RubyGems 0.9.5.

Thanks again.

Regards

Walter

---

<div class="post-metadata">

**Author:** ![Walter\_Lockhart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba8739/32.png) [@Walter\_Lockhart](https://www.ruby-forum.com/u/Walter_Lockhart)\
**Post date:** [December 2, 2007, 9:31am UTC](https://www.ruby-forum.com/t/problem-installing-rmagick-with-instant-rails-on-windows/120990/4 "2007-12-02T09:31:38Z")

</div>

I encountered the same problem.

I do not know why this problem occurred.

but at last i solved the problem.  
my note computer installed the same rmagick environment.  
it contains : all files in c:\ruby\lib\ruby\gems\1.8\gems  
\rmagick-1.14.1-win32  
and c:\ruby\lib\ruby\gems\1.8\specifications\rmagick-1.14.1-  
win32.gemspec file.

copy them to my new installation environment,and delete the  
rmagick-1.14.1-unknown floder and rmagick-1.14.1-win32.gemspec file.

it is stupid, but doable.

have a try!

---

<div class="post-metadata">

**Author:** ![Walter\_Lockhart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba8739/32.png) [@Walter\_Lockhart](https://www.ruby-forum.com/u/Walter_Lockhart)\
**Post date:** [December 1, 2007, 9:43pm UTC](https://www.ruby-forum.com/t/problem-installing-rmagick-with-instant-rails-on-windows/120990/5 "2007-12-01T21:43:41Z")

</div>

thanks for the post. i downgraded rubygem from 0.9.5. to 0.9.4 on ruby  
1.8.5 to gets things rolling again.

for anybody struggling into mongrel or webrick “warning: already  
initialized constant OPTIONS” after that: complete your gem  
installations. there’s is one missing. 😉  
see:  
[http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options](http://www.dansketcher.com/2007/05/07/warning-already-initialized-constant-options)

---

<div class="post-metadata">

**Author:** ![Walter\_Lockhart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba8739/32.png) [@Walter\_Lockhart](https://www.ruby-forum.com/u/Walter_Lockhart)\
**Post date:** [January 5, 2008, 4:27am UTC](https://www.ruby-forum.com/t/problem-installing-rmagick-with-instant-rails-on-windows/120990/6 "2008-01-05T04:27:15Z")

</div>

Try to restart your computer. Worked for me 🙂

On Dec 2 2007, 12:31 am, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Walter\_Lockhart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba8739/32.png) [@Walter\_Lockhart](https://www.ruby-forum.com/u/Walter_Lockhart)\
**Post date:** [June 8, 2008, 9:13am UTC](https://www.ruby-forum.com/t/problem-installing-rmagick-with-instant-rails-on-windows/120990/7 "2008-06-08T09:13:43Z")

</div>

Walter Lockhart wrote:

> I woud like to thank Robin Mayfield for indirectly resolving my  
> similar issue with RMagick.
> 
> RMagick is now installed and working.
> 
> Here’s what I did:
> 
> 1. Downloaded 0.9.4 RubyGems zip file.
> 
> 2. Ran the setup.rb
> 
> 3. From within the unzipped RMagic-win32 directory I ran: gem install  
> rmagick-1.14.1-win32.gem --local
> 
> I didn’t need to insert require ‘RMagick’ in the environment.rb file.
> 
> Yeeha!!
> 
> Apparently, RMagick doesn’t work with RubyGems 0.9.5.
> 
> Thanks again.
> 
> Regards
> 
> Walter

Hi Walter,  
It seems to me RMagick doesn’t work with RubyGems 1.0.1 either. Does any  
one know? Can someone please confirm?  
I got “loading RmagickProcessor: no such file to load – RMagick”  
message in the log. If I add:  
require ‘rubygems’  
require ‘RMagick’  
to the environment.rb, My server does not start up successful and the  
following message is in the server log:  
`gem\_original\_require’: no such file to load – RMagick  
(MissingSourceFile)

I used rmagick-2.3.0-mswin32 and ImageMagick-6.4.0-Q8.

I’m looking forward for any thoughts/suggestions.  
Thank you.

---

<div class="post-metadata">

**Author:** ![Walter\_Lockhart](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba8739/32.png) [@Walter\_Lockhart](https://www.ruby-forum.com/u/Walter_Lockhart)\
**Post date:** [June 24, 2008, 4:51am UTC](https://www.ruby-forum.com/t/problem-installing-rmagick-with-instant-rails-on-windows/120990/8 "2008-06-24T04:51:23Z")

</div>

I’m having the same problem with Gem 1.1.1 if I type into the IRB

> > require ‘rubygems’  
> > =\> false (this is normal it means that rubygems was allready loaded)

> > require ‘rmagick’  
> > =\> true

But when i try to start my server using ‘simple captcha’ plugin i get  
the error

/Applications/Aptana Studio/plugins/org.jruby\_1.1.0.5965\_RC2p2/lib/  
ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in

`require’: no such file to load – RMagick (MissingSourceFile)

I have RMagick installed, rails just can’t find it. I also have a  
similar problem with ruby-openid. can someone please help??
