linusdm

linusdm

Adding `ex_cldr_collation` fails in docker release (debian runner image)

I’m trying to add ex_cldr_collation as a dependency to a standard phoenix application. I’m having an issue with the docker build.

I understood that the libicu-dev package is required for building, which got me one step further (at first compilation failed, but now the application at least compiles).

When the image starts the phoenix application, I get this error:

  crasher:
    initial call: application_master:init/4
    pid: <0.2044.0>
    registered_name: []
    exception exit: {{shutdown,
                      {failed_to_start_child,kernel_safe_sup,
                       {on_load_function_failed,'Elixir.Cldr.Collation',
                        {{badmatch,
                          {error,
                           {load_failed,
                            "Failed to load NIF library: '/app/lib/ex_cldr_collation-0.7.0/priv/ucol.so: undefined symbol: ucol_strcollIter_67'"}}},
                         [{'Elixir.Cldr.Collation',init,0,
                           [{file,"lib/cldr_collation.ex"},{line,20}]},
                          {init,'-run_on_load_handlers/2-fun-0-',1,[]}]}}}},
                     {kernel,start,[normal,[]]}}
      in function  application_master:init/4 (application_master.erl, line 142)
  ...

As far as I understand, the runner image also has to have an icu dependency although that’s not mentioned explicitly in the documentation of ex_cldr_collation. But I’m failing to understand which packages exactly would provide these undefined symbols (ucol_strcollIter_67). I’ve tried adding libicu-dev, just like in the builder image, but that didn’t work. The package libicu67 also didn’t resolve the problem.

There was some recent activity on the issue tracker of ex_cldr_collation, but that seems to be more related to ubuntu and alpine images. Moreover, there is no mention of packages required at runtime in the docs, only a mention of what’s required to build, which confuses me a bit.

Suggestions appreciated!

First Post!

kip

kip

ex_cldr Core Team

@linusdm, sorry for you not having much fun with this. The documentation definitely needs improvement in this area - my lack of knowledge of the various Linux denominations if the primary fault. I hope others more experienced than I am (probably everyone!) can chime in.

My reading suggests that installing the package icu should bring in the right versions of libicu-dev and libicu for whatever version of Debian you are on.

BTW, I’ve only recently become aware that while Ubuntu and MacOS come with libicu installed (the runtime requirement), Debian and Alpine do not. Which is why runtime requirements haven’t been mentioned - I will fix that now I have some more knowledge (albeit not enough!).

Please do open an issue so we can get to the bottom of this ASAP.

Last Post!

linusdm

linusdm

Thanks for the reply. I see you’ve improved the docs already.

There is no package literally called icu though, for debian based installs. There is libicu67 which should provide the missing symbol I think, but it doesn’t fix the error.

I’ve taken it to the issue tracker as you suggested: Can't load NIF library in the default phoenix debian docker image: undefined symbol: ucol_strcollIter_67 · Issue #6 · elixir-cldr/cldr_collation · GitHub
I’ll report back if there is any relevant news.

Thanks!

Where Next?

Trending in Questions 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
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" =&gt; #BSON.ObjectId&lt;58eb1a7a9ad169198c3dXXXX&gt;, "email" =&gt; ...
New
tj0
I’ve been following the steps here for the upgrade from 1.6 to 1.7 and it has gone relatively smoothly all the way till the phoenix_view ...
New
cgraham
Hi! What is currently the best library/method for parsing text and tabular data out of PDF files in Elixir or Erlang?
New
stefanchrobot
Hi, I need a way to handle data migrations in my application. I found an article by @wojtekmach about manual migrations: Automatic and ma...
New
stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
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
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
webofbits
Squid Mesh is an open source workflow automation runtime for Elixir applications. It is aimed at Phoenix and OTP apps that want to defin...
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
kip
In 2021 I started a new library called Tempo with the objective of modelling time as a set of intervals - not as instants. In 2022 I gave...
New

We're in Beta

About us Mission Statement