在 RISC-V 计算机上安装 Ansible

  • Ansible runs on Python and Python runs on various systems including newer RISC-V machines.
  • It has many dependencies and issues with dependencies are common (dependency hell). Installing Ansible from PyPI on RISC-V systems using pip install ansible has been unsuccessful for months.
  • The cryptography library requires a Rust compiler to build if not prebuilt. Installing Ansible with pip install ansible leads to errors like "can't find Rust compiler" and other related issues.
  • user @mediocreDevops provided a solution detailed in a GitHub Gist (https://gist.github.com/afro-...
  • The steps to install Ansible on a Milk-V Mars SBC include installing rustup, adding rust env vars, installing other dependencies (sudo apt install -y pkg-config python3-pip), and then running pip3 install ansible. There were issues like locking up and getting an "IndexError: list index out of range", but after reinstalling rust and trying again, Ansible was installed with some locale-related errors. Eventually, it worked with LC_ALL="C.UTF-8" ansible --version.
  • It is hoped that as RISC-V becomes more widespread, more universal wheels will exist and the installation of the Rust language will become simpler and more stable.
阅读 13
0 条评论