Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scapy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
scapy
Commits
bef49ced
Commit
bef49ced
authored
Jul 3, 2016
by
Pierre Lalet
Committed by
GitHub
Jul 3, 2016
Browse files
Options
Downloads
Plain Diff
Merge pull request #199 from guedou/doc_osx
OS X installation methods updated
parents
49d39bb1
fa6c0a95
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/scapy/installation.rst
+16
-40
16 additions, 40 deletions
doc/scapy/installation.rst
with
16 additions
and
40 deletions
doc/scapy/installation.rst
+
16
−
40
View file @
bef49ced
...
@@ -238,60 +238,36 @@ Some optional packages:
...
@@ -238,60 +238,36 @@ Some optional packages:
Mac OS X
Mac OS X
--------
--------
Here's how to install Scapy on Mac OS 10.4 (Tiger) or 10.5 (Leopard).
On Mac OS X, Scapy does not work natively. You need to install Python bindings
to use libdnet and libpcap. You can choose to install using either Homebrew or
MacPorts. They both work fine, yet Homebrew is used to run unit tests with
`Travis CI <https://travis-ci.org>`_.
Set up a development environment
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1. Install X11.
Install using Homebrew
On the Mac OS X DVD, it is located in the "Optional Installs.mpkg" package.
2. Install SDK.
On the Mac OS X DVD, it is located in the "Xcode Tools/Packages" directory.
3. Install Python 2.5 from Python.org.
Using Apple's Python version will lead to some problems.
Get it from http://www.python.org/ftp/python/2.5.2/python-2.5.2-macosx.dmg
Install using MacPorts
^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^
3. Install MacPorts
1. Update Homebrew::
Download the dmg from macports.org and install it.
4. Update MacPorts::
$ sudo port -d selfupdate
$ sudo brew update
5. Install Scapy::
$ sudo port install scapy
2. Install Python bindings::
You can then update to the latest version as shown in the generic installation above.
$ sudo brew install --with-python libdnet
$ sudo brew install https://raw.githubusercontent.com/secdev/scapy/master/.travis/pylibpcap.r
Install from original sources
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Install libdnet and its Python wrapper::
Install using MacPorts
^^^^^^^^^^^^^^^^^^^^^^
$ wget http://libdnet.googlecode.com/files/libdnet-1.12.tgz
1. Update MacPorts::
$ tar xfz libdnet-1.12.tgz
$ ./configure
$ make
$ sudo make install
$ cd python
$ python2.5 setup.py install
Install libpcap and its Python wrapper::
$ sudo port -d selfupdate
$ wget http://dfn.dl.sourceforge.net/sourceforge/pylibpcap/pylibpcap-0.6.2.tar.gz
2. Install Python bindings::
$ tar xfz pylibpcap-0.6.2.tar.gz
$ cd pylibpcap-0.6.2
$ python2.5 setup.py install
Optionally: Install readline::
$ sudo port install py-libdnet py-pylibpcap
$ python `python -c "import pimp; print pimp.__file__"` -i readline
OpenBSD
OpenBSD
-------
-------
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment