I'm running Kubuntu 15.04 64-bit and trying to get Erlang's 18.1 'debugger' or 'observer' to run (EDIT: from within the shell):
observer:start().
debugger:start().
I get the following error:
{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,96}]},
{wx_object,init_it,6,[{file,"wx_object.erl"},{line,337}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,240}]}]}}
ERROR REPORT==== 4-Oct-2015::15:34:01 ===
ERROR: Could not find 'wxe_driver.so' in: /home/howler/erlang/18.1/lib/wx-1.5/priv
I've tried various forums and have followed the prescribed advice concerning wxWidgets but I still can't get it to work?
Does anyone know of a definitive way to solve this problem?
Easy Way
Adding repository For Erlang Solutions repository using following commands:
wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
Install Erlang:
sudo apt-get update
sudo apt-get install erlang
Test run run erl and call wx:demo()
λ VIDIA ~ → erl
Erlang/OTP 18 [erts-7.1] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]
local .erlang loaded
Eshell V7.1 (abort with ^G)
1> wx:demo().
ok
<0.35.0> Closing window
2>
Build From Source
apt-get update
Install the build tools (dpkg-dev g++ gcc libc6-dev make)
apt-get -y install build-essential
automatic configure script builder (debianutils m4 perl)
apt-get -y install autoconf
Needed for HiPE (native code) support, but already installed by autoconf
apt-get -y install m4
Needed for terminal handling (libc-dev libncurses5 libtinfo-dev libtinfo5 ncurses-bin)
apt-get -y install libncurses5-dev
For building with wxWidgets
apt-get -y install libwxgtk2.8-dev libgl1-mesa-dev libglu1-mesa-dev libpng3
For building ssl (libssh-4 libssl-dev zlib1g-dev)
apt-get -y install libssh-dev
ODBC support (libltdl3-dev odbcinst1debian2 unixodbc)
apt-get -y install unixodbc-dev
Get Erlang/OTP source files
mkdir -p ~/code/erlang
cd ~/code/erlang
wget http://www.erlang.org/download/otp_src_18.0.tar.gz
tar -xvzf otp_src_18.0.tar.gz
chmod -R 777 otp_src_18.0
cd otp_src_18.0
./configure
make
make install
exit 0