Erlang webtool 无法启动
Erlang webtool won't start
只是想知道我的 Erlang 网络工具发生了什么。我是 运行ning Ubuntu 15.10,我已经检查了 erlang-webtool 包是否已安装。但是,当我尝试 运行 时,我得到以下信息:
1> webtool:start().
{error,
{shutdown,
{failed_to_start_child,
{httpd_instance_sup,{127,0,0,1},8888,default},
{shutdown,
{failed_to_start_child,
{httpd_manager,{127,0,0,1},8888,default},
{error,
{invalid_option,
{module_does_not_exist,mod_include}}}}}}}}
=ERROR REPORT==== 7-Mar-2016::15:47:36 ===
Failed initiating web server:
undefined
{invalid_option,{module_does_not_exist,mod_include}}
我的 Erlang 版本:Erlang/OTP 18 [erts-7.0] [source] [64-bit] [smp:8:8] [async-threads:10] [kernel-poll:false]
有什么想法吗?谢谢
Webtool 似乎在 E/OTP18 中损坏了。我看到了同样的事情,当我删除了 mod_include(不再存在)的提及时,webtool 就可以工作了。
快速修复:手动编辑 webtool.erl,删除提到 mod_include
、运行 erlc webtool.erl
的行,然后复制结果 webtool.beam
到 ebin 目录,覆盖那里现有的文件。
为了正确修复,我打开了一个 PR:https://github.com/erlang/otp/pull/985
编辑:来自 PR 的结论是 webtool 已被弃用,并且在版本 19 中根本不会出现。它也没有重要到制作计划外补丁的程度。如果出现一些重要的事情(比如与安全相关的错误),那么针对该问题的补丁可能会包括对 webtool 的修复。但是,您最好的选择是要么降级到 webtool 未损坏的较低版本,要么执行我上面概述的手动修复。
只是想知道我的 Erlang 网络工具发生了什么。我是 运行ning Ubuntu 15.10,我已经检查了 erlang-webtool 包是否已安装。但是,当我尝试 运行 时,我得到以下信息:
1> webtool:start().
{error,
{shutdown,
{failed_to_start_child,
{httpd_instance_sup,{127,0,0,1},8888,default},
{shutdown,
{failed_to_start_child,
{httpd_manager,{127,0,0,1},8888,default},
{error,
{invalid_option,
{module_does_not_exist,mod_include}}}}}}}}
=ERROR REPORT==== 7-Mar-2016::15:47:36 ===
Failed initiating web server:
undefined
{invalid_option,{module_does_not_exist,mod_include}}
我的 Erlang 版本:Erlang/OTP 18 [erts-7.0] [source] [64-bit] [smp:8:8] [async-threads:10] [kernel-poll:false]
有什么想法吗?谢谢
Webtool 似乎在 E/OTP18 中损坏了。我看到了同样的事情,当我删除了 mod_include(不再存在)的提及时,webtool 就可以工作了。
快速修复:手动编辑 webtool.erl,删除提到 mod_include
、运行 erlc webtool.erl
的行,然后复制结果 webtool.beam
到 ebin 目录,覆盖那里现有的文件。
为了正确修复,我打开了一个 PR:https://github.com/erlang/otp/pull/985
编辑:来自 PR 的结论是 webtool 已被弃用,并且在版本 19 中根本不会出现。它也没有重要到制作计划外补丁的程度。如果出现一些重要的事情(比如与安全相关的错误),那么针对该问题的补丁可能会包括对 webtool 的修复。但是,您最好的选择是要么降级到 webtool 未损坏的较低版本,要么执行我上面概述的手动修复。