Kafka—源码—0、源码编译

2020-10-29  本文已影响0人  长青之木

环境

wget https://downloads.gradle-dn.com/distributions/gradle-6.6.1-all.zip

Scala code runner version 2.12.11 -- Copyright 2002-2020, LAMP/EPFL and Lightbend, Inc.

java version "1.8.0_241"


安装流程

执行

gradle
./gradlew jar

疑难问题

/usr/bin/env: bash: No such file or directory 解决办法

the problem's cause was that Git on Windows converted the line endings of gradlew from Unix style (LF) to Windows style (CRLF).

You can turn off that automatic conversion using git config core.autocrlf false.
Setting the line endings of gradlew back to Unix style fixed the problem.

In Vim this is done using :set fileformat=unix.


连接报错:curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

sudo vim /etc/hosts

添加如下内容:

199.232.28.133 raw.githubusercontent.com

参考: https://blog.csdn.net/txl910514/article/details/105880125

上一篇 下一篇

猜你喜欢

热点阅读