<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><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="fastmail-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="font">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="font">root@afdf4ee1bea2:/# </span><br></div><div><span style="font-family:monospace, monospace" class="font">cd /usr/local/src</span><br></div><div><span style="font-family:monospace, monospace" class="font">root@afdf4ee1bea2:/usr/local/src#</span><br></div><div><span style="font-family:monospace, monospace" class="font">root@afdf4ee1bea2:/usr/local/src# rebar3 new app myapp</span><br></div><div><span style="font-family:monospace, monospace" class="font">rebar3 new app myapp</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> Writing myapp/src/myapp_app.erl</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> Writing myapp/src/myapp_sup.erl</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> Writing myapp/src/myapp.app.src</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> Writing myapp/rebar.config</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> Writing myapp/.gitignore</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> Writing myapp/LICENSE</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> Writing myapp/README.md</span><br></div><div><span style="font-family:monospace, monospace" class="font">root@afdf4ee1bea2:/usr/local/src# rebar3 shell</span><br></div><div><span style="font-family:monospace, monospace" class="font">rebar3 shell</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> Verifying dependencies...</span><br></div><div><span style="font-family:monospace, monospace" class="font">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="font"></span><br></div><div><span style="font-family:monospace, monospace" class="font">Eshell V10.2.3  (abort with ^G)</span><br></div><div><span style="font-family:monospace, monospace" class="font">1> application:start(myapp).</span><br></div><div><span style="font-family:monospace, monospace" class="font">application:start(myapp).</span><br></div><div><span style="font-family:monospace, monospace" class="font">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">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="font">root@afdf4ee1bea2:/usr/local/src/myapp# cat rebar.config</span><br></div><div><span style="font-family:monospace, monospace" class="font">cat rebar.config</span><br></div><div><span style="font-family:monospace, monospace" class="font">{erl_opts, [debug_info]}.</span><br></div><div><span style="font-family:monospace, monospace" class="font">{deps, []}.</span><br></div><div><span style="font-family:monospace, monospace" class="font"></span><br></div><div><span style="font-family:monospace, monospace" class="font">{shell, [</span><br></div><div><span style="font-family:monospace, monospace" class="font">  % {config, "config/sys.config"},</span><br></div><div><span style="font-family:monospace, monospace" class="font">    {apps, [myapp]}</span><br></div><div><span style="font-family:monospace, monospace" class="font">]}.</span><br></div><div><span style="font-family:monospace, monospace" class="font">{plugins, [rebar3_hex]}.</span><br></div><div><span style="font-family:monospace, monospace" class="font">root@afdf4ee1bea2:/usr/local/src/myapp#</span><br></div></div><div><span style="font-family:monospace, monospace" class="font">root@afdf4ee1bea2:/usr/local/src/myapp# rebar3 update</span><br></div><div><span style="font-family:monospace, monospace" class="font">rebar3 update</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> Fetching rebar3_hex ({pkg,<<"rebar3_hex">>,<<"6.4.0">>})</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> 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="font">===> 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="font">root@afdf4ee1bea2:/usr/local/src/myapp# rebar3 hex search restclient</span><br></div><div><span style="font-family:monospace, monospace" class="font">rebar3 hex search restclient</span><br></div><div><span style="font-family:monospace, monospace" class="font">Results:</span><br></div><div><span style="font-family:monospace, monospace" class="font"></span><br></div><div><span style="font-family:monospace, monospace" class="font">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="font">for use with APIs.</span><br></div><div><br></div><div>Now I add <span style="font-family:monospace, monospace" class="font">rest_client</span> as a dep and attempt <span style="font-family:monospace, monospace" class="font">rebar3 compile</span> and this where the problem occurs<br></div><div><br></div><div><div><span style="font-family:monospace, monospace" class="font">root@afdf4ee1bea2:/usr/local/src/myapp# cat rebar.config</span><br></div><div><span style="font-family:monospace, monospace" class="font">cat rebar.config</span><br></div><div><span style="font-family:monospace, monospace" class="font">{erl_opts, [debug_info]}.</span><br></div><div><span style="font-family:monospace, monospace" class="font">{deps, [rest_client]}.</span><br></div><div><span style="font-family:monospace, monospace" class="font"></span><br></div><div><span style="font-family:monospace, monospace" class="font">{shell, [</span><br></div><div><span style="font-family:monospace, monospace" class="font">  % {config, "config/sys.config"},</span><br></div><div><span style="font-family:monospace, monospace" class="font">    {apps, [myapp]}</span><br></div><div><span style="font-family:monospace, monospace" class="font">]}.</span><br></div><div><span style="font-family:monospace, monospace" class="font">{plugins, [rebar3_hex]}.</span><br></div></div><div><span style="font-family:monospace, monospace" class="font">root@afdf4ee1bea2:/usr/local/src/myapp# rebar3 compile</span><br></div><div><span style="font-family:monospace, monospace" class="font">rebar3 compile</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> Verifying dependencies...</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> Fetching rest_client ({pkg,<<"rest_client">>,<<"0.0.1">>})</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> 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="font">===> Fetching httpotion ({pkg,<<"httpotion">>,<<"2.1.0">>})</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> 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="font">===> Fetching inflex ({pkg,<<"inflex">>,<<"1.4.1">>})</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> 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="font">===> Fetching mock ({pkg,<<"mock">>,<<"0.1.3">>})</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> 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="font">===> Fetching poison ({pkg,<<"poison">>,<<"1.5.2">>})</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> 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="font">===> Fetching meck ({pkg,<<"meck">>,<<"0.8.13">>})</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> 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="font">===> Compiling httpotion</span><br></div><div><span style="font-family:monospace, monospace" class="font">===> Error building application httpotion:</span><br></div><div><span style="font-family:monospace, monospace" class="font">     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>erlang-questions@erlang.org<br></div><div>http://erlang.org/mailman/listinfo/erlang-questions<br></div><div><br></div></blockquote><div><br></div></body></html>