observer debugger 启动不了; erlang R17

ERROR: Could not find 'wxe_driver.so' in: /usr/local/lib/erlang/lib/wx-1.3/priv


wx没装好


http://sourceforge.net/projects/wxwindows/files/3.0.0/

下载 wx


./configure 失败,---GTK相关没装好。


安装GTK...

yum install wxGTK*


make install 完成安装wx


出现错误

observer:start(). {error,{{load_driver,"libwx_gtk2u_stc-3.0.so.0

则 lib 路径设置问题:


编辑~/.bash_profile文件:

$ vi ~/.bash_profile 

添加:

LD_LIBRARY_PATH=/usr/local/lib

export LD_LIBRARY_PATH

这两行,完成之后.bash_profile如下所示:

 

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

        . ~/.bashrc

fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

LD_LIBRARY_PATH=/usr/local/lib

export PATH

export LD_LIBRARY_PATH

然后运行
$ source ~/.bash_profile 。
执行 echo $ LD_LIBRARY_PATH,显示结果为/usr/local/lib,则执行成功。

你可能感兴趣的:(erlang,gtk,erlang)