You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

MacOS Mojave环境下无法安装Spin CLI(Spinnaker)求助

Fixing Spin CLI Installation on macOS Mojave

Looks like you ran into two key issues with the installation command:

  1. You used the Linux-specific download path (linux/amd64) instead of the macOS-compatible one (darwin/amd64).
  2. A shell parsing quirk in the nested curl command caused an invalid path (note the extra ) in your error message: latest)/darwin/amd64/spin).

Here are a few reliable fixes to get Spin CLI installed:

Option 1: Manual Version-Specific Download (Most Reliable)

First, grab the latest Spin CLI version number directly:

curl -s https://storage.googleapis.com/spinnaker-artifacts/spin/latest

This will return a version string like v1.29.0. Use that version in the macOS-specific download command:

curl -LO https://storage.googleapis.com/spinnaker-artifacts/spin/[YOUR_VERSION]/darwin/amd64/spin

Replace [YOUR_VERSION] with the number you retrieved (e.g., v1.29.0).

Option 2: Fix the Nested Curl Command

Adjust the original command to target macOS and wrap the URL in quotes to avoid parsing errors:

curl -LO "https://storage.googleapis.com/spinnaker-artifacts/spin/$(curl -s https://storage.googleapis.com/spinnaker-artifacts/spin/latest)/darwin/amd64/spin"

The quotes prevent unexpected shell parsing that caused the extra ) in your error.

Option 3: Use Homebrew (Simpler, if You Have Homebrew Installed)

If you use Homebrew, install the Spin CLI with official taps for automatic setup:

brew tap spinnaker/tap
brew install spinnaker/tap/spin

This handles download, executable permissions, and PATH configuration automatically.

Post-Install Steps (For Options 1 & 2)

After downloading, make the binary executable and move it to a directory in your PATH:

chmod +x spin
mv spin /usr/local/bin/

Verify the installation works by running:

spin --version

内容的提问来源于stack exchange,提问作者LiranC

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.14 07:48:02