0x00 Mac终端安装
使用命令:brew install vapor
然后一直报一个错误:
LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
搜索了 1 天,各种尝试,依然无果 T_T
相关日志:
==> Installing vapor from vapor/tap
==> Downloading https://github.com/vapor/toolbox/archive/18.0.0.tar.gz
Already downloaded: /Users/apple/Library/Caches/Homebrew/downloads/a4d3c11ed4b9d0aa51eaf5b9b88cfcd1b357a41b6d06ee739e7050a90963ca51--18.0.0.tar.gz
==> swift build --disable-sandbox -c release -Xswiftc -cross-module-optimization
Last 15 lines from /Users/apple/Library/Logs/Homebrew/vapor/01.swift:
build
--disable-sandbox
-c
release
-Xswiftc
-cross-module-optimization
Fetching https://github.com/tanner0101/mustache.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/vapor/console-kit.git
error: Failed to clone https://github.com/tanner0101/mustache.git:
Cloning into bare repository '/private/tmp/vapor-20210715-4523-pxsr2z/toolbox-18.0.0/.build/repositories/mustache-d8034efc'...
fatal: unable to access 'https://github.com/tanner0101/mustache.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/vapor/homebrew-tap/issues
0x01 自动好了
第 2 天,再次使用命令安装,结果没问题了 ?_?
==> Installing vapor from vapor/tap
==> Downloading https://github.com/vapor/toolbox/archive/18.0.0.tar.gz
Already downloaded: /Users/apple/Library/Caches/Homebrew/downloads/a4d3c11ed4b9d0aa51eaf5b9b88cfcd1b357a41b6d06ee739e7050a90963ca51--18.0.0.tar.gz
==> swift build --disable-sandbox -c release -Xswiftc -cross-module-optimization
==> mv .build/release/vapor vapor
🍺 /usr/local/Cellar/vapor/18.0.0: 5 files, 5.6MB, built in 3 minutes 36 seconds
日志显示,它的文件路径是:/usr/local/Cellar/vapor/18.0.0
看看其他地方还有没有
先 cd /usr
进入 usr
目录:
使用 find
命令进行查找:find . -name "vapor"
结果:
find: ./sbin/authserver: Permission denied
./local/bin/vapor
./local/Homebrew/Library/Taps/vapor
./local/var/homebrew/linked/vapor
./local/opt/vapor
./local/Cellar/vapor
./local/Cellar/vapor/18.0.0/bin/vapor
目录 ./local/bin/vapor
, 这是个替身文件,原身是 ./local/Cellar/vapor/18.0.0/bin/vapor
目录 ./local/Homebrew/Library/Taps/vapor
, 还有个 homebrew-tap
目录 ./local/var/homebrew/linked/vapor
,是一个 替身
文件夹,原身是 ./local/Cellar/vapor/18.0.0
目录 ./local/opt/vapor
,是一个 替身
文件夹,原身是 ./local/Cellar/vapor/18.0.0
备份地址:下载
提取码: crqf
小笔记XNote
笔记如此方便~