rebar3 install plugins failed


rebar3 install plugins failed



Env: rebar 3.6.0 on Erlang/OTP 21 Erts 10.0 Ubuntu 16.04
When I try to install the rebar3 pulgins (such as rebar3_hex), it reports:


rebar 3.6.0 on Erlang/OTP 21 Erts 10.0 Ubuntu 16.04



===> Package <<"rebar3_hex">> not found. Fetching registry updates and trying again...
===> Updating package registry...
===> Plugin rebar3_hex not available. It will not be used.


===> Package <<"rebar3_hex">> not found. Fetching registry updates and trying again...
===> Updating package registry...
===> Plugin rebar3_hex not available. It will not be used.



There is only one line in my ~/.config/rebar3/rebar.config:
{plugins, [rebar3_hex]}.
as recommended in https://www.rebar3.org/docs/using-available-plugins#hex-package-management and https://github.com/tsloughter/rebar3_hex.


~/.config/rebar3/rebar.config


{plugins, [rebar3_hex]}.



I can't get more useful information from google, rebar3 doc and existed question here.



So, I open a new question to ask Why and How to resolve it.



ps: I use proxychains for rebar3, it reports |DNS-response| repo.hex.pm is 151.101.54.2
inet_gethost[10708]: WARNING:Malformed reply (header) from worker process 10709.


|DNS-response| repo.hex.pm is 151.101.54.2
inet_gethost[10708]: WARNING:Malformed reply (header) from worker process 10709.





Have you tried to install rebar 3.6.1 ? seems like this issue was fixed in the latest version
– Eugen Dubrovin
Jul 2 at 10:59





@Eugen Dubrovin, I have tested on rebar3.6.1, nothing different. It seems like cause by proxy releated issue ?
– minghu6
Jul 3 at 0:44






In my case, it's fixed when set proxy environmental variable instead of use proxychains.
– minghu6
Jul 4 at 3:00




1 Answer
1



In my case, it's fixed when set proxy environmental variable(http_proxy) instead of use proxychains.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

api-platform.com Unable to generate an IRI for the item of type

How to set up datasource with Spring for HikariCP?

Display dokan vendor name on Woocommerce single product pages