LoginSignup
4
0

More than 1 year has passed since last update.

UbuntuコンテナでEXLAが動かない

Last updated at Posted at 2023-02-21

本記事について

UbuntuコンテナでEXLAを動かそうとしたら依存関係で詰まったので、備忘録として残しておく

環境

  • macOS Ventura 13.2.1
  • Rancher Desktop 1.7.0
  • Ubuntu 22.04.1 LTS (Jammy Jellyfish)
  • Erlang 25.2.3
  • Elixir 1.14.3
  • Nx 0.5.1
  • EXLA 0.5.1

解決方法

Dockerfile
FROM hexpm/elixir:1.14.3-erlang-25.2.3-ubuntu-jammy-20221130

# For EXLA (xla)
RUN apt-get upgrade -y \
  && apt-get update \
  && apt-get install --no-install-recommends -y \
  curl \
  build-essential \
  ca-certificates \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/*

遭遇したエラーと対策

** (RuntimeError) expected either curl or wget to be available in your system, but neither was found

→ curl をインストール

** (RuntimeError) could not find v0.4.4 release under https://github.com/elixir-nx/xla/releases

→ ca-certificates をインストール ( HTTPS接続に対応させるため )

** (Mix) "make" not found in the path. If you have set the MAKE environment variable,
please make sure it is correct.

→ build-essential をインストール

4
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
4
0