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 1 year has passed since last update.

wslでnervesAdvent Calendar 2023

Day 11

wslでnerves その22

Last updated at Posted at 2023-11-19

概要

wsl(wsl2じゃない)でnervesやってみる。
qemu(x86_64エミュレータ、ラズパイじゃない)でやってみた。
生成したnerves_livebook.imgを、Mix.installをテストしてみた。

テスト1

Mix.install([
  {:kino, "~> 0.11.0"}
])

:ok

テスト2

Mix.install([
  {:kino_explorer, "~> 0.1.11"}
])

** (RuntimeError) Mix.install/2 is not supported on Nerves Livebook (yet!).

All is not lost, but you will have to rebuild the Nerves Livebook firmware.
Go to https://github.com/nerves-livebook/nerves_livebook and clone the repository.
Add :kino_explorer to the dependencies listed in the `mix.exs` file, build,
and then try again.

    (nerves_livebook 0.11.0) lib/nerves_livebook/mix_install.ex:51: NervesLivebook.MixInstall.check_dep/1
    (elixir 1.15.6) lib/enum.ex:984: Enum."-each/2-lists^foreach/1-0-"/2
    #cell:setup:1: (file)

テスト3

Mix.install([
  {:vega_lite, "~> 0.1.6"},
  {:kino_vega_lite, "~> 0.1.10"}
])

:ok

テスト4

Mix.install([
  {:kino_maplibre, "~> 0.1.10"},
  {:req, "~> 0.4.5"}
])

:ok

以上。

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?