Last active
November 30, 2021 00:39
-
-
Save justinoboyle/ad38323a77ae9fb83f4033f4fccc731c to your computer and use it in GitHub Desktop.
how to install erlang@22 with wxwidgets support on debian/ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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