mac OS升级后我的自制链接是不是很糟糕?

时间:2014-03-28 19:51:47

标签: macos upgrade homebrew

我遇到了这个错误:

/Users/myuser/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/completion.rb:9:in `require': dlopen(/Users/myuser/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.5.0/readline.bundle, 9): Library not loaded: /usr/local/opt/readline/lib/libreadline.6.2.dylib (LoadError)
  Referenced from: /Users/myuser/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.5.0/readline.bundle
  Reason: image not found - /Users/myuser/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.5.0/readline.bundle
    from /Users/myuser/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/irb/completion.rb:9:in `<top (required)>'
    from /Users/myuser/.rvm/gems/ruby-2.0.0-p247@bj_rails_4/gems/railties-4.0.1/lib/rails/commands/console.rb:3:in `require'
    from /Users/myuser/.rvm/gems/ruby-2.0.0-p247@bj_rails_4/gems/railties-4.0.1/lib/rails/commands/console.rb:3:in `<top (required)>'
    from /Users/myuser/.rvm/gems/ruby-2.0.0-p247@bj_rails_4/gems/railties-4.0.1/lib/rails/commands.rb:51:in `require'
    from /Users/myuser/.rvm/gems/ruby-2.0.0-p247@bj_rails_4/gems/railties-4.0.1/lib/rails/commands.rb:51:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

升级到小牛队后,但是这个修好了:

brew link readline --force

我的所有brew链接现在都不好吗?我该如何轻松解决这个问题?

1 个答案:

答案 0 :(得分:0)

Reinstalling homebrew symbolic links after a restore,您可以重新链接所有已安装的brew公式:

brew list | xargs -I % sh -c 'brew unlink %; brew link %'