fireproofsocks

fireproofsocks

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!

Showing Posts 1 to 5

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 OP

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
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.

fireproofsocks

fireproofsocks OP

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.

— All posts loaded —

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
roeland
Kia ora, We have been using elixir-google-api to connect to Google Drive. However, with the updates to Tesla due to CVEs this is now bro...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
jaybe78
Hello, I’m developing a online persistent chat system (what’s app) like using elixir/dynamodb/aws for a mobile app(flutter). The diffic...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge &amp; Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New
aseigo
ICal is a library for interacting with iCalendar data. It parses iCalendars into typed Elixir structs via ICal.from_ics, and can prepare ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews