无法编译依赖关系:咸,“混合编译";失败的 [英] could not compile dependency :salty, "mix compile" failed

查看:86
本文介绍了无法编译依赖关系:咸,“混合编译";失败的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 mix compile 编译我的应用程序,并且依赖项 salty 发生错误.

I am compiling my application with mix compile and there an error is occurring for the dependency salty.

我已经添加了依赖项 salty libsodium .但是错误仍然无法解决.

I have already added the dependency salty and libsodium. But still error is not resolved.

这是我的 mix.exs 文件,其中包含所有依赖项.

this is my mix.exs file with all the dependencies.

defp deps do
    [
      {:poison, "~> 3.0", override: true},
      {:syndicate, in_umbrella: true},
      {:xarango, "~> 0.7.0"},
      {:ecto, "~> 3.1"},
      {:phoenix, "~> 1.4.0"},
      {:gettext, "~> 0.11"},
      {:cowboy, "~> 2.6"},
      {:joken, "~> 2.0"},
      {:ecto_sql, "~> 3.0"},
      {:jason, "~> 1.0"},
      {:postgrex, ">= 0.0.0"},
      {:sage, "~> 0.4.0"},
      {:salty, "~> 0.1.3", hex: :libsalty},
      {:libsodium, "~> 0.0.10"}
    ]
  end

它应该可以完美编译,但是会引发错误

it should compile perfectly but it is throwing an error

 SALTY_CONST_INT64(box_curve25519xchacha20poly1305_SEEDBYTES);
 ^
src/salty_nif.c: In function ‘salty_aead_xchacha20poly1305_ietf_ABYTES’:
src/salty_nif.c:632:1: warning: control reaches end of non-void function [-Wreturn-type]
 SALTY_CONST_INT64(aead_xchacha20poly1305_ietf_ABYTES);
 ^
src/salty_nif.c: In function ‘salty_aead_xchacha20poly1305_ietf_NPUBBYTES’:
src/salty_nif.c:631:1: warning: control reaches end of non-void function [-Wreturn-type]
 SALTY_CONST_INT64(aead_xchacha20poly1305_ietf_NPUBBYTES);
 ^
src/salty_nif.c: In function ‘salty_aead_xchacha20poly1305_ietf_NSECBYTES’:
src/salty_nif.c:630:1: warning: control reaches end of non-void function [-Wreturn-type]
 SALTY_CONST_INT64(aead_xchacha20poly1305_ietf_NSECBYTES);
 ^
src/salty_nif.c: In function ‘salty_aead_xchacha20poly1305_ietf_KEYBYTES’:
src/salty_nif.c:629:1: warning: control reaches end of non-void function [-Wreturn-type]
 SALTY_CONST_INT64(aead_xchacha20poly1305_ietf_KEYBYTES);
 ^
src/salty_nif.c: In function ‘salty_aead_chacha20poly1305_ietf_ABYTES’:
src/salty_nif.c:578:1: warning: control reaches end of non-void function [-Wreturn-type]
 SALTY_CONST_INT64(aead_chacha20poly1305_ietf_ABYTES);
 ^
src/salty_nif.c: In function ‘salty_aead_chacha20poly1305_ietf_NPUBBYTES’:
src/salty_nif.c:577:1: warning: control reaches end of non-void function [-Wreturn-type]
 SALTY_CONST_INT64(aead_chacha20poly1305_ietf_NPUBBYTES);
 ^
src/salty_nif.c: In function ‘salty_aead_chacha20poly1305_ietf_NSECBYTES’:
src/salty_nif.c:576:1: warning: control reaches end of non-void function [-Wreturn-type]
 SALTY_CONST_INT64(aead_chacha20poly1305_ietf_NSECBYTES);
 ^
src/salty_nif.c: In function ‘salty_aead_chacha20poly1305_ietf_KEYBYTES’:
src/salty_nif.c:575:1: warning: control reaches end of non-void function [-Wreturn-type]
 SALTY_CONST_INT64(aead_chacha20poly1305_ietf_KEYBYTES);
 ^
Makefile:37: recipe for target 'priv/salty_nif.so' failed
make: *** [priv/salty_nif.so] Error 1
 SALTY_CONST_INT64(box_curve25519xchacha20poly1305_SEEDBYTES);
 ^
src/salty_nif.c: In function ‘salty_aead_xchacha20poly1305_ietf_ABYTES’:
src/salty_nif.c:632:1: warning: control reaches end of non-void function [-Wreturn-type]
 SALTY_CONST_INT64(aead_xchacha20poly1305_ietf_ABYTES);
 ^
src/salty_nif.c: In function ‘salty_aead_xchacha20poly1305_ietf_NPUBBYTES’:
src/salty_nif.c:631:1: warning: control reaches end of non-void function [-Wreturn-type]
 SALTY_CONST_INT64(aead_xchacha20poly1305_ietf_NPUBBYTES);
 ^
src/salty_nif.c: In function ‘salty_aead_xchacha20poly1305_ietf_NSECBYTES’:
src/salty_nif.c:630:1: warning: control reaches end of non-void function [-Wreturn-type]
 SALTY_CONST_INT64(aead_xchacha20poly1305_ietf_NSECBYTES);
 ^
src/salty_nif.c: In function ‘salty_aead_xchacha20poly1305_ietf_KEYBYTES’:
src/salty_nif.c:629:1: warning: control reaches end of non-void function [-Wreturn-type]
 SALTY_CONST_INT64(aead_xchacha20poly1305_ietf_KEYBYTES);
 ^
src/salty_nif.c: In function ‘salty_aead_chacha20poly1305_ietf_ABYTES’:
src/salty_nif.c:578:1: warning: control reaches end of non-void function [-Wreturn-type]
 SALTY_CONST_INT64(aead_chacha20poly1305_ietf_ABYTES);
 ^
src/salty_nif.c: In function ‘salty_aead_chacha20poly1305_ietf_NPUBBYTES’:
src/salty_nif.c:577:1: warning: control reaches end of non-void function [-Wreturn-type]
 SALTY_CONST_INT64(aead_chacha20poly1305_ietf_NPUBBYTES);
 ^
src/salty_nif.c: In function ‘salty_aead_chacha20poly1305_ietf_NSECBYTES’:
src/salty_nif.c:576:1: warning: control reaches end of non-void function [-Wreturn-type]
 SALTY_CONST_INT64(aead_chacha20poly1305_ietf_NSECBYTES);
 ^
src/salty_nif.c: In function ‘salty_aead_chacha20poly1305_ietf_KEYBYTES’:
src/salty_nif.c:575:1: warning: control reaches end of non-void function [-Wreturn-type]
 SALTY_CONST_INT64(aead_chacha20poly1305_ietf_KEYBYTES);
 ^
Makefile:37: recipe for target 'priv/salty_nif.so' failed
make: *** [priv/salty_nif.so] Error 1

could not compile dependency :salty, "mix compile" failed. You can recompile this dependency with "mix deps.compile salty", update it with "mix deps.update salty" or clean it with "mix deps.clean salty"
** (Mix) Could not compile with "make" (exit status: 2).
You need to have gcc and make installed. If you are using
Ubuntu or any other Debian-based system, install the packages
"build-essential". Also install "erlang-dev" package if not
included in your Erlang/OTP version. If you're on Fedora, run
"dnf group install 'Development Tools'".

推荐答案

如要提问的注释所述,安装libsodium 1.0.12+可解决此问题.

As noted in the comments to question, installing libsodium 1.0.12+ addresses the issue.

这篇关于无法编译依赖关系:咸,“混合编译";失败的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆