如何解决“无法编译依赖项:bcrypt_elixir”; Windows上的错误? [英] How to fix "could not compile dependency :bcrypt_elixir" error on Windows?

查看:107
本文介绍了如何解决“无法编译依赖项:bcrypt_elixir”; Windows上的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows上,正在尝试安装bcrypt_elixir模块。

I'm on Windows and I am trying to install the bcrypt_elixir module.

我遇到以下错误:

$ mix phx.server
==> bcrypt_elixir
could not compile dependency :bcrypt_elixir, "mix compile" failed. You can recompile this dependency with "mix deps.compile bcrypt_elixir", update it with "mix deps.update bcrypt_elixir" or clean it with "mix deps.clean bcrypt_elixir"
** (Mix) "nmake" not found in the path. If you have set the MAKE environment variable,
please make sure it is correct.

以下是错误的终端屏幕截图:

Here is a terminal screenshot of the error:

这是我的 deps 函数,来自 mix.exs

defp deps do
    [
      {:phoenix, "~> 1.3.0"},
      {:phoenix_pubsub, "~> 1.0"},
      {:phoenix_ecto, "~> 3.2"},
      {:postgrex, ">= 0.0.0"},
      {:phoenix_html, "~> 2.10"},
      {:phoenix_live_reload, "~> 1.0", only: :dev},
      {:gettext, "~> 0.11"},
      {:cowboy, "~> 1.0"},
      {:comeonin, "~> 4.0"},
      {:elixir_make, "~> 0.4.1"},
      {:bcrypt_elixir, "~> 1.0"}
    ]
  end


推荐答案

在酒厂设置长生不老药项目时,我遇到了同样的问题。

I faced same problem during distillery setup with my elixir project.

安装打包解决问题,如下所示。

Installing package resolve issue as shown below.

我发现bcrypt_elixir需要从Elixir论坛安装make和build-essential。

I found bcrypt_elixir need to install make and build-essential from Elixir Forum.

平台:-ubuntu

$ sudo apt install make

$ sudo apt install make

$ sudo apt-get install build-essential

$ sudo apt-get install build-essential

这篇关于如何解决“无法编译依赖项:bcrypt_elixir”; Windows上的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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