Skip to content
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

【WSL2 Ubuntu 20.04 wxwidgets】erlang installation thorw configure: error: Can not link wx program are all developer packages installed? #9

Closed
yeshan333 opened this issue Jun 29, 2024 · 2 comments
Labels
question Further information is requested

Comments

@yeshan333
Copy link
Member

No description provided.

@yeshan333 yeshan333 added the question Further information is requested label Jun 29, 2024
@yeshan333
Copy link
Member Author

yeshan333 commented Jun 29, 2024

use ws-config --list can found has one and more config can be used.

wx-config --list

    Default config is base-unicode-3.0

  Default config will be used for output

  Alternate matches:
    base-unicode-3.2-unofficial
    gtk3-unicode-3.2-unofficial

use the update-alternative to find where is it:

❯ sudo update-alternatives --config wx-config
There are 3 choices for the alternative wx-config (providing /usr/bin/wx-config).

  Selection    Path                                                             Priority   Status
------------------------------------------------------------
  0            /usr/lib/x86_64-linux-gnu/wx/config/gtk3-unicode-3.2-unofficial   328       auto mode
* 1            /usr/lib/x86_64-linux-gnu/wx/config/base-unicode-3.0              306       manual mode
  2            /usr/lib/x86_64-linux-gnu/wx/config/base-unicode-3.2-unofficial   327       manual mode
  3            /usr/lib/x86_64-linux-gnu/wx/config/gtk3-unicode-3.2-unofficial   328       manual mode

Press <enter> to keep the current choice[*], or type selection number:

Solution:

1、remove installed wxwidgets: apt remove libwxgtk3.0-gtk3-dev libwxgtk-webview3.0-gtk3-dev
2、rm -rf /usr/lib/x86_64-linux-gnu/wx/
3、reinstall wxwidgets apt install libwxgtk3.0-gtk3-dev libwxgtk-webview3.0-gtk3-dev
4、reinstall erlang vfox install erlang@26.2.5.1

finally, problem has been sloved. got no wx related errors.

use erl REPL to check wxwidgets is installed normally.

❯ erl
Erlang/OTP 26 [erts-14.2.5.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit:ns]

Eshell V14.2.5.1 (press Ctrl+G to abort, type help(). for help)
1> crashdump_viewer:start().

crashdump_viewer

wx-config shoule use the gtk3-unicode-3.0

❯ wx-config --list

    Default config is gtk3-unicode-3.0

  Default config will be used for output

@yeshan333
Copy link
Member Author

relate issue: asdf-vm/asdf-erlang#244

@yeshan333 yeshan333 changed the title 【WSL2 Ubuntu 20.04】configure: error: Can not link wx program are all developer packages installed? 【WSL2 Ubuntu 20.04】erlang installation thorw configure: error: Can not link wx program are all developer packages installed? Jun 29, 2024
@yeshan333 yeshan333 pinned this issue Jun 29, 2024
@yeshan333 yeshan333 changed the title 【WSL2 Ubuntu 20.04】erlang installation thorw configure: error: Can not link wx program are all developer packages installed? 【WSL2 Ubuntu 20.04 wxwidgets】erlang installation thorw configure: error: Can not link wx program are all developer packages installed? Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant