【问题标题】:Unable to install packages through home-brew无法通过 home-brew 安装软件包
【发布时间】:2019-05-12 16:31:45
【问题描述】:

我正在尝试安装新的软件包,例如 keras、gnuplot 或 tensor flow。但是我的自制软件一直给我一个错误,我无法弄清楚到底是什么问题。

我已经尝试升级 home-brew 和许多其他功能。但它们似乎不起作用。我对 UNIX 很陌生,因此,我对这些错误中的大多数都不熟悉。

请告诉我我可以做些什么来解决这个问题。

如果我输入:brew install gnuplot 我明白了:

portable-ruby/2.3.3_2/share/man/man1/ri.1: Failed to create dir 'portable-ruby/2.3.3_2'Can't create 'portable-ruby/2.3.3_2/share/man/man1/ri.1'
portable-ruby/2.3.3_2/share/man/man1/ruby.1: Failed to create dir 'portable-ruby/2.3.3_2'Can't create 'portable-ruby/2.3.3_2/share/man/man1/ruby.1'
tar: Error exit delayed from previous errors.
Error: Failed to upgrade vendor ruby.
Error: Failed to upgrade vendor Ruby.
Updating Homebrew...
fatal: Unable to create '/usr/local/Homebrew/.git/index.lock': Permission denied
fatal: Unable to create '/usr/local/Homebrew/.git/index.lock': Permission denied
Cannot save the current index state
Error: Could not 'git stash' in /usr/local/Homebrew!
Please stash/commit manually if you need to keep your changes or, if not, run:
  cd /usr/local/Homebrew
  git reset --hard origin/master
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- dbm (LoadError)

【问题讨论】:

  • 尝试运行 brew doctor 以查看它是否会返回任何有用的调试信息。我不确定它是否会有所帮助,但值得一试。

标签: macos unix terminal


【解决方案1】:

尝试运行 Brew Doctor,然后运行 ​​Brew 升级。这应该可以解决您的问题,并且您可以正确安装它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多