一台新安装的Debian Linux 6.0, 安装了Erlang R14B02. 直接运行erl,输入一些测试,没有问题。但是部署一个Erlang的应用程序之后,启动出错,主要提示为:

 

{"no such file or directory","crypto.app"}

 

这个Erlang的应用程序用到了openssl相关的类库,检查了一遍系统的类库,发现 openssl-dev这个库没有安装,apt-get安装后继续出错,搜索发现erlang-ssl这个库没有,apt-get安装后还是无效。

最后发现一个成功解决的案例:

 

http://permalink.gmane.org/gmane.comp.networking.rabbitmq.general/5650

 

随后将Erlang卸载,重新编译安装(加这个参数 '–with-ssl=PATH')后一切正常。

 

后记:Erlang在编译的时候如果系统缺少一些类库,比如odbc,ssl等,会给出一些警告信息,但是并不会阻塞后面的安装,安装成功后一般会认为安装成功了(基本的测试也能通过),但是实际上一些erlang的类库并没有成功编译安装,这种情况下重新编译安装即可。

Tagged with:  

One Response to Erlang {“no such file or directory”,”crypto.app”} 的解决方法

  1. [...] 该异常的解决办法和《Erlang {“no such file or directory”,”crypto.app”}  的解决方法》类似首先确认linux下安装了如下的包: apt-get  install unixodbc unixodbc-dev [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>