Erlang构建失败:无法链接wx驱动程序,wx将无法使用

时间:2014-07-16 09:11:49

标签: erlang

运行时

./configure会返回错误消息:

wx:Can not link the wx driver, wx will NOT be useable

当我运行.\configure | grep wx时,日志如下:

configure: configuring in wx/.
configure: running /bin/bash '/home/nihal/Downloads/otp_src_17.1/lib/wx/./configure' --prefix=/usr/local  '--prefix=/usr/local' 'ERL_TOP=/home/nihal/Downloads/otp_src_17.1' '--cache-file=/dev/null' '--srcdir=/home/nihal/Downloads/otp_src_17.1/lib' --cache-file=/dev/null --srcdir=/home/nihal/Downloads/otp_src_17.1/lib/wx/.
rm: remove write-protected regular file './CONF_INFO'? 
checking for debug build of wxWidgets... checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.8.4 (--unicode --debug=yes)... yes (version 2.8.12)
checking for wxWidgets static library... no
checking for standard build of wxWidgets... checking for wx-config... (cached) /usr/bin/wx-config
checking for wxWidgets version >= 2.8.4 (--unicode --debug=no)... yes (version 2.8.12)
checking for wxWidgets static library... no
checking if wxwidgets have opengl support... yes
checking for wx/stc/stc.h... yes
checking if we can link wxwidgets programs... yes
wx        : Can not link the wx driver, wx will NOT be useable

我如何成功构建它?

3 个答案:

答案 0 :(得分:3)

如果您不需要wx,则可以使用以下内容构建Erlang:

./configure --without-wx

如果您需要wx支持,请参阅Building with wxErlang部分的instructions

答案 1 :(得分:0)

检查$ ERL_TOP / lib / wx / config.log文件的内容是否有可能的原因。

就我而言,我错过了c ++编译器。安装g ++后,我能够编译和安装OTP,没有其他问题。

答案 2 :(得分:-1)

在CentOS 7上构建erlang时遇到了同样的错误。 我也错过了C ++编译器。 在做了yum install gcc-c ++之后,我成功地构建了erlang。