运行webbrick的Ubuntu上的ImageMagick冲突

时间:2021-09-19 08:56:51

I am trying to install refinerycms, a Ruby on Rails CMS on Ubuntu 10.04 LTS. I run rails server and I get the following exception:

我正在尝试在Ubuntu 10.04 LTS上安装refinerycms,一个Ruby on Rails CMS。我运行rails服务器,我得到以下异常:

carcher@carcher-laptop:~/Code/tgc$ rails server
=> Booting WEBrick
=> Rails 3.0.0 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/lib/ruby/gems/1.8/gems/rmagick-2.12.2/lib/RMagick2.so: This installation of RMagick was configured with ImageMagick 6.6.4 but ImageMagick 6.5.7-8 is in use. (RuntimeError)
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
    from /usr/lib/ruby/gems/1.8/gems/rmagick-2.12.2/lib/RMagick.rb:11
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
    from /usr/lib/ruby/gems/1.8/gems/dragonfly-0.7.6/lib/dragonfly/analysis/r_magick_analyser.rb:1
    from /usr/lib/ruby/gems/1.8/gems/dragonfly-0.7.6/lib/dragonfly/config/r_magick.rb:15:in `apply_configuration'
    from /usr/lib/ruby/gems/1.8/gems/dragonfly-0.7.6/lib/dragonfly/configurable.rb:33:in `configure'
    from /usr/lib/ruby/gems/1.8/gems/dragonfly-0.7.6/lib/dragonfly/config/r_magick.rb:14:in `apply_configuration'
    from /usr/lib/ruby/gems/1.8/gems/dragonfly-0.7.6/lib/dragonfly/configurable.rb:39:in `configure_with'
    from /usr/lib/ruby/gems/1.8/gems/refinerycms-0.9.8.2/vendor/refinerycms/images/lib/images.rb:10
    from /usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:25:in `instance_exec'
    from /usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:25:in `run'
    from /usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:50:in `run_initializers'
    from /usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:49:in `each'
    from /usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:49:in `run_initializers'
    from /usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/application.rb:134:in `initialize!'
    from /usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/application.rb:77:in `send'
    from /usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/application.rb:77:in `method_missing'
    from /home/carcher/Code/tgc/config/environment.rb:5
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
    from /home/carcher/Code/tgc/config.ru:3
    from /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
    from /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
    from /home/carcher/Code/tgc/config.ru:1:in `new'
    from /home/carcher/Code/tgc/config.ru:1
carcher@carcher-laptop:~/Code/tgc$ 

I built and installed ImageMagick 6.6.4 from source following the instructions here and BEFORE I did that I removed the ImageMagick tools that were pre-installed in Ubuntu, to avoid any conflicts. But still I seem to have this version 6.5.7 around.

我按照此处的说明从源代码构建并安装了ImageMagick 6.6.4。在我这样做之前,我删除了预装在Ubuntu中的ImageMagick工具,以避免任何冲突。但我似乎仍然有这个版本6.5.7。

I guess my question is how do I remove/disable ImageMagick 6.5.7-8?

我想我的问题是如何删除/禁用ImageMagick 6.5.7-8?

Thanks in advance for the help, I'm all out of ideas.

在此先感谢您的帮助,我完全没有想法。

Cheers, Ciaran.

2 个解决方案

#1


0  

Lots of help at the Refinery Google group: http://groups.google.com/group/refinery-cms. Or have you tried that already?

Refinery Google小组提供了大量帮助:http://groups.google.com/group/refinery-cms。或者你已经试过了吗?

#2


0  

I'm up and running! I did a clean Ubuntu install, and just used the pre-installed Imagemagick package. The Refinery CMS tutorial for Lunix omits a few things a novice like me needs to do, so I documented all my steps here.

我开始跑了!我做了一个干净的Ubuntu安装,只是使用了预装的Imagemagick包。 Lunix的Refinery CMS教程省略了像我这样的新手需要做的一些事情,所以我在这里记录了我的所有步骤。

The main problem was that early in the process when I ran into an issue with RMagick, I presumed I needed a later version of Imagemagick so I downloaded and installed it from source. There is no need to do that - none at all. The version 6.5.7-8 will do just fine and play well with RMagick and with RefineryCMS.

主要问题是在我遇到RMagick问题的早期过程中,我认为我需要更高版本的Imagemagick,所以我从源代码下载并安装它。没有必要这样做 - 根本没有。版本6.5.7-8可以很好地使用RMagick和RefineryCMS。

Hope this helps others.

希望这有助于其他人。

If you need to use the latest version then I found this post that might help. I haven't tried it though:

如果您需要使用最新版本,那么我发现这篇文章可能有所帮助。我没有试过它:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557778

I posted this info on the RefineryCMS Google message board too.

我也在RefineryCMS Google留言板上发布了此信息。

Cheers, Ciaran

#1


0  

Lots of help at the Refinery Google group: http://groups.google.com/group/refinery-cms. Or have you tried that already?

Refinery Google小组提供了大量帮助:http://groups.google.com/group/refinery-cms。或者你已经试过了吗?

#2


0  

I'm up and running! I did a clean Ubuntu install, and just used the pre-installed Imagemagick package. The Refinery CMS tutorial for Lunix omits a few things a novice like me needs to do, so I documented all my steps here.

我开始跑了!我做了一个干净的Ubuntu安装,只是使用了预装的Imagemagick包。 Lunix的Refinery CMS教程省略了像我这样的新手需要做的一些事情,所以我在这里记录了我的所有步骤。

The main problem was that early in the process when I ran into an issue with RMagick, I presumed I needed a later version of Imagemagick so I downloaded and installed it from source. There is no need to do that - none at all. The version 6.5.7-8 will do just fine and play well with RMagick and with RefineryCMS.

主要问题是在我遇到RMagick问题的早期过程中,我认为我需要更高版本的Imagemagick,所以我从源代码下载并安装它。没有必要这样做 - 根本没有。版本6.5.7-8可以很好地使用RMagick和RefineryCMS。

Hope this helps others.

希望这有助于其他人。

If you need to use the latest version then I found this post that might help. I haven't tried it though:

如果您需要使用最新版本,那么我发现这篇文章可能有所帮助。我没有试过它:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557778

I posted this info on the RefineryCMS Google message board too.

我也在RefineryCMS Google留言板上发布了此信息。

Cheers, Ciaran