安装rebar时提示"Uncaught error in rebar_core"
来源:互联网 发布:linux enca 编辑:程序博客网 时间:2024/06/05 11:41
按照教程安装rebar,从 https://github.com/rebar/rebar/ 下载编译好的版本(注:网上大多数都是说的http://github.com/rebar/rebar/wiki/rebar这个地址,但是这个地址找不到,应该是已经更新了),或者直接下载源码包到本地,然后自己编译:
git clone git://github.com/rebar/rebar.gitcd rebar./bootstrap
安装成功会提示(https://github.com/rebar/rebar):
Recompile: src/getopt...Recompile: src/rebar_utils==> rebar (compile)Congratulations! You now have a self-contained script called "rebar" inyour current working directory. Place this script anywhere in your pathand you can use rebar to build OTP-compliant apps.
我的却提示:
Recompile: src/getopt...Recompile: src/rebar_xrefUncaught error in rebar_core: {'EXIT', {undef, [{crypto,start,[],[]}, {rebar,run_aux,2, [{file,"src/rebar.erl"},{line,163}]}, {rebar,main,1, [{file,"src/rebar.erl"},{line,58}]}, {erl_eval,do_apply,6, [{file,"erl_eval.erl"},{line,657}]}, {escript,eval_exprs,5, [{file,"escript.erl"},{line,865}]}, {erl_eval,local_func,5, [{file,"erl_eval.erl"},{line,544}]}, {escript,interpret,4, [{file,"escript.erl"},{line,781}]}, {escript,start,1, [{file,"escript.erl"},{line,276}]}]}}
随后就是各种查资料,最后弄明白了,其实不是rebar的问题,从报错可以看出在编译crypto模块时候出现了undef错误,也就是说crypto模块不存在,这个模块其实是安装erlang的时候生成的,也就是说问题出在erlang 上;
rebar的github(https://github.com/yrashk/socket.io-erlang)说明里也提到了这个问题如下:
其实这是因为erlang在安装的时候没有安装openssl,erlang安装的时候需要依赖几个库,其中就有openssl,可以参考这篇文章, 但是我安装openssl时候却提示已安装,之后我查到源码包安装erlang时,config要带一些参数,我发现我的openssl路径和网上提到的 都不一样,所以我就在--withssl="path"里把自己的openssl路径填上重新安装了一次erlang之后问题就解决了,
问题解决之前:
解决之后:
如果这样还解决不了问题可以参考下面的帖子:
erlang加载openssl失败
erlang crypto模块不兼容openssl
源码安装erlang
Uncaught error in rebar_core
另加一篇安装erlang的文章:
http://my.codeweblog.com/u/1540325/blog/308984
- 安装rebar时提示"Uncaught error in rebar_core"
- 安装rebar时提示"Uncaught error in rebar_core"
- Uncaught Error: Error calling method on NPObject 或者uncaught exception: Error in Actionscript. Use a
- smarty出现“Uncaught exception ‘SmartyCompilerException’ with message ‘Syntax Error in template”错误时的解决办
- rebar安装出错
- ubuntu 12.04 rebar 安装
- 安装oracle时提示Error in CreateOUIProcess(): 13 : Permission denied 的详细解决办法。
- angular4.0 ERROR Error: Uncaught (in promise): Error: No provider for AuthGuard! Error: No provider
- 安装DirectXSDK时提示Error Code s1023
- 安装DirectXSDK时提示Error Code s1023
- 安装DirectXSDK时提示Error Code s1023
- 安装DirectXSDK时提示Error Code s1023
- error:Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "D:\sms\xampp\htdocs\lanyu
- linux打开文件时提示Write error in swap file
- Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "E:\xampp\htdocs\lanyun-4.4.1\te
- PHP连接Mysql报错 Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /Application
- kafka 运行问题:ERROR Uncaught error in kafka producer I/O thread 的处理
- PHP Fatal error: Uncaught Error: Class 'ZipArchive' not found in /nginx/html/vendor/phpoffice/phpex
- iOS自定义相机截取图片旋转90°的问题
- Linux shell命令2
- javascript数组去重 - 效率测试
- check how many files are added or modified or deleted by git command and python
- Android开发UI布局必备基础知识
- 安装rebar时提示"Uncaught error in rebar_core"
- CocosCreator反射在Android中的使用
- linux内核学习的屠龙刀、倚天剑(需要搭配硬件调试环境)
- CheckBox复选框
- SlidingPaneLayout和DrawerLayout的区别
- 增量排序(未)
- IO密集型vs计算密集型
- Android Genymotion模拟器连接不上10.0.2.2:8080的解决办法
- mysql慢查询相当