Skip to content

Instantly share code, notes, and snippets.

@justinoboyle
Last active November 30, 2021 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinoboyle/ad38323a77ae9fb83f4033f4fccc731c to your computer and use it in GitHub Desktop.
Save justinoboyle/ad38323a77ae9fb83f4033f4fccc731c to your computer and use it in GitHub Desktop.
how to install erlang@22 with wxwidgets support on debian/ubuntu
for debian systems
fyi -- can usually just double click to install a package but if not, `sudo dpkg -i [path]` works too
1. update your mirrors:
`sudo apt-get update`
2. install this library that the wxwidgets depends on (weird but ubuntu LTS doesn't come with it)
http://http.us.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_2.1.2-1_amd64.deb
3. install erlang@22
https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_22.3.4.9-1~ubuntu~xenial_amd64.deb
4. install wxgtk
http://ftp.br.debian.org/debian/pool/main/w/wxwidgets3.0/libwxgtk3.0-0v5_3.0.4+dfsg-8_amd64.deb
5. restart your terminal and try running `erl`, should be `Erlang/OTP 22`
6. run `wx:new().` in the erlang interpreter:
- if you get "failed to load GTK module" that's a warning, not an error. ignore it
- if you get a single line with `{wx_ref,0,wx}` or similar, you are good
- if you get a ton of lines relating to errors, linking, or a .so file, the wxwidgets library didn't install right
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment