安装 OS X Mavericks 后出现 RMagick 错误

2023-12-13

我在 OS X Mountain Lion 中安装了 RMagick 并完美运行。我刚刚安装了 OS X Mavericks,当我尝试运行时rails s,我收到此错误:

/.rvm/gems/ruby-2.0.0-p0@myapp/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require': dlopen(/.rvm/gems/ruby-2.0.0-p0@myapp/gems/rmagick-2.13.2/lib/RMagick2.bundle, 9): Library not loaded: /usr/lib/libltdl.7.dylib (LoadError)
  Referenced from: /.rvm/gems/ruby-2.0.0-p0@myapp/gems/rmagick-2.13.2/lib/RMagick2.bundle
  Reason: image not found - /.rvm/gems/ruby-2.0.0-p0@myapp/gems/rmagick-2.13.2/lib/RMagick2.bundle
    from /.rvm/gems/ruby-2.0.0-p0@myapp/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `block in require'
    from /.rvm/gems/ruby-2.0.0-p0@myapp/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in `load_dependency'
    from /.rvm/gems/ruby-2.0.0-p0@myapp/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require'
    from /.rvm/gems/ruby-2.0.0-p0@myapp/gems/rmagick-2.13.2/lib/rmagick.rb:11:in `<top (required)>'
    from /.rvm/gems/ruby-2.0.0-p0@global/gems/bundler-1.3.2/lib/bundler/runtime.rb:72:in `require'
    from /.rvm/gems/ruby-2.0.0-p0@global/gems/bundler-1.3.2/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
    from /.rvm/gems/ruby-2.0.0-p0@global/gems/bundler-1.3.2/lib/bundler/runtime.rb:70:in `each'
    from /.rvm/gems/ruby-2.0.0-p0@global/gems/bundler-1.3.2/lib/bundler/runtime.rb:70:in `block in require'
    from /.rvm/gems/ruby-2.0.0-p0@global/gems/bundler-1.3.2/lib/bundler/runtime.rb:59:in `each'
    from /.rvm/gems/ruby-2.0.0-p0@global/gems/bundler-1.3.2/lib/bundler/runtime.rb:59:in `require'
    from /.rvm/gems/ruby-2.0.0-p0@global/gems/bundler-1.3.2/lib/bundler.rb:132:in `require'
    from /myapp/config/application.rb:13:in `<top (required)>'
    from /.rvm/gems/ruby-2.0.0-p0@myapp/gems/railties-3.2.14/lib/rails/commands.rb:53:in `require'
    from /.rvm/gems/ruby-2.0.0-p0@myapp/gems/railties-3.2.14/lib/rails/commands.rb:53:in `block in <top (required)>'
    from /.rvm/gems/ruby-2.0.0-p0@myapp/gems/railties-3.2.14/lib/rails/commands.rb:50:in `tap'
    from /.rvm/gems/ruby-2.0.0-p0@myapp/gems/railties-3.2.14/lib/rails/commands.rb:50:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

这是我的 Gemfile:

source 'https://rubygems.org'

gem 'rails', '3.2.14'

group :assets do
  gem 'sass-rails',   '>= 3.2.3'
  gem 'coffee-rails', '>= 3.2.1'
  gem 'uglifier', '>= 1.0.3'
end

group   :development do
    gem 'annotate', :git => 'git://github.com/ctran/annotate_models.git'
    gem 'sextant'
  gem "quiet_assets", ">= 1.0.2"
  gem "better_errors", ">= 0.7.2"
  gem "binding_of_caller", ">= 0.7.1"    
    gem 'meta_request'
    gem 'execjs'
    gem 'therubyracer'  
  gem "letter_opener"
  gem 'bullet'   
  gem 'rack-mini-profiler'   
  gem 'mocha', require: false
end

group :test do
  gem "email_spec", ">= 1.4.0"
end

group :development, :test do
  gem "rspec-rails", ">= 2.12.2"
  gem "database_cleaner", ">= 1.0.0.RC1"  
end

gem "stripe"
gem "jquery-rails"
gem "thin", ">= 1.5.0"
gem "pg", ">= 0.15.0"
gem "font-awesome-rails"
gem "bootstrap-sass", ">= 2.3.1.0"
gem "bootstrap-wysihtml5-rails"
gem "sendgrid", ">= 1.0.1"
gem "devise", ">= 2.2.4"
gem "cancan", ">= 1.6.9"
gem "rolify", ">= 3.2.0"
gem "simple_form", ">= 2.1.0"
gem "newrelic_rpm"
gem "rmagick"
gem "mini_magick"
gem "carrierwave"
gem "fog"
gem "rails_admin"
gem "acts-as-taggable-on"
gem "friendly_id"

我跑了bundle install一切正常:

$ bundle install
Using rake (10.1.0) 
Using i18n (0.6.5) 
Using multi_json (1.8.2) 
Using activesupport (3.2.14) 
Using builder (3.0.4) 
Using activemodel (3.2.14) 
Using erubis (2.7.0) 
Using journey (1.0.4) 
Using rack (1.4.5) 
Using rack-cache (1.2) 
Using rack-test (0.6.2) 
Using hike (1.2.3) 
Using tilt (1.4.1) 
Using sprockets (2.2.2) 
Using actionpack (3.2.14) 
Using mime-types (1.25) 
Using polyglot (0.3.3) 
Using treetop (1.4.15) 
Using mail (2.5.4) 
Using actionmailer (3.2.14) 
Using arel (3.0.2) 
Using tzinfo (0.3.38) 
Using activerecord (3.2.14) 
Using activeresource (3.2.14) 
Using bundler (1.3.2) 
Using rack-ssl (1.3.3) 
Using json (1.8.1) 
Using rdoc (3.12.2) 
Using thor (0.18.1) 
Using railties (3.2.14) 
Using rails (3.2.14) 
Using acts-as-taggable-on (2.4.1) 
Using addressable (2.3.5) 
Using annotate (2.6.0.beta2) from git://github.com/ctran/annotate_models.git (at master) 
Using atomic (1.1.14) 
Using bcrypt-ruby (3.1.2) 
Using coderay (1.1.0) 
Using better_errors (1.0.1) 
Using debug_inspector (0.0.2) 
Using binding_of_caller (0.7.2) 
Using sass (3.2.12) 
Using bootstrap-sass (2.3.2.2) 
Using bootstrap-wysihtml5-rails (0.3.1.23) 
Using uniform_notifier (1.3.0) 
Using bullet (4.6.0) 
Using callsite (0.0.11) 
Using cancan (1.6.10) 
Using carrierwave (0.9.0) 
Using coffee-script-source (1.6.3) 
Using execjs (2.0.2) 
Using coffee-script (2.2.0) 
Using coffee-rails (3.2.2) 
Using daemons (1.1.9) 
Using database_cleaner (1.2.0) 
Using orm_adapter (0.4.0) 
Using thread_safe (0.1.3) 
Using warden (1.2.3) 
Using devise (3.1.1) 
Using diff-lcs (1.2.4) 
Using launchy (2.3.0) 
Using email_spec (1.5.0) 
Using eventmachine (1.0.3) 
Using excon (0.27.6) 
Using formatador (0.2.4) 
Using net-ssh (2.7.0) 
Using net-scp (1.1.2) 
Using mini_portile (0.5.1) 
Using nokogiri (1.6.0) 
Using ruby-hmac (0.4.0) 
Using unicode (0.4.4) 
Using fog (1.16.0) 
Using font-awesome-rails (3.2.1.3) 
Using friendly_id (4.0.10.1) 
Using haml (4.0.3) 
Using jquery-rails (3.0.4) 
Using jquery-ui-rails (3.0.1) 
Using kaminari (0.14.1) 
Using letter_opener (1.1.2) 
Using libv8 (3.16.14.3) 
Using rack-contrib (1.1.0) 
Using meta_request (0.2.8) 
Using metaclass (0.0.1) 
Using subexec (0.2.3) 
Using mini_magick (3.6.0) 
Using mocha (0.14.0) 
Using nested_form (0.3.2) 
Using newrelic_rpm (3.6.8.164) 
Using pg (0.17.0) 
Using quiet_assets (1.0.2) 
Using rack-mini-profiler (0.1.31) 
Using rack-pjax (0.7.0) 
Using remotipart (1.2.1) 
Using safe_yaml (0.9.7) 
Using sass-rails (3.2.6) 
Using rails_admin (0.4.9) 
Using ref (1.0.5) 
Using rest-client (1.6.7) 
Using rmagick (2.13.2) 
Using rolify (3.2.0) 
Using rspec-core (2.14.6) 
Using rspec-expectations (2.14.3) 
Using rspec-mocks (2.14.4) 
Using rspec-rails (2.14.0) 
Using sendgrid (1.2.0) 
Using sextant (0.2.4) 
Using simple_form (2.1.0) 
Using stripe (1.8.7) 
Using therubyracer (0.12.0) 
Using thin (1.5.1) 
Using uglifier (2.2.1) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

也尝试过bundle update rmagick:

$ bundle update rmagick
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.1.0) 
Using i18n (0.6.5) 
Using multi_json (1.8.2) 
Using activesupport (3.2.14) 
Using builder (3.0.4) 
Using activemodel (3.2.14) 
Using erubis (2.7.0) 
Using journey (1.0.4) 
Using rack (1.4.5) 
Using rack-cache (1.2) 
Using rack-test (0.6.2) 
Using hike (1.2.3) 
Using tilt (1.4.1) 
Using sprockets (2.2.2) 
Using actionpack (3.2.14) 
Using mime-types (1.25) 
Using polyglot (0.3.3) 
Using treetop (1.4.15) 
Using mail (2.5.4) 
Using actionmailer (3.2.14) 
Using arel (3.0.2) 
Using tzinfo (0.3.38) 
Using activerecord (3.2.14) 
Using activeresource (3.2.14) 
Using bundler (1.3.2) 
Using rack-ssl (1.3.3) 
Using json (1.8.1) 
Using rdoc (3.12.2) 
Using thor (0.18.1) 
Using railties (3.2.14) 
Using rails (3.2.14) 
Using acts-as-taggable-on (2.4.1) 
Using addressable (2.3.5) 
Using annotate (2.6.0.beta2) from git://github.com/ctran/annotate_models.git (at master) 
Using atomic (1.1.14) 
Using bcrypt-ruby (3.1.2) 
Using coderay (1.1.0) 
Using better_errors (1.0.1) 
Using debug_inspector (0.0.2) 
Using binding_of_caller (0.7.2) 
Using sass (3.2.12) 
Using bootstrap-sass (2.3.2.2) 
Using bootstrap-wysihtml5-rails (0.3.1.23) 
Using uniform_notifier (1.3.0) 
Using bullet (4.6.0) 
Using callsite (0.0.11) 
Using cancan (1.6.10) 
Using carrierwave (0.9.0) 
Using coffee-script-source (1.6.3) 
Using execjs (2.0.2) 
Using coffee-script (2.2.0) 
Using coffee-rails (3.2.2) 
Using daemons (1.1.9) 
Using database_cleaner (1.2.0) 
Using orm_adapter (0.4.0) 
Using thread_safe (0.1.3) 
Using warden (1.2.3) 
Using devise (3.1.1) 
Using diff-lcs (1.2.4) 
Using launchy (2.3.0) 
Using email_spec (1.5.0) 
Using eventmachine (1.0.3) 
Using excon (0.27.6) 
Using formatador (0.2.4) 
Using net-ssh (2.7.0) 
Using net-scp (1.1.2) 
Using mini_portile (0.5.1) 
Using nokogiri (1.6.0) 
Using ruby-hmac (0.4.0) 
Using unicode (0.4.4) 
Using fog (1.16.0) 
Using font-awesome-rails (3.2.1.3) 
Using friendly_id (4.0.10.1) 
Using haml (4.0.3) 
Using jquery-rails (3.0.4) 
Using jquery-ui-rails (3.0.1) 
Using kaminari (0.14.1) 
Using letter_opener (1.1.2) 
Using libv8 (3.16.14.3) 
Using rack-contrib (1.1.0) 
Using meta_request (0.2.8) 
Using metaclass (0.0.1) 
Using subexec (0.2.3) 
Using mini_magick (3.6.0) 
Using mocha (0.14.0) 
Using nested_form (0.3.2) 
Using newrelic_rpm (3.6.8.164) 
Using pg (0.17.0) 
Using quiet_assets (1.0.2) 
Using rack-mini-profiler (0.1.31) 
Using rack-pjax (0.7.0) 
Using remotipart (1.2.1) 
Using safe_yaml (0.9.7) 
Using sass-rails (3.2.6) 
Using rails_admin (0.4.9) 
Using ref (1.0.5) 
Using rest-client (1.6.7) 
Using rmagick (2.13.2) 
Using rolify (3.2.0) 
Using rspec-core (2.14.6) 
Using rspec-expectations (2.14.3) 
Using rspec-mocks (2.14.4) 
Using rspec-rails (2.14.0) 
Using sendgrid (1.2.0) 
Using sextant (0.2.4) 
Using simple_form (2.1.0) 
Using stripe (1.8.7) 
Using therubyracer (0.12.0) 
Using thin (1.5.1) 
Using uglifier (2.2.1) 
Your bundle is updated! Use `bundle show [gemname]` to see where a bundled gem is installed.

安装X代码5,然后执行以下操作:

brew install libtool --universal
brew link libtool
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

安装 OS X Mavericks 后出现 RMagick 错误 的相关文章

  • OSX 上的 Java 7 使用 jnlp/webstart 时出现文件名编码问题

    我遇到了这个问题 经过几天的搜索和解决方法尝试均未成功 我现在有一个由 jnlp webstart 分发的内部 java swing 程序 在 osx 和 windows 计算机上 除其他外 它还从 WebDav 下载一些文件 最近 在装有
  • 查找数组中 2 个缺失数字的最快方法

    这个问题的存在只是出于纯粹的好奇心 不是作业 找到在数组 1 n 中找到两个缺失数字的最快方法 因此 在相关帖子中 查找数字数组中缺失数字的最快方法 https stackoverflow com questions 2113795 qui
  • 如何使用define_method创建类方法?

    如果您尝试以元编程方式创建类方法 这非常有用 def self create methods method name To create instance methods define method method name do end T
  • Bash touch - 非法选项 -d

    昨天我拍了很多照片 但我忘记更改相机中的时区 现在所有图片的修改日期都有错误 我想将特定目录中所有文件的修改日期更改为minus 10 hours bin sh for i in Users slick Desktop 100D5200 d
  • Ruby - :variable 和 @variable 之间的区别

    作为 Ruby on Rails 新手 我知道 和 引用具有不同的含义 我看见这个帖子 https stackoverflow com questions 3538575 whats the difference between and v
  • 在多个模型中与 has_many :through 建立关联

    请帮助了解该怎么做 project payments有这棵树 Project Stages Costs Payments 项目 rb has many stages has many costs through gt stages stag
  • 将 Rails 5.2 升级到 6.0 时出现参数错误数量错误

    我正在尝试将旧站点从 Rails5 2 升级到 6 0 然后再升级到 6 1 推荐的路径 我收到了有关参数数量错误的各种错误 其中一些错误我已通过更新或删除各种 gem 设法清除 最后我被困在了这一点上 rbenv versions 3 0
  • Rails:将参数从视图传递到控制器

    我在 Rails 中有以下模型 class Task lt ActiveRecord Base attr accessible description name project belongs to project validates na
  • Rails 4 与 MailCatcher 和 Devise gems

    我有一个带有 gem Devise 的应用程序 我需要通过电子邮件确认注册 在配置 环境 rb我添加了这个 ActionMailer Base delivery method smtp ActionMailer Base smtp sett
  • ruby CSV重复行解析

    我有一些需要处理的 CSV 数据 但无法找到匹配重复项的方法 数据看起来有点像这样 line id name item 1 item 2 item 3 item 4 1 251 john foo foo foo foo 2 251 john
  • 匹配一对未转义的平衡分隔符

    如何匹配一对不被反斜杠转义的平衡分隔符 本身不被反斜杠转义 无需考虑嵌套 例如 对于反引号 我尝试了此操作 但是转义的反引号无法按转义的方式工作 regex lt lt hello how are you gt 1 how expected
  • 如何告诉 Ruby 不要序列化属性或如何正确重载 marshal_dump?

    我的 AR B 中有一个不可序列化的属性 o Discussion find 6 Marshal dump o TypeError no marshal dump is defined for class Proc from irb 10
  • 如何查找重复字母最多的单词

    我的目标是找到给定字符串中重复字母最多的单词 例如 aabcc ddeeteefef iijjfff 会回来 ddeeteefef 因为 e 在这个单词中重复了五次 这比所有其他重复字符都多 到目前为止 这是我得到的 但它有很多问题并且不完
  • 如何访问“可以?”细胞内的方法?

    我在用着cancan and cells我的 ruby on rails 项目中的 gems 如何访问can 细胞内的方法 Thanks 我必须这样做 尝试 class MyCell lt Cell Rails include CanCan
  • 日期时间到 NSDate

    如何转换字符串2010 11 19T20 00 00Z进入一个NSDate object 我尝试过使用 dateFormatter setDateFormat yyyy MM ddTHH mm ssZ 但看起来我的自定义格式样式错误 PS
  • localhost 拒绝在 chrome mac 中连接

    我正在使用 webpack dev server 使用此命令运行服务器 npm run dev 当我使用npm start 它工作得很好 但不想这样做 因为它是为了生产 到目前为止我的服务器运行良好http 本地主机 3000 http l
  • Rails 3:用户创建自定义表单?

    我正在尝试思考如何允许用户创建具有所有字段类型的自定义表单 如果有一颗宝石那就太好了 但我似乎无法在任何地方找到它 所以我有一个像这样的数据库设置 t integer form id t string name t string hint
  • 使用 Ruby 通过 Outlook 发送消息的最简单方法是什么?

    我的工作要求我为某些测试自动生成电子邮件 我一直在四处寻找 但一直未能找到可以快速实施的合理解决方案 它需要在 Outlook 中 而不是其他邮件服务器中 因为我们有一些奇怪的身份验证规则 并且我们需要保存草稿的选项 而不仅仅是发送消息 显
  • ActiveRecord 查询,按关联排序,最后一个 has_many

    我试图列出所有Users by the created at最近创建的关联记录 通讯 列 到目前为止我所拥有的 User includes communications order communications created at IS
  • 如何最好地将地址关联到 Rails 中的多个模型?

    这个问题 https stackoverflow com questions 648463 best way to model customer addresson SO 似乎与我的问题有关 但我不确定我的问题是否得到了回答 一个地址可以属

随机推荐