Я новичок в Эликсире. В локальной папке пытаюсь запустить mix local.hex
, но выдает такую ошибку:
** (ArgumentError) incorrect padding
(elixir) lib/base.ex:676: Base.do_decode64/2
(mix) lib/mix/local.ex:91: Mix.Local.find_matching_versions_from_signed_csv!/2
(mix) lib/mix/tasks/local.hex.ex:30: Mix.Tasks.Local.Hex.run/1
(mix) lib/mix/cli.ex:58: Mix.CLI.run_task/2
(elixir) lib/code.ex:363: Code.require_file/2
Вот мой mix.exs:
defmodule MyPlug.Mixfile do
use Mix.Project
def project do
[
app: :my_plug,
version: "0.0.1",
elixir: "~> 1.2",
deps: deps
]
end
def application do
[applications: [:cowboy, :plug]]
end
defp deps do
[{:cowboy, "~> 1.0.0"},
{:plug, "~> 1.0"}]
end
end
ОС: Ubuntu 14.04 LTS
Версия Erlang: Erlang / OTP 18
Версия Elixir: 1.2.3
Оцените ваш ответ о том, что здесь может быть не так.
$ mix hex
)? - person whatyouhide   schedule 10.03.2016mix hex
выводит ошибку** (Mix) The task "hex" could not be found
. - person Mouli   schedule 10.03.2016wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb
,sudo apt-get update
,sudo apt-get install esl-erlang
,sudo apt-get install elixir
, как указано в документации (elixir-lang.org/install.html#unix-and-unix-like) - person Mouli   schedule 10.03.2016task "hex" could not be found
, указывает на проблему. Я бы отбросил все, что вы сделали, и начал бы заново. - person Onorio Catenacci   schedule 10.03.2016mix local.hex
? - person cdegroot   schedule 10.03.2016mix local.hex
. Спасибо всем за комментарии и указатели. - person Mouli   schedule 11.03.2016