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

Where Next?

Popular in Questions Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
Tee
can someone please explain to me how Enum.reduce works with maps
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
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
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
vegabook
I'm brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
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
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 47849 226
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New
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

We're in Beta

About us Mission Statement