希望复制https://github.com/heroku/heroku-buildpack-yara,但要使用最新版本的 YARA ( https://github.com/VirusTotal/yara/releases )。如何编译它以在测功机内部使用,就像为 heroku-buildpack-yara 所做的那样?我尝试heroku run bash
运行此处显示的各个命令https://yara.readthedocs.io/en/stable/gettingstarted.html#compiling-yara但它抱怨缺少构建工具并且apt get
在环境中不起作用。
~/yara-4.1.1 $ apt install automake
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package automake is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
W: Not using locking for read only lock file /var/lib/dpkg/lock-frontend
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Package 'automake' has no installation candidate
heroku 指令(到目前为止我已经能够找到)有点不透明。
谢谢!