Last active
March 6, 2017 08:11
-
-
Save benhagen/5257516 to your computer and use it in GitHub Desktop.
Install Scapy on OSX through Homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class LibdnetPython <Formula | |
depends_on 'libdnet' | |
url 'http://libdnet.googlecode.com/files/libdnet-1.12.tgz' | |
homepage 'http://code.google.com/p/libdnet/' | |
sha1 '71302be302e84fc19b559e811951b5d600d976f8' | |
def install | |
ENV["CFLAGS"] = "-O3 -w -pipe" | |
system "./configure", "--disable-debug", "--disable-dependency-tracking", | |
"--prefix=#{prefix}", | |
"--mandir=#{man}" | |
system "make" | |
system "cd python && /usr/local/bin/python setup.py install" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Pylibpcap <Formula | |
url 'http://downloads.sourceforge.net/project/pylibpcap/pylibpcap/0.6.4/pylibpcap-0.6.4.tar.gz' | |
homepage 'http://pylibpcap.sourceforge.net/' | |
sha1 '30b5d2e9dc8dcf6df067a216d9ecae109ff34f86' | |
def install | |
system "/usr/local/bin/python setup.py install" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Scapy <Formula | |
depends_on 'libdnet_python' | |
depends_on 'pylibpcap' | |
url 'http://www.secdev.org/projects/scapy/files/scapy-2.1.0.tar.gz' | |
homepage 'http://www.secdev.org/projects/scapy/' | |
sha1 'e507bc0f2a32d209f321580c9338d2ceb72ab93a' | |
def install | |
system "/usr/local/bin/python setup.py install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had the same errors as xoration and vivekagr, but that was before I looked at the output of
brew install scapy
, which at the end gave me:Running those two commands resolved the issue for me. Make sure you account for your own home directory and system Python site-packages directory.