当我尝试构建rebar3时出现问题,但它无法从Amazon S3获取其依赖项。调试问题我发现erlang运行时无法连接到任何HTTPS站点,尽管curl或wget工作正常。当我设置httpc:set_options([{verbose,trace}])
时,我得到以下输出:
{failed_connect,
[{to_address,{"s3.amazonaws.com",443}},
{inet,
[inet],
{eoptions,
{undef,
[{ssl,connect,
["s3.amazonaws.com",443,
[binary,
{active,false},
{ssl_imp,new},
inet],
20000],
[]},
{http_transport,connect,4,
[{file,"http_transport.erl"},{line,135}]},
{httpc_handler,connect,4,
[{file,"httpc_handler.erl"},{line,891}]},
{httpc_handler,
connect_and_send_first_request,3,
[{file,"httpc_handler.erl"},{line,905}]},
{httpc_handler,init,1,
[{file,"httpc_handler.erl"},{line,242}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,239}]}]}}}]}
我在哪里可以找出问题所在?
答案 0 :(得分:2)
您缺少ssl Erlang应用程序。一些Linux发行版将Erlang分成几个子包。您应确保在系统上安装了软件包 include PgSearch
pg_search_scope :search, associated_against: {
current_version: %i(title content)
}
。