1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Spinnaker導入時halyardのinstallで"Java >=8 not yet installed - please install java >=8."となる

Last updated at Posted at 2021-02-25

2021/02/25時点の情報です。

macOS Catalinaにhalyardを導入します。
javaのバージョン確認。

java -version
java version "15.0.2" 2021-01-19
Java(TM) SE Runtime Environment (build 15.0.2+7-27)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.2+7-27, mixed mode, sharing)

Java SE 15を導入しています。

halyardをinstallすると

sudo bash InstallHalyard.sh
Halyard version will be stable
Halconfig will be stored at /Users/sota/.hal/config
Uninstall script is located at /Users/sota/.hal/uninstall.sh
Java >=8 not yet installed - please install java >=8.
  Try using brew or jenv

なぜかjavaのバージョン8以上がないよと言われる。
InstallHalyard.shをエディタで開くと:

152   if [[ "$java_version" == *"1.8"* ]] || \
153      [[ "$java_version" == *"9.0"* ]] || \
154      [[ "$java_version" == *"10.0"* ]] || \
155      [[ "$java_version" == *"11"* ]] || \
156      [[ "$java_version" == *"12"* ]] || \
157      [[ "$java_version" == *"13"* ]] || \
158      [[ "$java_version" == *"14"* ]] || \
160      [[ "$java_version" == "java version \"10\""* ]]; then
161     echo "Java is already installed & at the right version"
162     return 0;
163   fi

ゴリ押しでjavaのバージョンを確認しているので、以下の1行加えてあげる。

159      [[ "$java_version" == *"15"* ]] || \

isntallを再実行すると先ほどのポイントは通過する。
以上。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?