简体   繁体   English

在Linux Mint上安装PHOENIX(错误:OpenSSL)

[英]Installation PHOENIX on linux mint (Error: OpenSSL)

I have problems to install phoenix on my linux mint (18.3). 我在Linux Mint(18.3)上安装phoenix时遇到问题。 Can anybody help me? 有谁能够帮助我?

I have installed erlang (20) and elixir (1.6.3) with the the installation routine from phoenixframework . 我已经安装了二郎(20)和灵药(1.6.3)从安装例程phoenixframework

But when I came to command $ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez to install phoenix, I get the error: 但是当我命令$ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez安装phoenix时,出现错误:

[error] Unable to load crypto library. [错误]无法加载密码库。 Failed with error: ":load_failed, Failed to load NIF library /usr/lib/erlang/lib/crypto-4.2.1/priv/lib/crypto: 'libcrypto.so.1.0.2: cannot open shared object file: No such file or directory'" OpenSSL might not be installed on this system. 失败,错误:“:load_failed,无法加载NIF库/usr/lib/erlang/lib/crypto-4.2.1/priv/lib/crypto:'libcrypto.so.1.0.2:无法打开共享对象文件:否这样的文件或目录”“ OpenSSL可能未安装在此系统上。

I looked in the synaptic-package-manager from my linux and see that "libssl1.0.0" is already installed. 我从Linux上查看了synaptic-package-manager,发现已经安装了“ libssl1.0.0”。 (I also tried to install from local path like it is described, but the problem is the same at the end.) (我也尝试像描述的那样从本地路径安装,但是最后的问题是一样的。)

Can anybody help? 有人可以帮忙吗?

Solution: 解:

sudo apt-get install libssl1.0.2

or manual package installed . 安装了手动包装 Then... 然后...

sudo apt-get install erlang-crypto

Then I could create my first project without errors: 然后,我可以没有错误地创建我的第一个项目:

mix phx.new hello

Thanks @bla 谢谢@bla

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM