hunter-packages / hunter-bot-elixir

BSD 2-Clause "Simplified" License
1 stars 3 forks source link

Start script #8

Open ruslo opened 8 years ago

ruslo commented 8 years ago

@fire Thanks for the update. Currently I have:

> mix run --no-halt
Could not find "rebar3", which is needed to build dependency :idna
I can install a local copy which is just used by Mix
Shall I install rebar3? (if running non-interactively, use: "mix local.rebar --force") [Yn] y

Script asking about installing of rebar3, it would be nice to not ask anything.

After I press y:

...
===> Compiling src/ssl_verify_hostname.erl failed
src/ssl_verify_hostname.erl:8: can't find include lib "public_key/include/public_key.hrl"
src/ssl_verify_hostname.erl:102: undefined macro 'id-ce-subjectAltName'

src/ssl_verify_hostname.erl:79: record 'AttributeTypeAndValue' undefined
src/ssl_verify_hostname.erl:81: variable 'CN' is unbound
src/ssl_verify_hostname.erl:94: variable 'ExtId' is unbound
src/ssl_verify_hostname.erl:94: record 'Extension' undefined
src/ssl_verify_hostname.erl:242: record 'OTPTBSCertificate' undefined
src/ssl_verify_hostname.erl:255: record 'OTPCertificate' undefined
src/ssl_verify_hostname.erl:257: function extract_dns_names/1 undefined

src/ssl_verify_hostname.erl:87: Warning: function extensions_list/1 is unused
src/ssl_verify_hostname.erl:93: Warning: function select_extension/2 is unused
src/ssl_verify_hostname.erl:110: Warning: function extract_dns_names_from_alt_names/2 is unused

==> hunter
** (Mix) Could not compile dependency :ssl_verify_fun, "/.../.mix/rebar3 bare compile --paths "/.../hunter-bot-elixir/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile ssl_verify_fun", update it with "mix deps.update ssl_verify_fun" or clean it with "mix deps.clean ssl_verify_fun"
fire commented 8 years ago

First one is:

if running non-interactively, use: "mix local.rebar --force"

Second one is:

sudo apt install erlang-dev (development headers)

I'm not sure what the esl one is: maybe sudo apt install erlang-esl-dev? I'm not sure.

ruslo commented 8 years ago

if running non-interactively, use: "mix local.rebar --force"

It creates some stuff and just exits. If it's ok then it doesn't make sense to test Ansible script right now since the end goal of script is to start/stop/update service automatically + check dependencies installed.