我正在試圖運行Rails應用程序時出現以下錯誤: -錯誤的Rails應用程序
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems /rmagick-2.12.2/lib/RMagick2.so: libMagickCore.so.4:無法打開共享 目標文件:無此文件或目錄 - /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby /gems/1.8/gems/rmagick-2.12.2/lib/RMagick2.so (LoadError) from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb :36:在
require' from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in
要求' from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:innew_constants_in' from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in
要求' from/opt /opt/ruby-enterprise-1.8.7-2010.02/lib /ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/rmagick-2.12.2/lib/RMagick.rb:11 /ruby/site_ruby/1.8/rubygems/custom_require.rb:36:ingem_original_require' from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
需要從/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/activesupport-2.1.0獲得' /lib/active_support/dependencies.rb:509:inrequire' from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in
new_constants_in' from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support /dependencies.rb:509:inrequire' from /home/amol/Amol_Backup/AMOL_BACKUP_20091021/PROJECTS/Fitsmi/life180/config/environment.rb:12 from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_orig inal_require ' 從/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire' from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in
需要' 從/opt/ruby-enterprise-1.8.7 -2010.02/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:在 中new_constants_in' from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in
需要' from /opt/ruby-enterprise-1.8.7-2010.02/lib /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems中的/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/webrick.rb:59 /custom_require.rb:31:ingem_original_require' from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
需要/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb中的' :509:在require' from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in
new_constants_in' 從/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:inrequire' from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 from /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require」 從/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in '需要」 從腳本/服務器:3
文件RMagick2.so存在於指定路徑/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/rmagick-2.12.2/lib中。
以下是我的應用程序正在使用的版本: -
軌2.3.5
紅寶石1.8.7(2009-12-24 PATCHLEVEL 248)[x86_64的Linux的],MBARI 0x6770,Ruby企業版2010.02
rmagick(2.12.2)
ImageMagick的6.2.8.0-4.el5-5.3
操作系統: - Centos的5
預先感謝....
我使用的是centos 5。 – Anubhaw 2010-12-10 11:46:25