Can erlang-wx package be used with OTP 26?


As I continue digging through the tutorial at I’ve encountered the section on Supervisors.

While trying to install erlang-wx in order to run the Software mentioned in the Observers topic. The following error arises:
erlang-wx : Depends: erlang-base (= 1:25.2.3+dfsg-1) but 1:26.0.2-1rmq1ppa1~ubuntu22.04.1 is to be installed.

Does erlang-wx only works with OTP 25?

I’ve installed OTP 26 a couple of months ago.

Erlang/OTP 26 [erts-14.0.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns]

Interactive Elixir (1.15.4) - press Ctrl+C to exit (type h() ENTER for help)



It looks like the repository you installed otp26 from did not come with Erlang-wx itself so when you try to install it explicitly it falls back to the os Erlang-wx from otp25.
To get otp26 with Erlang-wx you can look for another built package or create your own from source install using ASDF. Using ASDF is actually what I would recommend. Just ensure that you have libwxbase3.0-dev installed when running ASDF

1 Like