<div dir="ltr"><div dir="ltr">Thanks for the quick response.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 31, 2019 at 3:04 PM Tristan Sloughter <<a href="mailto:t@crashfast.com">t@crashfast.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u><div><div>`rest_client` is an Elixir/mix project. To use it you'll need Elixir as well.<br></div><div><br></div><div>Tristan<br></div><div><br></div><div>On Thu, Jan 31, 2019, at 16:01, Stu Bailey wrote:<br></div><blockquote type="cite" id="gmail-m_-6399958205397778588fastmail-quoted"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi all,<br></div><div><br></div><div>I'm trying to efficiently get up and running with Erlang, and I've immediately hit a roadblock and did not see any clear indication on causes or suggestions from a quick Google search so I thought I'd post here.<br></div><div><br></div><div>I can make a new app with the Erlang Docker container no problem:<br></div><div><br></div><div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">bash-3.2$ docker run -it -v /Users/me/scratch:/usr/local/src erlang bash</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">root@afdf4ee1bea2:/# </span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">cd /usr/local/src</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">root@afdf4ee1bea2:/usr/local/src#</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">root@afdf4ee1bea2:/usr/local/src# rebar3 new app myapp</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">rebar3 new app myapp</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Writing myapp/src/myapp_app.erl</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Writing myapp/src/myapp_sup.erl</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Writing myapp/src/myapp.app.src</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Writing myapp/rebar.config</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Writing myapp/.gitignore</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Writing myapp/LICENSE</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Writing myapp/README.md</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">root@afdf4ee1bea2:/usr/local/src# rebar3 shell</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">rebar3 shell</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Verifying dependencies...</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">Erlang/OTP 21 [erts-10.2.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font"></span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">Eshell V10.2.3  (abort with ^G)</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">1> application:start(myapp).</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">application:start(myapp).</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">2>   C-c C-c</span><br></div><div><br></div><div><br></div><div>Then I follow this for using packages <a href="https://medium.com/erlang-central/building-your-first-erlang-app-using-rebar3-25f40b109aad" target="_blank">https://medium.com/erlang-central/building-your-first-erlang-app-using-rebar3-25f40b109aad</a><br></div><div><br></div><div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">root@afdf4ee1bea2:/usr/local/src/myapp# cat rebar.config</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">cat rebar.config</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">{erl_opts, [debug_info]}.</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">{deps, []}.</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font"></span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">{shell, [</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">  % {config, "config/sys.config"},</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">    {apps, [myapp]}</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">]}.</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">{plugins, [rebar3_hex]}.</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">root@afdf4ee1bea2:/usr/local/src/myapp#</span><br></div></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">root@afdf4ee1bea2:/usr/local/src/myapp# rebar3 update</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">rebar3 update</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Fetching rebar3_hex ({pkg,<<"rebar3_hex">>,<<"6.4.0">>})</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.4.0.tar</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Compiling rebar3_hex</span><br></div><div><br></div><div>So far so good then I search for a specific package "restclient"<br></div><div><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">root@afdf4ee1bea2:/usr/local/src/myapp# rebar3 hex search restclient</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">rebar3 hex search restclient</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">Results:</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font"></span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">rest_client: RestClient is a generic REST client library. It generates structs and functions</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">for use with APIs.</span><br></div><div><br></div><div>Now I add <span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">rest_client</span> as a dep and attempt <span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">rebar3 compile</span> and this where the problem occurs<br></div><div><br></div><div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">root@afdf4ee1bea2:/usr/local/src/myapp# cat rebar.config</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">cat rebar.config</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">{erl_opts, [debug_info]}.</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">{deps, [rest_client]}.</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font"></span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">{shell, [</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">  % {config, "config/sys.config"},</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">    {apps, [myapp]}</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">]}.</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">{plugins, [rebar3_hex]}.</span><br></div></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">root@afdf4ee1bea2:/usr/local/src/myapp# rebar3 compile</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">rebar3 compile</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Verifying dependencies...</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Fetching rest_client ({pkg,<<"rest_client">>,<<"0.0.1">>})</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/rest_client-0.0.1.tar</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Fetching httpotion ({pkg,<<"httpotion">>,<<"2.1.0">>})</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/httpotion-2.1.0.tar</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Fetching inflex ({pkg,<<"inflex">>,<<"1.4.1">>})</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/inflex-1.4.1.tar</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Fetching mock ({pkg,<<"mock">>,<<"0.1.3">>})</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/mock-0.1.3.tar</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Fetching poison ({pkg,<<"poison">>,<<"1.5.2">>})</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/poison-1.5.2.tar</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Fetching meck ({pkg,<<"meck">>,<<"0.8.13">>})</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Downloaded package, caching at /root/.cache/rebar3/hex/hexpm/packages/meck-0.8.13.tar</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Compiling httpotion</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">===> Error building application httpotion:</span><br></div><div><span style="font-family:monospace,monospace" class="gmail-m_-6399958205397778588font">     No project builder is configured for type mix</span><br></div><div><br></div><div>Thoughts? Any help would be greatly appreciated.<br></div></div><div><br></div><div>Thanks!<br></div><div>Stu<br></div></div></div></div></div><div>_______________________________________________<br></div><div>erlang-questions mailing list<br></div><div><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br></div><div><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br></div><div><br></div></blockquote><div><br></div></div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div></div>