我正试图安装新软件包,例如keras,gnuplot或张量流。但是我的家常菜总是给我一个错误,我无法弄清楚到底是什么问题。
我已经尝试过升级自制软件和许多其他功能。但是它们似乎不起作用。我对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)
答案 0 :(得分:0)
尝试运行Brew Doctor,然后进行Brew升级。这应该可以解决您的问题,并且您可以正确安装它