# Can't install rmagick

**URL:** <https://www.ruby-forum.com/t/cant-install-rmagick/132670>\
**Category:** Ruby\
**Created:** [March 22, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/cant-install-rmagick/132670 "2008-03-22T23:43:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajatgarg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a183cd/32.png) [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Post date:** [March 22, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/cant-install-rmagick/132670/1 "2008-03-22T23:43:57Z")

</div>

Hi Guys,

I am trying to install gem - rmagick on Windows and not able to do so. I  
get  
following error message (run through Netbeans IDE)

* * *

INFO: `gem install -y` is now default and will be removed  
INFO: use --ignore-dependencies to install only the gems you list  
Updating metadata for 12 gems from [http://gems.rubyforge.org](http://gems.rubyforge.org)  
…  
complete  
Building native extensions. This could take a while…  
ERROR: Error installing rmagick:  
ERROR: Failed to build gem native extension.

C:/ruby/bin/ruby.exe extconf.rb install rmagick --no-rdoc --no-ri  
–include-dependencies --version \> 0

Gem files will remain installed in  
C:/ruby/lib/ruby/gems/1.8/gems/rmagick-  
2.2.2 for inspection.  
Results logged to C:/ruby/lib/ruby/gems/1.8/gems/rmagick-2.2.2  
/ext/RMagick/gem\_make.out

* * *

Please help.

Also, I have one linux server where I can get list of all ruby gems  
using  
‘gem list --local’ command. I want to have a similar set up on my  
windows  
desktop, so that I can do a lot more testing on my own…

Is there a way of “copying” the server environment to desktop  
environment?

## Thanks,

Rajat G.

Ph: 206-499-9495  
Add: 1314 Spring Street, #412  
Seattle, WA 98104  
Web: [http://www.pilotoutlook.com](http://www.pilotoutlook.com)

---

<div class="post-metadata">

**Author:** ![rajatgarg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a183cd/32.png) [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Post date:** [March 23, 2008, 1:11am UTC](https://www.ruby-forum.com/t/cant-install-rmagick/132670/2 "2008-03-23T01:11:29Z")

</div>

Rajat G. wrote:

> complete  
> Building native extensions. This could take a while…  
> ERROR: Error installing rmagick:  
> ERROR: Failed to build gem native extension.
> 
> C:/ruby/bin/ruby.exe extconf.rb install rmagick --no-rdoc --no-ri  
> –include-dependencies --version \> 0

Use the rmagick-win32 gem instead of the rmagick gem.

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

---

<div class="post-metadata">

**Author:** ![rajatgarg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a183cd/32.png) [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Post date:** [March 23, 2008, 7:51am UTC](https://www.ruby-forum.com/t/cant-install-rmagick/132670/3 "2008-03-23T07:51:15Z")

</div>

Thanks guys.

This got me moving to next step where all gems seem to be installed.  
However, after I start the server and I try to ping the server from a  
browser at [http://localhost:3000](http://localhost:3000)

Any ideas? Please help.

=\> Booting Mongrel (use ‘script/server webrick’ to force WEBrick)

=\> Rails application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)

=\> Call with -d to detach

=\> Ctrl-C to shutdown server

\*\* Starting Mongrel listening at 0.0.0.0:3000

\*\* Starting Rails with development environment…

Exiting

C:/ruby/lib/ruby/gems/1.8/gems/rmagick-2.0.0-x86-mswin32/ext/RMagick2.so:  
126: The specified module could not be found. -  
C:/ruby/lib/ruby/gems/1.8/gems/rmagick-2.0.0-x86-mswin32/ext/RMagick2.so  
(LoadError)

```
    from 

```

C:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require’

```
    from 

```

C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:495:in  
`require’

```
    from 

```

C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:342:in  
`new\_constants\_in’

```
    from 

```

C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:495:in  
`require’

```
    from C:/ruby/lib/ruby/gems/1.8/gems/rmagick-2.0.0-x86-mswin32

```

/lib/RMagick.rb:11

```
    from 

```

C:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:32:in  
`gem\_original\_require’

```
    from 

```

C:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:32:in  
`require’

```
    from 

```

C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:495:in  
`require’

```
     ... 45 levels...

    from C:/ruby/lib/ruby/gems/1.8/gems/rails-1.2.3

```

/lib/commands/server.rb:39

```
    from 

```

C:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem\_original\_require’

```
    from 

```

C:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require’

```
    from script/server:3

```

On Sat, Mar 22, 2008 at 5:09 PM, Tim H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > INFO: use --ignore-dependencies to install only the gems you list  
> > Use the rmagick-win32 gem instead of the rmagick gem.
> 
> [http://rmagick.rubyforge.org/install-faq.html#win](http://rmagick.rubyforge.org/install-faq.html#win)
> 
> –  
> RMagick: [http://rmagick.rubyforge.org/](http://rmagick.rubyforge.org/)  
> RMagick 2: [http://rmagick.rubyforge.org/rmagick2.html](http://rmagick.rubyforge.org/rmagick2.html)

–  
Rajat G.

Ph: 206-499-9495  
Add: 1314 Spring Street, #412  
Seattle, WA 98104  
Web: [http://www.pilotoutlook.com](http://www.pilotoutlook.com)
