我有對project-honeypot
寶石的依賴這反過來又根據我Gemfile.lock
具有以下依存關係一個Rails應用程序:比Heroku buildpack更簡單的安裝本地依賴的方式?
net-dns2
packetfu
network_interface
pcarub (~> 0.12)
當我推到我的Heroku應用程序也不會安裝pcarub
。 Other sources讓我得出結論,我失蹤libpcap
和libpcap-devel
。我希望有人會糾正我,如果我在這裏錯了。
不幸的是,據我所知,除了複雜的herokubuildpacks之外,沒有辦法運行任意的apt-get
命令。有沒有更簡單的解決方案?
的Heroku/pcarub安裝錯誤:
Building native extensions. This could take a while...
ERROR: Error installing pcaprub:
ERROR: Failed to build gem native extension.
/app/vendor/ruby-2.0.0/bin/ruby extconf.rb
[*] Running checks for pcaprub_c code...
platform is x86_64-linux
checking for pcap_open_live() in -lpcap... no
checking for pcap_setnonblock() in -lpcap... no
creating Makefile
make "DESTDIR="
compiling pcaprub.c
pcaprub.c:8:18: fatal error: pcap.h: No such file or directory
#include <pcap.h>
^
compilation terminated.
make: *** [pcaprub.o] Error 1
Gem files will remain installed in /app/vendor/ruby-2.0.0/lib/ruby/gems/2.0.0/gems/pcaprub-0.12.0 for inspection.
Results logged to /app/vendor/ruby-2.0.0/lib/ruby/gems/2.0.0/gems/pcaprub-0.12.0/ext/pcaprub_c/gem_make.out
您可以使用docker進行部署。但這不一定簡單。 https://devcenter.heroku.com/articles/docker –