fireproofsocks

fireproofsocks

Livebook server: command not found: livebook

I thought I’d have a go at livebook, so I followed the instructions at Home - Livebook.dev but when I do livebook server, I get an error:

zsh: command not found: livebook

It looks like maybe asdf puts things somewhere in the PATH that is not expected? I can launch the command with the fully qualified location, e.g.

/Users/myuser/.asdf/installs/elixir/1.13.2-otp-24/.mix/escripts/livebook server

I’m wondering if others have encountered this problem and if maybe a note should be added to the docs?

Thanks for any input!

Marked As Solved

axelson

axelson

Scenic Core Team

Based on the path in your first post it looks like you’ve installed livebook in 1.13.2-otp-24 and are trying to run it in 1.13.0-otp-24 which doesn’t have the livebook command. If you are in a directory where asdf current reports 1.13.2-otp-24 then you can install livebook inside that elixir version with mix escript.install hex livebook.

Also Liked

kevinschweikert

kevinschweikert

Have you tried asdf reshim elixir <version> ? Core | asdf

axelson

axelson

Scenic Core Team

What does asdf current return in the directory that you’re trying to run livebook from?

fireproofsocks

fireproofsocks

I tried running asdf reshim elixir 1.13.0-otp-24

It got no errors, but still it doesn’t seem happy:

❯ livebook server
No preset version installed for command livebook
Please install a version by running one of the following:

asdf install elixir 1.13.0-otp-24

I’m confused now more than ever because asdf current DOES show the same versions installed that I had when I started kicking tires:

❯ asdf current
elixir          1.13.0-otp-24   /path/to/repo/.tool-versions
erlang          24.1.7          /path/to/repo/.tool-versions
nodejs          15.4.0          /path/to/repo/.tool-versions

Last Post!

fireproofsocks

fireproofsocks

Thank you for your comments. The problem was that my global Elixir version was different than the one used by my particular repo, so the mix escript.install ended up out of sync with the repo. Or something like that. Anyhow, once my bash profile version matched the Elixir version in the repo, things worked.

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New

Other popular topics Top

lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID&lt;0.412.0&gt; terminating ** (Postgrex.Error) FATAL...
New

We're in Beta

About us Mission Statement