Building graphviz from source on Ubuntu (to add gts triangulation library)
Created by: josephrocca
When installing on ubuntu (16.04.2) with sudo apt install graphviz
, I get the following error when trying to use sfdp
:
Error: remove_overlap: Graphviz not built with triangulation library
After some searching I found out that it's because graphviz was built with --without-gts
(launchpad bug report). So I set about trying to build it myself (I'm new to this).
I followed the following procedure (from this SO answer):
- run
sudo apt install libgts-dev
- run
sudo pkg-config --libs gts
- run
sudo pkg-config --cflags gts
- Download
graphviz-2.40.1.tar.gz
from here - Extract and run
sudo ./configure --with-gts --prefix ~
in the folder - Run
sudo make
in the folder - Run
sudo make install
in the folder
After doing that I can successfully use some commands (dot, fdp), but not others (sfdp, neato). I get /usr/bin/sfdp: No such file or directory
when trying to use sfdp
, for example. Can anyone see anything wrong with my procedure? Thanks!