albiere

albiere

Hey all :waving_hand:

I’ve been studying elixir for the past month and I’m really enjoying it. I guess this is just a way of saying I’m fairly new to the language.

My problem happens when I open up an iex session and issue a :observer.start. This crashes the Erlang VM and I get this pretty scary error (this is just the first line of the error):

objc[48474]: Class wxNSAppController is implemented in both /usr/local/Cellar/wxmac/3.0.5.1_1/lib/libwx_osx_cocoau_core-3.0.0.5.0.dylib (0x1b029c50) and /usr/local/opt/wxmac/lib/libwx_osx_cocoau_core-3.0.dylib (0x1a9a1c50). One of the two will be used. Which one is undefined.

As you can see, I’ve installed elixir and its dependencies via HomeBrew. Here’s the version of Elixir I’m running on my Mac.

$ elixir -v
Erlang/OTP 23 [erts-11.1.5] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe] [dtrace]

Elixir 1.11.3 (compiled with Erlang/OTP 23)

I’m running on Mac with BigSur 11.1.

I’ve asked a friend of mine to try the same thing on his machine, however running on the latest Catalina version, and things worked just fine. I’m assuming this is a MacOS problem, but I’m not quite sure yet.

I’d really appreciate any help on how to fix this issue. If I miss any info, please let me know.

Thanks!

First 10 of 28 Posts Switch mode

dimitarvp

dimitarvp

How did you install Erlang? I installed it both through homebrew and then through asdf and both worked just fine out of the box.

Can you post the output of brew info erlang? Maybe wxmac wasn’t installed (or errored out on install)?

LostKobrakai

LostKobrakai

dimitarvp

dimitarvp

That looks exhausting to do. I am guessing there’s no way to achieve the same with some sort of a kerl flag passed to it through asdf?

LostKobrakai

LostKobrakai

It’s basically editing one file with a handful of changes, so brew installs the recent development version of wxwidgets. After that you can build erlang however you want (not sure if rebuilding is required however).

albiere

albiere OP

here’s the output of brew info:

$ brew info erlang
erlang: stable 23.2.1 (bottled), HEAD
Programming language for highly scalable real-time systems
https://www.erlang.org/
/usr/local/Cellar/erlang/23.2.1 (7,978 files, 460.7MB) *
  Poured from bottle on 2021-01-15 at 11:31:21
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/erlang.rb
License: Apache-2.0
==> Dependencies
Build: autoconf ✔, automake ✘, libtool ✘
Required: openssl@1.1 ✔, wxmac ✔
==> Options
--HEAD
        Install HEAD version
==> Caveats
Man pages can be found in:
  /usr/local/opt/erlang/lib/erlang/man

Access them with `erl -man`, or add this directory to MANPATH.
==> Analytics
install: 30,248 (30 days), 96,829 (90 days), 358,251 (365 days)
install-on-request: 14,875 (30 days), 43,588 (90 days), 117,420 (365 days)
build-error: 0 (30 days)

I can see the wxmac package was installed as a dependency when I erlang was installed. Are you running on the same version of OS as me? That’s strange.

btw… thanks for helping to look into it.

albiere

albiere OP

I’m not really using dark mode. But thanks for sharing the article. I came across that one on my searches.

rodrigues

rodrigues

Hi @albiere, I have the same problem you have, also on BigSur :sweat_smile:

albiere

albiere OP

@rodrigues Were you able to test whether this error occurs on Catalina as well?

rodrigues

rodrigues

No, I didn’t. I have another mac in BigSur with no wxmac problems :upside_down_face:

The system seems confused for conflicting dylibs, but also doesn’t work without installing wxmac. Gotta still crack this…

dakaiju

dakaiju

I’ve met the same problem in below environment:

macOS Big Sur version 11.1
$ brew info erlang
erlang: stable 23.2.2 (bottled), HEAD
Programming language for highly scalable real-time systems
https://www.erlang.org/
/usr/local/Cellar/erlang/23.2.1 (7,978 files, 460.7MB) *
  Poured from bottle on 2021-01-14 at 00:25:29
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/erlang.rb
License: Apache-2.0
==> Dependencies
Build: autoconf ✘, automake ✘, libtool ✔
Required: openssl@1.1 ✔, wxmac ✔
==> Options
--HEAD
        Install HEAD version
==> Caveats
Man pages can be found in:
  /usr/local/opt/erlang/lib/erlang/man

Access them with `erl -man`, or add this directory to MANPATH.
==> Analytics
install: 29,723 (30 days), 97,041 (90 days), 357,716 (365 days)
install-on-request: 14,520 (30 days), 43,683 (90 days), 117,476 (365 days)
build-error: 0 (30 days)
$ brew info wxmac
wxmac: stable 3.0.5.1 (bottled), HEAD
Cross-platform C++ GUI toolkit (wxWidgets for macOS)
https://www.wxwidgets.org
/usr/local/Cellar/wxmac/3.0.5.1_1 (810 files, 52.2MB) *
  Poured from bottle on 2021-01-14 at 00:25:13
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/wxmac.rb
License: wxWindows
==> Dependencies
Required: jpeg ✔, libpng ✔, libtiff ✔
==> Options
--HEAD
        Install HEAD version
==> Analytics
install: 12,204 (30 days), 44,651 (90 days), 213,507 (365 days)
install-on-request: 1,821 (30 days), 5,313 (90 days), 23,234 (365 days)
build-error: 0 (30 days)

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
jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
silverdr
Using Phoenix.LiveView.TagEngine as an EEx.Engine is deprecated! To compile HEEx, use Phoenix.LiveView.TagEngine.compile/2 instead. Sta...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
michallepicki
I am using Oban and occasionally, shortly after a deployment, a handful of jobs can fail because of dependency on other parts of the syst...
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
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New

We're in Beta

About us Mission Statement