salo

salo

Hi,

Steps to replicate problem:

  1. install raspbian lite on a rasberry pi 3 model b+
  2. install latest version of elixir using the method described here: Installing Elixir - The Elixir programming language
  3. Start iex and execute “import Calendar.ISO”

Expected result is that elixir imports this library.

What I get instead is an error.
[error] Loading of /usr/lib/elixir/bin../lib/elixir/ebin/Elixir.Calendar.ISO.beam failed: :badfile
[error] bean/beam_load.c(2314): Error loading function ‘Elixir.Calendar.ISO’:from_unix/2: op i_plus q x p x: no specific operation found

What I’ve tried so far: reinstalled my rasberry completely (I first had a full raspbian installation, changed to lite version), use an older elixir version. Reason I noticed this problem is that phoenix tries to import Calendar.ISO hen compiling. Currently using elixir 1.8.1, erlang/OTP 22 (erts-10.41).

Showing Posts 1 to 6

NobbZ

NobbZ

Seems to be that the package is defect, have you tried installing from source?

edit

If installation from source does work and fixes the module, I’d suggest to contact erlang-solutions and tell them about the defective package, such that they can recompile and update it.

Keep in mind though, that erlang solutions is not related to elixir at all. They are just a company that happens to provide those packages for free.

outlog

outlog

I would recommend/try using the asdf package manager for installing erlang and elixir.. https://asdf-vm.com/

salo

salo OP

Thanks @outlog, installing with asdf fixed it.

WR1171

WR1171

Greetings salo, can you point me in the right direction for you asdf install. I am a bit out of my element, I have been working on installing elixir/erlang on my pi for a few weeks. It looks like an issue with Elixir requesting erlang-base version 1.20.3 and the version for pi is 1.20.1.1, but from what I am reading asdf may be helpful in fixing this issue.

Any help would be greatly appreciated

Cheers,

bleonard252

bleonard252

I’ve tried installing it on asdf, but it’s not working for some reason. I had Elixir 1.9.0 and Erlang 22.0 (they said Elixir was compiled against 20.0 so I’m trying to install that.)

E14

E14

I was able to use it with (ESL) Erlang/OTP21:

# sudo apt remove -y esl-erlang && sudo apt autoremove
sudo apt install -y esl-erlang=1:21.3.3-1
sudo apt-mark hold esl-erlang # prevents apt from updating the package
sudo apt install -y elixir

You can find available alternative versions using apt list -a esl-erlang

Maybe it helps someone :slight_smile:

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
nseaSeb
Hello, I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
brecabral
Documentation While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews