Skip to content

Instantly share code, notes, and snippets.

@ooharak
Last active August 29, 2015 14:05
Show Gist options
  • Save ooharak/f4e8439db6c74fa47466 to your computer and use it in GitHub Desktop.
Save ooharak/f4e8439db6c74fa47466 to your computer and use it in GitHub Desktop.
Graphvizの中でSVGシェイプを使うとエラーになる件の対処(解決) ref: http://qiita.com/ooharak/items/2b43e11986b43cdd3299
$ cat k.dot
digraph {
a [image="elb.svg"]
}
$ dot -Tpdf k.dot > /dev/null
Warning: No loadimage plugin for "svg:cairo"
$ sudo apt-get librsvg2-dev
$ sudo apt-get build-dep graphviz
$ sudo apt-get install dpkg-dev
$ apt-get source graphviz
$ sudo apt-get install devscripts
$ cd graphviz-2.36.0
$ diff debian/rules{.org,}
73c73
< --without-rsvg \
---
> --with-rsvg \
$ diff debian/libgvc6.install{.org,}
7a8,9
> usr/lib/graphviz/libgvplugin_rsvg.so.*
> usr/lib/graphviz/libgvplugin_gdk.so.*
$ debchange -i
# CHANGELOGを入力すること
$ debuild -us -uc
$ cd ..
$ sudo dpkg -i *.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment