简体   繁体   English

由于缺少依赖项,因此无法构建RabbitMQ插件

[英]Cannot build RabbitMQ plugin because of missing dependencies

I would like to start working on my own RabbitMQ plugin, but I cannot build https://github.com/rabbitmq/rabbitmq-public-umbrella from source code on clean installation of Ubuntu 16.04. 我想开始使用自己的RabbitMQ插件,但是无法在全新安装Ubuntu 16.04时从源代码构建https://github.com/rabbitmq/rabbitmq-public-umbrella I have installed everything neccessary as described in https://www.rabbitmq.com/plugin-development.html . 我已经按照https://www.rabbitmq.com/plugin-development.html中的说明安装了所有必需的东西。 Every time I hit make co I receive following error: make[2]: Entering directory '/opt/rabbitmq/rabbitmq-public-umbrella/deps/rabbit_common' DEP lager tar: /opt/rabbitmq/rabbitmq-public-umbrella/.erlang.mk/hex/lager.tar: Cannot open: No such file or directory tar: Error is not recoverable: exiting now gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now erlang.mk:4710: recipe for target '/opt/rabbitmq/rabbitmq-public-umbrella/deps/lager' failed make[2]: *** [/opt/rabbitmq/rabbitmq-public-umbrella/deps/lager] Error 2 每次我打make co我都会收到以下错误: make[2]: Entering directory '/opt/rabbitmq/rabbitmq-public-umbrella/deps/rabbit_common' DEP lager tar: /opt/rabbitmq/rabbitmq-public-umbrella/.erlang.mk/hex/lager.tar: Cannot open: No such file or directory tar: Error is not recoverable: exiting now gzip: stdin: unexpected end of file tar: Child returned status 1 tar: Error is not recoverable: exiting now erlang.mk:4710: recipe for target '/opt/rabbitmq/rabbitmq-public-umbrella/deps/lager' failed make[2]: *** [/opt/rabbitmq/rabbitmq-public-umbrella/deps/lager] Error 2

It happens randomly for every dependency which is expected to be in /.erlang.mk/hex/ directory (lager, ranch, jsx), but this directory is empty (no tar file downloaded). 对于预期位于/.erlang.mk/hex/目录(lager,ranch,jsx)中的每个依赖项,它都是随机发生的,但是此目录为空(未下载tar文件)。 The same issue persist when I try to build some existing plugin like https://github.com/rabbitmq/rabbitmq-auth-backend-http on its own. 当我尝试自行构建一些现有插件(例如https://github.com/rabbitmq/rabbitmq-auth-backend-http)时,同样的问题仍然存在。

I am sure I was able to compile the code successfully two days ago and tar files were downloaded to /.erlang.mk/hex/ when running make . 我确定我可以在两天前成功编译代码, 并且在运行make tar文件下载到/.erlang.mk/hex/ I am new to Erlang and all the development tools related to it, so maybe I am missing something. 我是Erlang及其相关的所有开发工具的新手,所以也许我错过了一些东西。

It's possible that hex.pm is not working? hex.pm可能无法正常工作? I tried everything - restarting the machine, make distclean, I did even create a new VM with Ubuntu on other network but the issue persists. 我尝试了一切-重新启动计算机,进行distclean,甚至在其他网络上使用Ubuntu创建了一个新VM,但问题仍然存在。

它从今天开始工作,可能是某些服务器提供第三方依赖性(例如十六进制)的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM