erlang Ubuntu 20.04.1版本LTS:错误:找不到'wxe_driver.so'

uklbhaso  于 2022-12-08  发布在  Erlang
关注(0)|答案(2)|浏览(163)
maxximiliann@Maxximiliann:$ iex -S mix
Erlang/OTP 22 [erts-10.7.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [

Interactive Elixir (1.10.3) - press Ctrl+C to exit (type h() ENTER for help)

iex(1)> :observer.start

12:45:30.511 [error] ERROR: Could not find 'wxe_driver.so' in: /home/maxximiliann/.asdf/installs/erlang/22.3.3/lib/wx-1.9/priv

{:error,
{{:load_driver, 'No driver found'},
[ 
{:wxe_server, :start, 1, [file: 'wxe_server.erl', line: 65]},
{:wx, :new, 1, [file: 'wx.erl', line: 115]},
{:observer_wx, :init, 1, [file: 'observer_wx.erl', line: 107]},
{:wx_object, :init_it, 6, [file: 'wx_object.erl', line: 372]},
{:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 249]}
]}}

按照These说明在此Ubuntu计算机上安装erlang-wx

Operating System: Ubuntu 20.04.1 LTS
Kernel: Linux 5.4.0-48-generic
Architecture: x86-64

运行observer还需要什么?

oxcyiej7

oxcyiej71#

erlang-wx包只被通过Ubuntu包安装的Erlang使用,但是你的包是用asdf构建的,当你要求asdf构建Erlang时,它大概会输出如下内容:

* wx             : wxWidgets not found, wx will NOT be usable

要解决此问题,请安装包libwxgtk3.0-gtk3-dev,然后删除并重新安装asdf Erlang安装。

s4chpxco

s4chpxco2#

重新共享解决了我的问题::observer.start is not working on Ubuntu答案来自rogerweb

  • 操作系统:Ubuntu 20.04.4
  • 长生不老药:1.13.0
  • 爱尔兰语/OTP 25 [Erts-13.0.3]

解决方法:
sudo apt install libwxgtk-webview3.0-gtk3-0v5

相关问题