Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
506 views
in Technique[技术] by (71.8m points)

perfect编译入门项目使用swift build编译不成功

按照perfect的配置页面(https://www.perfect.org/docs/...
克隆编译入门项目在mac 本地上然后使用swift 进行编译 报错

swift编译不通过

不知具体的问题
终端代码如下

?  PerfectTemplate git:(master) swift build
warning: refname '2.1.14' is ambiguous.
warning: refname '2.1.14' is ambiguous.
HEAD is now at e060d52 HPACK fix
Resolved version: 2.1.14
warning: refname '2.1.6' is ambiguous.
warning: refname '2.1.6' is ambiguous.
HEAD is now at b732688 API tweaks to accomodate usage patterns
Resolved version: 2.1.6
warning: refname '2.0.6' is ambiguous.
warning: refname '2.0.6' is ambiguous.
HEAD is now at 9151860 Merge branch 'master' of https://github.com/PerfectlySoft/PerfectLib
Resolved version: 2.0.6
warning: refname '2.1.4' is ambiguous.
warning: refname '2.1.4' is ambiguous.
HEAD is now at 84b5097 Added NetTCPSSL configuration callback
Resolved version: 2.1.4
Cloning https://github.com/PerfectlySoft/Perfect-COpenSSL.git
/usr/local/bin/git clone --recursive --depth 10 https://github.com/PerfectlySoft/Perfect-COpenSSL.git /Users/zach/playground/PerfectTemplate/Packages/Perfect-COpenSSL.git
Cloning into '/Users/zach/playground/PerfectTemplate/Packages/Perfect-COpenSSL.git'...
error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

error: Failed to clone https://github.com/PerfectlySoft/Perfect-COpenSSL.git to /Users/zach/playground/PerfectTemplate/Packages/Perfect-COpenSSL.git
?  PerfectTemplate git:(master) ls
Dockerfile      LICENSE         LICENSE.zh_CN   Package.swift   Packages        README.md       README.zh_CN.md Sources

mac 本地需要按照perfect 软件接口库,比如OpenSSL、libssl-dev和uuid-dev么

mac 上使用brew配置 openssl


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

从错误提示来看,从 github clone Perfect-COpenSSL 的时候就出错了,还没到真正 build 的那一步:

error: RPC failed; curl 56 SSLRead() return error -9806
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

error: Failed to clone https://github.com/PerfectlySoft/Perfect-COpenSSL.git to /Users/zach/playground/PerfectTemplate/Packages/Perfect-COpenSSL.git

建议挂 VPN 再试,或者多试几遍,拼运气。。。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...