我在 Macos catalina 上尝试安装 qt5 时遇到错误

问题描述 投票:0回答:1

我需要安装geant4,我正在按照安装指南并尝试下载依赖项。我正在尝试使用 homebrew 安装 qt5,但出现一些错误。

macOS 10.15 卡塔琳娜 https://geant4-userdoc.web.cern.ch/UsersGuides/InstallationGuide/html/gettingstarted.html 这是指南,如果有人想看的话。

kaan@Kaans-MacBook-Pro ~ % brew install qt@5
==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
##O#- #                                                                        
Warning: You are using macOS 10.15.


/Users/kaan/Library/Caches/Homebrew/downloads/d2ab1f5b8c0da0129411567fe365ed8ac79e6ee34d37b777ada4c268f0e15412--qt5-webengine-xcode14.diff
==> Cloning https://code.qt.io/qt/qtwebengine.git
Updating /Users/kaan/Library/Caches/Homebrew/qt@5--qtwebengine--git
==> Checking out tag v5.15.11-lts
HEAD is now at 3d23b379a Work-around GNOME bug misidentifying HTML content
HEAD is now at 3d23b379a Work-around GNOME bug misidentifying HTML content
Entering 'src/3rdparty'
/Users/kaan/Library/Caches/Homebrew/qt@5--qtwebengine--git/src/3rdparty
==> Cloning https://chromium.googlesource.com/catapult.git
Updating /Users/kaan/Library/Caches/Homebrew/qt@5--catapult--git
==> Checking out revision 5eedfe23148a234211ba477f76fc2ea2e8529189
HEAD is now at 5eedfe231 vulcanizer: Filter out soupsieve warnings
HEAD is now at 5eedfe231 vulcanizer: Filter out soupsieve warnings
==> Downloading https://download.qt.io/official_releases/qt/5.15/5.15.10/single/
Already downloaded: /Users/kaan/Library/Caches/Homebrew/downloads/0e844284a83630d9ac23b0fcf861cf06a0a7edc64fee84fb182a97478c7ab0f3--qt-everywhere-opensource-src-5.15.10.tar.xz
==> Patching
==> Applying 5a07e1967dcc925d9def47accadae991436b9686.diff
patching file include/mbgl/util/unique_any.hpp
==> Patching qtwebengine


patching file chromium/third_party/perfetto/gn/standalone/toolchain/mac_find_llvm.py
==> Applying qt5-webengine-python3.patch
patching file configure.pri
patching file mkspecs/features/functions.prf
Hunk #1 succeeded at 44 (offset 5 lines).
patching file src/buildtools/config/support.pri
patching file src/buildtools/configure.json
==> Applying qt5-webengine-gcc12.patch
patching file chromium/third_party/skia/src/utils/SkParseColor.cpp
==> Applying qt5-webengine-xcode14.diff
patching file chromium/third_party/blink/renderer/core/editing/finder/text_finder.cc
patching file chromium/third_party/blink/renderer/core/paint/paint_timing_detector.cc
patching file chromium/third_party/blink/renderer/modules/exported/web_ax_object.cc
==> ./configure -verbose -prefix /usr/local/Cellar/qt@5/5.15.10_1 -release -open
==> make
==> make install
Error: inreplace failed
`paths` (first) parameter:
  `paths` was empty

Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!

/usr/local/Homebrew/Library/Homebrew/utils/github/api.rb:354:in `raise_error': curl failed!   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current (GitHub::API::Error)
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (60) SSL: no alternative certificate subject name matches target host name 'api.github.com'
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
    from /usr/local/Homebrew/Library/Homebrew/utils/github/api.rb:268:in `open_rest'
    from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:178:in `search'
    from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:182:in `search_results_items'
    from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:36:in `search_issues'
    from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:62:in `issues_for_formula'
    from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:502:in `fetch_issues'
    from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:497:in `issues'
    from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:553:in `dump'
    from /usr/local/Homebrew/Library/Homebrew/brew.rb:151:in `rescue in <main>'
    from /usr/local/Homebrew/Library/Homebrew/brew.rb:139:in `<main>'
/usr/local/Homebrew/Library/Homebrew/formula.rb:2561:in `rescue in inreplace': Failed executing: inreplace (BuildError)
    from /usr/local/Homebrew/Library/Homebrew/formula.rb:2557:in `inreplace'
    from /Users/kaan/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/064db28bc465d92dae95c43419a85c82a8b13c4c/Formula/[email protected]:260:in `install'
    from /usr/local/Homebrew/Library/Homebrew/build.rb:177:in `block (3 levels) in install'
    from /usr/local/Homebrew/Library/Homebrew/extend/kernel.rb:499:in `with_env'
    from /usr/local/Homebrew/Library/Homebrew/build.rb:139:in `block (2 levels) in install'
    from /usr/local/Homebrew/Library/Homebrew/formula.rb:1420:in `block in brew'
    from /usr/local/Homebrew/Library/Homebrew/formula.rb:2900:in `block (2 levels) in stage'
    from /usr/local/Homebrew/Library/Homebrew/extend/kernel.rb:499:in `with_env'
    from /usr/local/Homebrew/Library/Homebrew/formula.rb:2899:in `block in stage'
    from /usr/local/Homebrew/Library/Homebrew/resource.rb:128:in `block (2 levels) in unpack'
    from /usr/local/Homebrew/Library/Homebrew/download_strategy.rb:126:in `chdir'
    from /usr/local/Homebrew/Library/Homebrew/download_strategy.rb:126:in `chdir'
    from /usr/local/Homebrew/Library/Homebrew/download_strategy.rb:113:in `stage'
    from /usr/local/Homebrew/Library/Homebrew/resource.rb:124:in `block in unpack'
    from /usr/local/Homebrew/Library/Homebrew/mktemp.rb:75:in `block in run'
    from /usr/local/Homebrew/Library/Homebrew/mktemp.rb:75:in `chdir'
    from /usr/local/Homebrew/Library/Homebrew/mktemp.rb:75:in `run'
    from /usr/local/Homebrew/Library/Homebrew/resource.rb:225:in `stage_resource'
    from /usr/local/Homebrew/Library/Homebrew/resource.rb:123:in `unpack'
    from /usr/local/Homebrew/Library/Homebrew/resource.rb:97:in `stage'
    from /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.10_1/lib/ruby/2.6.0/forwardable.rb:230:in `stage'
    from /usr/local/Homebrew/Library/Homebrew/formula.rb:2879:in `stage'
    from /usr/local/Homebrew/Library/Homebrew/formula.rb:1413:in `brew'
    from /usr/local/Homebrew/Library/Homebrew/build.rb:133:in `block in install'
    from /usr/local/Homebrew/Library/Homebrew/extend/kernel.rb:499:in `with_env'
    from /usr/local/Homebrew/Library/Homebrew/build.rb:128:in `install'
    from /usr/local/Homebrew/Library/Homebrew/build.rb:229:in `<main>'

我尝试更新 Homebrew,但没有得到任何结果。我尝试用 macports 安装它,我也遇到了错误。

macos qt5 homebrew catalina geant4
1个回答
0
投票

您还会在 Homebrew 运行结束时看到以下消息:

Error: You are using macOS 10.15.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

基本上,直到有人修复 Homebrew,或者可能是有问题的配方, 我们所有使用 macOS 10.15 的人都完蛋了。

© www.soinside.com 2019 - 2024. All rights reserved.