MAC OS Homebrew update时报很多Failed to import错如何解决?

发布于 2022-09-07 22:18:38 字数 7910 浏览 24 评论 0

huangwhMac:~ huangwh$ brew update
==> Downloading https://homebrew.bintray.com/bottles-portable-ruby/portable-ruby-2.3.7.leopard_64.bottle.tar.gz
######################################################################## 100.0%
==> Pouring portable-ruby-2.3.7.leopard_64.bottle.tar.gz
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations
Updated Homebrew from b4d43e9 to 922843f.
Updated 5 taps (homebrew/core, homebrew/nginx, homebrew/php, homebrew/services, homebrew/versions).
==> Migrating cache entries...
Error: Failed to import: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/curlftpfs.rb
bad URI(is not URI?): :pserver:anonymous:@curlftpfs.cvs.sourceforge.net:/cvsroot/curlftpfs
Error: Failed to import: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/global.rb
bad URI(is not URI?): :pserver:anonymous:@cvs.savannah.gnu.org:/sources/global
Error: Failed to import: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/id3lib.rb
bad URI(is not URI?): :pserver:anonymous:@id3lib.cvs.sourceforge.net:/cvsroot/id3lib
Error: Failed to import: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/libowfat.rb
bad URI(is not URI?): :pserver:cvs:@cvs.fefe.de:/cvs
Error: Failed to import: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mandoc.rb
bad URI(is not URI?): anoncvs@mandoc.bsd.lv:/cvs
Error: Failed to import: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/myman.rb
bad URI(is not URI?): :pserver:anonymous:@myman.cvs.sourceforge.net:/cvsroot/myman
Error: Failed to import: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ncp.rb
bad URI(is not URI?): :pserver:cvs:@cvs.fefe.de:/cvs
Error: Failed to import: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/percona-toolkit.rb
no implicit conversion of nil into String
Error: Failed to import: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/schroedinger.rb
no implicit conversion of nil into String
Error: Failed to import: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/squid.rb
no implicit conversion of nil into String
Error: Failed to import: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/terminator.rb
no implicit conversion of nil into String
Error: Failed to import: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-php/Formula/php71.rb
php71: cannot load such file -- /usr/local/Homebrew/Library/Taps/homebrew/homebrew-php/Abstract/abstract-php

我不懂ruby,这应该是新版本的berw下载回来无法安装?
求大神来个来解决办法,某度上根本搜索不到相关的,google后发现有,但貌似没给出解决办法,或许我英文太烂没看懂。

网上看了一下用brew doctor看下问题,一执行结果出来一大堆问题

huangwhMac:~ huangwh$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
  /usr/local/lib/libluajit-5.1.2.0.2.dylib

Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
  /usr/local/lib/pkgconfig/luajit.pc

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
  /usr/local/lib/libluajit-5.1.a

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  autoconf
  cloog
  freetype
  gcc
  gmp
  gmp@4
  intltool
  isl
  isl@0.11
  libevent
  libmpc
  libmpc@0.8
  libtool
  mcrypt
  memcached
  mhash
  mpfr
  mpfr@2
  neon
  pcre
  pkg-config
  re2c
  scons
  subversion17
  unixodbc
  wget

Warning: An outdated version (2.8.2) of Git was detected in your PATH.
Git 2.14.3 or newer is required for Homebrew.
Please upgrade:
  brew upgrade git

Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
  easy_install
  easy_install-2.7
  git
  git-cvsserver
  git-receive-pack
  git-shell
  git-upload-archive
  git-upload-pack
  phar
  phar.phar
  php
  php-config
  phpize
  svn
  svnadmin
  svndumpfilter
  svnlook
  svnserve
  svnsync
  svnversion

Consider setting your PATH so that /usr/local/bin
occurs before /usr/bin. Here is a one-liner:
  echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile

Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so
  echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile

Warning: Your Xcode (7.3) is outdated.
Please update to Xcode 8.2.1 (or delete it).
Xcode can be updated from the App Store.


Warning: Broken symlinks were found. Remove them with `brew prune`:
  /usr/local/bin/nginx
  /usr/local/bin/sublime
  /usr/local/etc/bash_completion.d/_brew_services
  /usr/local/include/gmp.h
  /usr/local/include/gmpxx.h
  /usr/local/include/isl/aff.h
  /usr/local/include/isl/aff_type.h
  /usr/local/include/isl/arg.h
  /usr/local/include/isl/ast.h
  /usr/local/include/isl/ast_build.h
  /usr/local/include/isl/band.h
  /usr/local/include/isl/blk.h
  /usr/local/include/isl/config.h
  /usr/local/include/isl/constraint.h
  /usr/local/include/isl/ctx.h
  /usr/local/include/isl/dim.h
  /usr/local/include/isl/flow.h
  /usr/local/include/isl/hash.h
  /usr/local/include/isl/id.h
  /usr/local/include/isl/ilp.h
  /usr/local/include/isl/int.h
  /usr/local/include/isl/list.h
  /usr/local/include/isl/local_space.h
  /usr/local/include/isl/lp.h
  /usr/local/include/isl/map.h
  /usr/local/include/isl/map_type.h
  /usr/local/include/isl/mat.h
  /usr/local/include/isl/multi.h
  /usr/local/include/isl/obj.h
  /usr/local/include/isl/options.h
  /usr/local/include/isl/point.h
  /usr/local/include/isl/polynomial.h
  /usr/local/include/isl/polynomial_type.h
  /usr/local/include/isl/printer.h
  /usr/local/include/isl/schedule.h
  /usr/local/include/isl/seq.h
  /usr/local/include/isl/set.h
  /usr/local/include/isl/set_type.h
  /usr/local/include/isl/space.h
  /usr/local/include/isl/stdint.h
  /usr/local/include/isl/stream.h
  /usr/local/include/isl/union_map.h
  /usr/local/include/isl/union_map_type.h
  /usr/local/include/isl/union_set.h
  /usr/local/include/isl/union_set_type.h
  /usr/local/include/isl/val.h
  /usr/local/include/isl/val_gmp.h
  /usr/local/include/isl/val_int.h
  /usr/local/include/isl/vec.h
  /usr/local/include/isl/version.h
  /usr/local/include/isl/vertices.h
  /usr/local/include/mpc.h
  /usr/local/include/mpf2mpfr.h
  /usr/local/include/mpfr.h
  /usr/local/lib/libgmp.10.dylib
  /usr/local/lib/libgmp.a
  /usr/local/lib/libgmp.dylib
  /usr/local/lib/libgmpxx.4.dylib
  /usr/local/lib/libgmpxx.a
  /usr/local/lib/libgmpxx.dylib
  /usr/local/lib/libisl.10.dylib
  /usr/local/lib/libisl.a
  /usr/local/lib/libisl.dylib
  /usr/local/lib/libmpc.3.dylib
  /usr/local/lib/libmpc.a
  /usr/local/lib/libmpc.dylib
  /usr/local/lib/libmpfr.4.dylib
  /usr/local/lib/libmpfr.a
  /usr/local/lib/libmpfr.dylib
  /usr/local/lib/pkgconfig/isl.pc
  /usr/local/share/doc/mpfr
  /usr/local/share/info/gmp.info
  /usr/local/share/info/gmp.info-1
  /usr/local/share/info/gmp.info-2
  /usr/local/share/info/mpc.info
  /usr/local/share/info/mpfr.info

这些都是什么问题?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

空‖城人不在 2022-09-14 22:18:38

Homebrew is run entirely by unpaid volunteers. Please consider donating

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文