-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Erlang 24.0 installation error message: wxWidgets was not compiled with --enable-webview or wxWebView developer package is not installed #203
Comments
Related: I updated the wiki to include instructions for Arch Linux users. It's essentially the same strategy proposed here but with the AUR and Arch packages. |
Getting the same error on a mac.
Any tips how to get it working? |
I was able to get things working by building
Note: I'm installing on macOS here. Thus, please update the After getting export KERL_BUILD_DOCS=yes
export KERL_INSTALL_MANPAGES=yes
export wxUSE_MACOSX_VERSION_MIN=11.3
export EGREP=egrep
export CC=clang
export CPP="clang -E"
export KERL_USE_AUTOCONF=0
export KERL_CONFIGURE_OPTIONS="--disable-debug \
--disable-hipe \
--disable-sctp \
--disable-silent-rules \
--enable-darwin-64bit \
--enable-dynamic-ssl-lib \
--enable-kernel-poll \
--enable-shared-zlib \
--enable-smp-support \
--enable-threads \
--enable-wx \
--with-ssl=/opt/local \
--with-wx-config=/usr/local/bin/wx-config \
--without-javac \
--without-jinterface \
--without-odbc" Note: I recommend adding environment variables to your --with-ssl= Finally, update package registry and install Erlang 24.0.1 asdf plugin-update --all
asdf install erlang 24.0.1 |
Cool. Thanks a lot! I needed to add:
to what you wrote. |
Unfortunately, installing |
Great, on Linux (using Archlinux) I believe the above should be fine, but I didn't do the export part and it worked fine. I also removed any reference to darwin/mac and it worked great. 🚀 basically this:
|
I use Manjaro linux and had the same problem. I solved with: |
Precision on @fabramosdev comment
If you have installed wxgtk3 you'll need |
See https://erlang.org/doc/installation_guide/INSTALL.html#Advanced-configuration-and-build-of-ErlangOTP_Building_Building-with-wxErlang https://elixirforum.com/t/observer-start-crashes-erlang-vm/36875/18 https://stackoverflow.com/questions/67576487/fix-the-erlang-observer-on-osx-with-dark-mode asdf-vm/asdf-erlang#95 asdf-vm/asdf-erlang#203
My server is running 16.04 and |
For MacOS Big Sur 11.6 run |
@johnrlive I also have |
I cannot for the life of me seem to be able to get this to work on Ubuntu 20.04, I've re-compiled wxWidgets multiple times w/ the flags and tried the various things here, and I'm still getting |
I ended up having to install KERL_USE_AUTOCONF=0 KERL_CONFIGURE_OPTIONS="--enable-wx --with-wx --enable-webview --with-wx-config=/usr/local/bin/wx-config" asdf install erlang I'm no longer getting the error |
Just did the same workaround as pointed by @BobbyMcWho on Pop!_OS 21.04 and finally got it to work after many tries! |
For what it's worth, I got this working by following the original suggestion. I am using WSL2 on Windows with the Ubuntu distribution (20.04.3 LTS). I already had Erlang installed with sudo apt install libwxgtk-webview3.0-gtk3-dev
asdf uninstall erlang 24.2
asdf install erlang 24.2 Everything worked fine during the installation. I am even able to run |
I am using Debian testing/bookworm. From Debian testing repositories there is no package libwxgtk-webview3.0-gtk3-dev, but libwxgtk-webview3.2-dev. I don't know this is a temporal rename or will go with the new name. This change seems applied to the recent Ubuntu releases (Kinetic and Lunar), so some Ubuntu users might have the issue as I had (Error message with "Library load-call unsuccessful")
What I did is pretty much same as what others did (I got helped so much, thanks for everyone!) To build and install wxWidgets: $ git clone --branch WX_3_0_BRANCH [email protected]:wxWidgets/wxWidgets.git
$ cd wxWidgets
$ ./configure \
--prefix=/usr/local \
--enable-webview \
--enable-compat28 \
--with-gtk=3
$ git submodule update --init src/png
$ git submodule update --init src/jpeg
$ make -j4 && sudo make install
$ export PATH=/usr/local/bin:$PATH
$ sudo ldconfig # <= don't forget this! Install asdf as usual. $ export KERL_BUILD_DOCS=yes
$ export KERL_USE_AUTOCONF=0
$ export KERL_CONFIGURE_OPTIONS="--disable-debug \
--enable-wx \
--with-wx \
--enable-webview \
--with-wx-config=/usr/local/bin/wx-config \
--without-javac \
--without-jinterface \
--without-odbc"
$ asdf install erlang $ERLANG_VERSION
$ asdf global erlang $ERLANG_VERSION There might be some unnecessary options here and there, but finally I could launch the debugger, observer, and demo. |
Installing Erlang 24.0 on Ubuntu 20.04 based on the current asdf advised package prerequisites results in the following error message:
wxWidgets was not compiled with --enable-webview or wxWebView developer package is not installed
One of the new features of Erlang 24.0 is the addition of support for wxWebView.
https://www.erlang.org/downloads/24.0
The asdf Erlang installation instructions for Ubuntu 20.04 mention only the prerequisite package libwxgtk3.0-gtk3-dev. If only this package is installed, the following error message is displayed upon installing Erlang 24.0 using asdf:
asdf install erlang 24.0
After installing the
libwxgtk-webview3.0-gtk3-dev
package, this error no longer occurs.I would propose changing the asdf Erlang installation instructions for Ubuntu 20.04 from
If you want to install all the above: apt-get -y install build-essential autoconf m4 libncurses5-dev libwxgtk3.0-gtk3-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop libxml2-utils libncurses-dev openjdk-11-jdk
to
If you want to install all the above: apt-get -y install build-essential autoconf m4 libncurses5-dev libwxgtk3.0-gtk3-dev libwxgtk-webview3.0-gtk3-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop libxml2-utils libncurses-dev openjdk-11-jdk
Note the addition of the
libwxgtk-webview3.0-gtk3-dev
package.The text was updated successfully, but these errors were encountered: