用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ranbot-ai/awesome-skills --skill swift-linux命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | swift-linux |
| description | This document provides instructions for installing Swift on Debian 12 (Bookworm). |
| category | Development & Code Tools |
| source | openhands |
| tags | ["git","python","bash","linux","pr","agent"] |
| url | https://github.com/OpenHands/OpenHands/blob/main/skills/swift-linux.md |
This document provides instructions for installing Swift on Debian 12 (Bookworm).
This setup is intended for non-UI development tasks on Swift on Linux.
Before installing Swift, you need to install the required dependencies for your system. You can find the most up-to-date list of dependencies for your specific Linux distribution and version at the Swift.org tarball installation guide.
FOR EXAMPLE, the dependencies you may need to install for Debian 12 could be:
sudo apt-get update
sudo apt-get install -y \
binutils-gold \
gcc \
git \
libcurl4-openssl-dev \
libedit-dev \
libicu-dev \
libncurses-dev \
libpython3-dev \
libsqlite3-dev \
libxml2-dev \
pkg-config \
tzdata \
uuid-dev
Find the latest Swift version for Debian:
Go to the Swift.org download page to find the latest Swift version compatible with Debian 12 (Bookworm).
Look for a tarball named something like swift-<VERSION>-RELEASE-debian12.tar.gz (e.g., swift-6.0.3-RELEASE-debian12.tar.gz).
The URL pattern is typically:
https://download.swift.org/swift-<VERSION>-release/debian12/swift-<VERSION>-RELEASE/swift-<VERSION>-RELEASE-debian12.tar.gz
Where <VERSION> is the Swift version number (e.g., 6.0.3).
Download the Swift binary for Debian 12:
cd /workspace
wget https://download.swift.org/swift-6.0.3-release/debian12/swift-6.0.3-RELEASE/swift-6.0.3-RELEASE-debian12.tar.gz
Note: Make sure to install Swift in the
/workspacedirectory, but outside the git repository to avoid committing the Swift binaries.
~/.bashrc file:echo 'export PATH=/workspace/swift-6.0.3-RELEASE-debian12/usr/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
Note: Make sure to update the version number in the PATH to match the version you downloaded.
Verify that Swift is correctly installed by running:
swift --version