Can't install rmagick

R

Rajat Garg

[Note: parts of this message were removed to make it a legal post.]

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


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

Tim Hunter

Rajat said:
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
............
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
 
R

Rajat Garg

[Note: parts of this message were removed to make it a legal post.]

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

Any ideas? Please help.

=> Booting Mongrel (use 'script/server webrick' to force WEBrick)

=> Rails application starting on 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



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

http://rmagick.rubyforge.org/install-faq.html#win


--
Rajat Garg


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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,068
Latest member
MakersCBDIngredients

Latest Threads

Top