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でelixir その133

Last updated at Posted at 2024-02-04

概要

wsl(wsl2じゃない)で、elixirやってみた。
windows11にubuntu22.04入れてたので、Livebook入れる。

写真

  • v0.12.1

スクリーンショット 2024-02-04 150451.png

手順

$ . "$HOME/.asdf/asdf.sh"

$ asdf current
elixir          1.16.1-otp-26   /home/ore/.tool-versions
erlang          26.2.1          /home/ore/.tool-versions

$ elixir --version
Erlang/OTP 26 [erts-14.2.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]

Elixir 1.16.1 (compiled with Erlang/OTP 26)

$ iex --version
IEx 1.16.1 (compiled with Erlang/OTP 26)

$ mix --version
Erlang/OTP 26 [erts-14.2.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [jit:ns]

Mix 1.16.1 (compiled with Erlang/OTP 26)

$ mix do local.rebar --force, local.hex --force
* creating .asdf/installs/elixir/1.16.1-otp-26/.mix/elixir/1-16/rebar3
* creating .asdf/installs/elixir/1.16.1-otp-26/.mix/archives/hex-2.0.6

$ mix escript.install hex livebook
Resolving Hex dependencies...
Resolution completed in 0.948s
New:
  aws_credentials 0.1.11
  aws_signature 0.3.1
  bandit 1.1.0
  castore 1.0.5
  decimal 2.1.1
  dns_cluster 0.1.1
  earmark_parser 1.4.37
  ecto 3.10.3
  eini_beam 2.2.3
  finch 0.17.0
  hpax 0.1.2
  iso8601 1.3.3
  jason 1.4.1
  jose 1.11.6
  jsx 3.0.0
  livebook 0.12.1
  mime 2.0.5
  mint 1.5.2
  mint_web_socket 1.0.3
  nimble_options 1.1.0
  nimble_pool 1.0.0
  phoenix 1.7.10
  phoenix_ecto 4.4.2
  phoenix_html 3.3.2
  phoenix_live_dashboard 0.8.2
  phoenix_live_view 0.20.2
  phoenix_pubsub 2.1.3
  phoenix_template 1.0.4
  plug 1.15.3
  plug_crypto 2.0.0
  protobuf 0.8.0
  req 0.4.4
  telemetry 1.2.1
  telemetry_metrics 0.6.1
  telemetry_poller 1.0.0
  thousand_island 1.3.2
  websock 0.5.3
  websock_adapter 0.5.5
* Getting livebook (Hex package)
* Getting aws_credentials (Hex package)
* Getting aws_signature (Hex package)
* Getting bandit (Hex package)
* Getting dns_cluster (Hex package)
* Getting earmark_parser (Hex package)
* Getting ecto (Hex package)
* Getting jason (Hex package)
* Getting jose (Hex package)
* Getting mint_web_socket (Hex package)
* Getting phoenix (Hex package)
* Getting phoenix_ecto (Hex package)
* Getting phoenix_html (Hex package)
* Getting phoenix_live_dashboard (Hex package)
* Getting phoenix_live_view (Hex package)
* Getting plug_crypto (Hex package)
* Getting protobuf (Hex package)
* Getting req (Hex package)
* Getting telemetry_metrics (Hex package)
* Getting telemetry_poller (Hex package)
* Getting telemetry (Hex package)
* Getting finch (Hex package)
* Getting mime (Hex package)
* Getting castore (Hex package)
* Getting mint (Hex package)
* Getting nimble_options (Hex package)
* Getting nimble_pool (Hex package)
* Getting hpax (Hex package)
* Getting phoenix_template (Hex package)
* Getting plug (Hex package)
* Getting phoenix_pubsub (Hex package)
* Getting websock_adapter (Hex package)
* Getting websock (Hex package)
* Getting decimal (Hex package)
* Getting thousand_island (Hex package)
* Getting eini (Hex package)
* Getting iso8601 (Hex package)
* Getting jsx (Hex package)
Resolving Hex dependencies...
Resolution completed in 0.291s
Unchanged:
  aws_credentials 0.1.11
  aws_signature 0.3.1
  bandit 1.1.0
  castore 1.0.5
  decimal 2.1.1
  dns_cluster 0.1.1
  earmark_parser 1.4.37
  ecto 3.10.3
  eini_beam 2.2.3
  finch 0.17.0
  hpax 0.1.2
  iso8601 1.3.3
  jason 1.4.1
  jose 1.11.6
  jsx 3.0.0
  mime 2.0.5
  mint 1.5.2
  mint_web_socket 1.0.3
  nimble_options 1.1.0
  nimble_pool 1.0.0
  phoenix 1.7.10
  phoenix_ecto 4.4.2
  phoenix_html 3.3.2
  phoenix_live_dashboard 0.8.2
  phoenix_live_view 0.20.2
  phoenix_pubsub 2.1.3
  phoenix_template 1.0.4
  plug 1.15.3
  plug_crypto 2.0.0
  protobuf 0.8.0
  req 0.4.4
  telemetry 1.2.1
  telemetry_metrics 0.6.1
  telemetry_poller 1.0.0
  thousand_island 1.3.2
  websock 0.5.3
  websock_adapter 0.5.5
All dependencies are up to date
==> earmark_parser
Compiling 2 files (.xrl)
Compiling 1 file (.yrl)
Compiling 3 files (.erl)
Compiling 46 files (.ex)
Generated earmark_parser app
===> Analyzing applications...
===> Compiling aws_signature
==> decimal
Compiling 4 files (.ex)
Generated decimal app
==> mime
Compiling 1 file (.ex)
Generated mime app
===> Analyzing applications...
===> Compiling iso8601
==> nimble_options
Compiling 3 files (.ex)
Generated nimble_options app
===> Analyzing applications...
===> Compiling eini
===> Analyzing applications...
===> Compiling telemetry
==> telemetry_metrics
Compiling 7 files (.ex)
Generated telemetry_metrics app
===> Analyzing applications...
===> Compiling telemetry_poller
==> thousand_island
Compiling 16 files (.ex)
Generated thousand_island app
==> jason
Compiling 10 files (.ex)
Generated jason app
==> phoenix_pubsub
Compiling 11 files (.ex)
Generated phoenix_pubsub app
==> plug_crypto
Compiling 5 files (.ex)
Generated plug_crypto app
==> hpax
Compiling 4 files (.ex)
Generated hpax app
==> dns_cluster
Compiling 1 file (.ex)
Generated dns_cluster app
==> jose
Compiling 112 files (.erl)
Compiling 8 files (.ex)
Generated jose app
===> Analyzing applications...
===> Compiling jsx
===> Fetching rebar3_lint v0.3.2
===> Fetching elvis_core v1.1.2
===> Fetching katana_code v1.1.2
===> Fetching zipper v1.0.1
===> Analyzing applications...
===> Compiling zipper
===> Compiling katana_code
===> Compiling elvis_core
===> Compiling rebar3_lint
===> Analyzing applications...
===> Compiling aws_credentials
==> ecto
Compiling 56 files (.ex)
     warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
     │
 474 │       Logger.warn """
     │              ~
     │
     └─ lib/ecto/changeset/relation.ex:474:14: Ecto.Changeset.Relation.process_current/3

     warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
     │
 208 │           Logger.warn """
     │                  ~
     │
     └─ lib/ecto/repo/preloader.ex:208:18: Ecto.Repo.Preloader.fetch_ids/4

      warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
      │
 3156 │       Logger.warn """
      │              ~
      │
      └─ lib/ecto/changeset.ex:3156:14: Ecto.Changeset.optimistic_lock/3

Generated ecto app
==> plug
Compiling 1 file (.erl)
Compiling 40 files (.ex)
Generated plug app
==> phoenix_html
Compiling 9 files (.ex)
Generated phoenix_html app
==> phoenix_template
Compiling 4 files (.ex)
Generated phoenix_template app
==> protobuf
Compiling 34 files (.ex)
     warning: Logger.warn/1 is deprecated. Use Logger.warning/2 instead
     │
 105 │       Logger.warn("unknown enum value #{val} when decoding for #{inspect(enum)}")
     │              ~
     │
     └─ lib/protobuf/wire.ex:105:14: Protobuf.Wire.to_proto/2

warning: pattern matching on 0.0 is equivalent to matching only on +0.0 from Erlang/OTP 27+. Instead you must match on +0.0 or -0.0
└─ lib/protobuf/encoder.ex: Protobuf.Encoder.skip_field?/3

    warning: use Bitwise is deprecated. import Bitwise instead
    │
  4 │   use Bitwise, skip_operators: true
    │   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ lib/protobuf/wire/zigzag.ex:4: Protobuf.Wire.Zigzag (module)

    warning: use Bitwise is deprecated. import Bitwise instead
    │
 46 │   use Bitwise
    │   ~~~~~~~~~~~
    │
    └─ lib/protobuf/wire/varint.ex:46: Protobuf.Wire.Varint (module)

Generated protobuf app
==> nimble_pool
Compiling 2 files (.ex)
Generated nimble_pool app
==> castore
Compiling 1 file (.ex)
Generated castore app
==> mint
Compiling 1 file (.erl)
Compiling 19 files (.ex)
    warning: function set_flag/2 is unused
    │
 69 │     defp set_flag(unquote(frame), unquote(flag_name)), do: unquote(flag_value)
    │          ~
    │
    └─ lib/mint/http2/frame.ex:69:10: Mint.HTTP2.Frame (module)

Generated mint app
==> mint_web_socket
Compiling 7 files (.ex)
Generated mint_web_socket app
==> finch
Compiling 14 files (.ex)
Generated finch app
==> req
Compiling 6 files (.ex)
Generated req app
==> websock
Compiling 1 file (.ex)
Generated websock app
==> bandit
Compiling 49 files (.ex)
Generated bandit app
==> websock_adapter
Compiling 4 files (.ex)
Generated websock_adapter app
==> phoenix
Compiling 71 files (.ex)
Generated phoenix app
==> phoenix_live_view
Compiling 39 files (.ex)
Generated phoenix_live_view app
==> phoenix_live_dashboard
Compiling 36 files (.ex)
warning: phx-update="append" is deprecated, please use streams instead
  lib/phoenix/live_dashboard/pages/request_logger_page.ex:81: Phoenix.LiveDashboard.RequestLoggerPage.render/1

Generated phoenix_live_dashboard app
==> phoenix_ecto
Compiling 7 files (.ex)
Generated phoenix_ecto app
==> livebook
Compiling 239 files (.ex)
Generated livebook app
Generated escript livebook with MIX_ENV=prod
Are you sure you want to install "livebook"? [Yn] y
* creating /home/*****/.asdf/installs/elixir/1.16.1-otp-26/.mix/escripts/livebook

server起動

$ /home/*****/.asdf/installs/elixir/1.16.1-otp-26/.mix/escripts/livebook server


以上。

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?