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!

Showing Posts 1 to 10

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
water
I’m aware of 2 such projects, are there others? git: GitHub - team-alembic/realworld: A fullstack Phoenix LiveView application with back...
New
itzmidinesh
Hi all, I’m working on a Phoenix project where I need to make external HTTP requests and I’m trying to choose between Req and HTTPoison....
New
peck
Hi everyone. My team and I have been working on a fairly modest app based around video streaming and chat, but we’ve landed a customer t...
New
leoschweizer
Hi, we run different LLM models across a cluster, with each node loading a configurable subset. Model-specific queues let nodes consume ...
New
csmr
Hi all, I’m new here and would like to hear peoples views on my Elixir/Phoenix based game-engine! :smiley: Mutonex gamedesign was finish...
New
Stef-Verniers
Hello I’ve been coding in Elixir for almost two years now because of my current job where we implemented Elixir in our application. But ...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
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

Options

Thread Display Mode




Thread Preview

Skip Thread Previews