garrison

garrison

Brew link did not complete successfully (wxwidgets) when updating Elixir

Just ran into some trouble updating elixir with brew so I thought I’d provide a quick writeup since I didn’t see anything else while searching.

I was upgrading elixir with brew upgrade and received an error claiming that wxwidgets@3.2 could not be linked, which interrupted the upgrade. A brew doctor check indeed showed it was unlinked.

Some brief spelunking showed that the erlang package was switched from wxwidgets to wxwidgets@3.2 for whatever reason.

Unfortunately it appears that these packages conflict during linking, and brew is not smart enough to uninstall wxwidgets (which was at the time actually at 3.2) before installing wxwidgets@3.2.

I first tried upgrading wxwidgets, which inadvertently upgraded erlang and elixir (brew moment), and surprisingly that upgrade completed successfully, but wxwidgets@3.2 still wasn’t linked. This seemed like a bad state to be in (presumably they pinned the version for a reason).

I tried brew link wxwidgets@3.2 thinking maybe it wouldn’t conflict now that wxwidgets was at 3.3, but apparently the paths still conflicted. I then tried uninstalling wxwidgets, but brew claimed that it was still required by elixir (but not erlang?!), which was a lie (elixir only depends on erlang). I then tried forcibly uninstalling wxwidgets, which succeeded.

I was going to then attempt brew link again, but at this point I realized I was wasting my time and just uninstalled elixir (which cleared out the deps) and reinstalled it from scratch, and the dependency resolution proceeded correctly that time (wxwidgets was not installed).

TL;DR brew uninstall elixir && brew install elixir

Most Liked

adamu

adamu

For me using brew and kerl I was getting this error when attempting to start observer:

[error] WX ERROR: Could not load library: :load_failed
Failed to load NIF library: …/lib/wx-2.5.1/priv/wxe_driver.so

The erlang docs currently state that 3.3 is experimental, so to install 3.2 with brew I had to:

brew uninstall wxwidgets
brew install wxwidgets@3.2
whereis wx-config-3.2 and add this to KERL_CONFIGURE_OPTIONS: --with-wx-config=/opt/homebrew/bin/wx-config-3.2

Then rebuild erlang.

Where Next?

Popular in Guides/Tuts Top

marcelo
I wrote a small article on how to use current_user with coherence on Phoenix. There are already a couple of blogposts about it but I thin...
New
fuelen
Hi all! Just want to share a small code snippet which allows writing CASE expressions using macro which is similar to cond. Here is an ...
New
dennisreimann
I wrote a guide for implementing Passwordless Authentication a.k.a. “Magic Login Links”: https://dennisreimann.de/articles/phoenix-passw...
New
OvermindDL1
Ran across this recently, it’s a set of cheatsheet inforgraphic things of the OTP behaviours on the BEAM: https://github.com/Telichkin/o...
New
WolfDan
So my main OS is Windows, I do must of my work with it, Elixir and vscode elixirls works just fine when you’re working only with elixir, ...
New
dkuhlman
For those of you who might be interested in using ZeroMQ in Elixir, I converted the Erlang examples in the ZeroMQ “zguide” to Elixir. I ...
New
lukertty
Install web-mode and mmm-mode first and put this in your config file: (require 'mmm-mode) (require 'web-mode) (setq mmm-global-mode 'may...
New
magnetic
Hey :waving_hand:t3: Elixir community, I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and ...
New
Morzaram
Hey guys I’ve made a guide on how to connect Quill to Phoenix. For the sake of formatting it might be easier to view it on my Notion Doc...
New
njwest
In the process of developing a Phx-based multiplayer experience, I found myself with so many browser tabs open with Elixir gaming resourc...
New

Other popular topics Top

malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42158 114
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New

We're in Beta

About us Mission Statement