Skip to content

Commit

Permalink
More info on installing dependencies on macos
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Barberio <[email protected]>
  • Loading branch information
insomniacslk committed Aug 29, 2024
1 parent a3c5db8 commit 94d98ef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,24 @@ pip3 install -r requirements_osx.txt
replace `pip3` with `pip` or `pip2` if you are still using python 2. note that
python 2 support will be removed in the future.

If the installation fails on `pygraphviz`, try one of the two following methods:

Method 1:
```
export CFLAGS="-I $(brew --prefix graphviz)/include"
export LDFLAGS="-L $(brew --prefix graphviz)/lib"
pip install -r requirements_osx.txt
```

Method 2:
```
pip install \
--global-option=build_ext \
--global-option="-I$(brew --prefix graphviz)/include/" \
--global-option="-L$(brew --prefix graphviz)/lib/" \
pygraphviz
```

### Installing dublintraceroute

Once the prerequisites are installed, there are two ways to install `dublintraceroute` itself. From source, or from PyPI (i.e. using `pip` or `easy_install`)
Expand Down
2 changes: 1 addition & 1 deletion requirements_osx.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pygraphviz --global-option=build_ext --global-option="-I/usr/local/include/graphviz/" --global-option="-L/usr/local/lib/graphviz"
pygraphviz --global-option=build_ext --global-option="-I/usr/local/include/graphviz/" --global-option="-L/usr/local/lib/graphviz" --global-option="-I/opt/homebrew/include/graphviz/" --global-option="-L/opt/homebrew/lib/graphviz"
tabulate
setuptools_scm>=1.15.0

0 comments on commit 94d98ef

Please sign in to comment.