现阶段github上的emysql编译无法通过的问题

 最近在写db引擎,今天用到了emysql,找到https://github.com/Eonblast/Emysql,拽下来,然后发现竟然编译不通过~~
图片
去网上找了下资料,在 http://erlang.org/pipermail/erlang-questions/2014-March/078081.html 翻到一条信息:
Re: 2. Dialyzer dislikes queue(), dict(), ...OTP-10342The pre-defined types array/0, dict/0, digraph/0, gb_set/0, gb_tree/0,queue/0, set/0, and tid/0 have been deprecated. They will be removed inErlang/OTP 18.0.Instead the types array:array/0, dict:dict/0, digraph:graph/0,gb_set:set/0, gb_tree:tree/0, queue:queue/0, sets:set/0, and ets:tid/0 canbe used. (Note: it has always been necessary to use ets:tid/0.)It is allowed in Erlang/OTP 17 to locally re-define the types array/0,dict/0, and so on.
大意是erlang新版本将进行大量的类型替换和重定义,所以旧版本的类型就用不了了。
找到emysql.erl第661行,将dict()替换成dict:dict()
图片
编译通过,搞定!
图片

posted @ 2016-04-02 20:18  李世铭  阅读(261)  评论(0编辑  收藏  举报