在 Os X 10.5.8 上安装 Graphviz
我正在尝试在 osX 10.5.8 上安装 Graphviz 2.14.1
我在这里从通用二进制文件安装了 Graphviz:
http://www.ryandesign.com/graphviz/
$ svn co https://networkx.lanl.gov/svn/pygraphviz/trunk pygraphviz
- Fingerprint: 43:8e:fa:75:00:60:67:07:fd:04:3c:e7:bf:25:86:fd:66:b3:f6:cb
(R)eject, accept (t)emporarily or accept (p)ermanently? t
A pygraphviz/pygraphviz
A pygraphviz/pygraphviz/graphviz.i
A pygraphviz/pygraphviz/graphviz.py
A pygraphviz/pygraphviz/tests
A pygraphviz/pygraphviz/tests/graph.txt
A pygraphviz/pygraphviz/tests/attributes.txt
A pygraphviz/pygraphviz/tests/__init__.py
A pygraphviz/pygraphviz/tests/test.py
A pygraphviz/pygraphviz/tests/layout_draw.txt
A pygraphviz/pygraphviz/graphviz_wrap.c
A pygraphviz/pygraphviz/__init__.py
A pygraphviz/pygraphviz/release.py
A pygraphviz/pygraphviz/agraph.py
A pygraphviz/INSTALL.txt
A pygraphviz/doc
A pygraphviz/doc/source
A pygraphviz/doc/source/contents.rst
A pygraphviz/doc/source/examples.rst
A pygraphviz/doc/source/static
A pygraphviz/doc/source/static/contents.png
A pygraphviz/doc/source/static/navigation.png
A pygraphviz/doc/source/static/sphinxdoc.css
A pygraphviz/doc/source/static/empty.txt
A pygraphviz/doc/source/tutorial.rst
A pygraphviz/doc/source/conf.py
A pygraphviz/doc/source/install.rst
A pygraphviz/doc/source/download.rst
A pygraphviz/doc/source/reference
A pygraphviz/doc/source/reference/news.rst
A pygraphviz/doc/source/reference/credits.rst
A pygraphviz/doc/source/reference/related.rst
A pygraphviz/doc/source/reference/api_notes.rst
A pygraphviz/doc/source/reference/history.rst
A pygraphviz/doc/source/reference/agraph.rst
A pygraphviz/doc/source/reference/legal.rst
A pygraphviz/doc/source/reference/faq.rst
A pygraphviz/doc/source/reference/index.rst
A pygraphviz/doc/source/templates
A pygraphviz/doc/source/templates/layout.html
A pygraphviz/doc/source/templates/indexsidebar.html
A pygraphviz/doc/source/templates/index.html
A pygraphviz/doc/sphinxext
A pygraphviz/doc/sphinxext/only_directives.py
A pygraphviz/doc/Makefile
A pygraphviz/setup.py
A pygraphviz/setup_egg.py
A pygraphviz/setup_extra.py
A pygraphviz/MANIFEST.in
A pygraphviz/README.txt
A pygraphviz/examples
A pygraphviz/examples/miles.py
A pygraphviz/examples/simple.py
A pygraphviz/examples/star.py
A pygraphviz/examples/django_simple.py
A pygraphviz/examples/subgraph.py
A pygraphviz/examples/attributes.py
A pygraphviz/examples/miles_dat.txt.gz
A pygraphviz/setup.cfg
U pygraphviz
Checked out revision 1947.
Bryan@bryan-wheelocks-macbook-pro-15 Tue Dec 21 07:25:18 ~/Downloads
$ cd pygraphviz/
Bryan@bryan-wheelocks-macbook-pro-15 Tue Dec 21 07:25:22 ~/Downloads/pygraphviz
$ python setup.py install
Trying pkg-config
/bin/sh: pkg-config: command not found
/bin/sh: pkg-config: command not found
Trying dotneato-config
Failed to find dotneato-config
Your graphviz installation could not be found.
Either the graphviz package is missing on incomplete
(binary packages graphviz-dev or graphviz-devel missing?).
If you think your installation is correct you will need to manually
change the include_path and library_path variables in setup.py to
point to the correct locations of your graphviz installation.
The current setting of library_path and include_path is:
library_path=None
include_path=None
Traceback (most recent call last):
File "setup.py", line 78, in <module>
raise OSError,"Error locating graphviz."
OSError: Error locating graphviz.
这是 Graphviz 的路径:
$ ls -la /usr/local/lib/
drwxrwxr-x 40 root wheel 1360 Dec 21 06:22 graphviz
$ python setup.py install --library_path /usr/local/lib/graphviz/
Trying pkg-config
/bin/sh: pkg-config: command not found
/bin/sh: pkg-config: command not found
Trying dotneato-config
Failed to find dotneato-config
Your graphviz installation could not be found.
Either the graphviz package is missing on incomplete
(binary packages graphviz-dev or graphviz-devel missing?).
If you think your installation is correct you will need to manually
change the include_path and library_path variables in setup.py to
point to the correct locations of your graphviz installation.
The current setting of library_path and include_path is:
library_path=None
include_path=None
Traceback (most recent call last):
File "setup.py", line 78, in <module>
raise OSError,"Error locating graphviz."
OSError: Error locating graphviz.
我没有成功找到二进制包 graphviz-dev 或 graphviz-devel
我需要做什么才能安装它?
I'm trying to install Graphviz 2.14.1 on osX 10.5.8
I installed Graphviz from the Universal Binary here:
http://www.ryandesign.com/graphviz/
$ svn co https://networkx.lanl.gov/svn/pygraphviz/trunk pygraphviz
- Fingerprint: 43:8e:fa:75:00:60:67:07:fd:04:3c:e7:bf:25:86:fd:66:b3:f6:cb
(R)eject, accept (t)emporarily or accept (p)ermanently? t
A pygraphviz/pygraphviz
A pygraphviz/pygraphviz/graphviz.i
A pygraphviz/pygraphviz/graphviz.py
A pygraphviz/pygraphviz/tests
A pygraphviz/pygraphviz/tests/graph.txt
A pygraphviz/pygraphviz/tests/attributes.txt
A pygraphviz/pygraphviz/tests/__init__.py
A pygraphviz/pygraphviz/tests/test.py
A pygraphviz/pygraphviz/tests/layout_draw.txt
A pygraphviz/pygraphviz/graphviz_wrap.c
A pygraphviz/pygraphviz/__init__.py
A pygraphviz/pygraphviz/release.py
A pygraphviz/pygraphviz/agraph.py
A pygraphviz/INSTALL.txt
A pygraphviz/doc
A pygraphviz/doc/source
A pygraphviz/doc/source/contents.rst
A pygraphviz/doc/source/examples.rst
A pygraphviz/doc/source/static
A pygraphviz/doc/source/static/contents.png
A pygraphviz/doc/source/static/navigation.png
A pygraphviz/doc/source/static/sphinxdoc.css
A pygraphviz/doc/source/static/empty.txt
A pygraphviz/doc/source/tutorial.rst
A pygraphviz/doc/source/conf.py
A pygraphviz/doc/source/install.rst
A pygraphviz/doc/source/download.rst
A pygraphviz/doc/source/reference
A pygraphviz/doc/source/reference/news.rst
A pygraphviz/doc/source/reference/credits.rst
A pygraphviz/doc/source/reference/related.rst
A pygraphviz/doc/source/reference/api_notes.rst
A pygraphviz/doc/source/reference/history.rst
A pygraphviz/doc/source/reference/agraph.rst
A pygraphviz/doc/source/reference/legal.rst
A pygraphviz/doc/source/reference/faq.rst
A pygraphviz/doc/source/reference/index.rst
A pygraphviz/doc/source/templates
A pygraphviz/doc/source/templates/layout.html
A pygraphviz/doc/source/templates/indexsidebar.html
A pygraphviz/doc/source/templates/index.html
A pygraphviz/doc/sphinxext
A pygraphviz/doc/sphinxext/only_directives.py
A pygraphviz/doc/Makefile
A pygraphviz/setup.py
A pygraphviz/setup_egg.py
A pygraphviz/setup_extra.py
A pygraphviz/MANIFEST.in
A pygraphviz/README.txt
A pygraphviz/examples
A pygraphviz/examples/miles.py
A pygraphviz/examples/simple.py
A pygraphviz/examples/star.py
A pygraphviz/examples/django_simple.py
A pygraphviz/examples/subgraph.py
A pygraphviz/examples/attributes.py
A pygraphviz/examples/miles_dat.txt.gz
A pygraphviz/setup.cfg
U pygraphviz
Checked out revision 1947.
Bryan@bryan-wheelocks-macbook-pro-15 Tue Dec 21 07:25:18 ~/Downloads
$ cd pygraphviz/
Bryan@bryan-wheelocks-macbook-pro-15 Tue Dec 21 07:25:22 ~/Downloads/pygraphviz
$ python setup.py install
Trying pkg-config
/bin/sh: pkg-config: command not found
/bin/sh: pkg-config: command not found
Trying dotneato-config
Failed to find dotneato-config
Your graphviz installation could not be found.
Either the graphviz package is missing on incomplete
(binary packages graphviz-dev or graphviz-devel missing?).
If you think your installation is correct you will need to manually
change the include_path and library_path variables in setup.py to
point to the correct locations of your graphviz installation.
The current setting of library_path and include_path is:
library_path=None
include_path=None
Traceback (most recent call last):
File "setup.py", line 78, in <module>
raise OSError,"Error locating graphviz."
OSError: Error locating graphviz.
Here is the path to Graphviz:
$ ls -la /usr/local/lib/
drwxrwxr-x 40 root wheel 1360 Dec 21 06:22 graphviz
$ python setup.py install --library_path /usr/local/lib/graphviz/
Trying pkg-config
/bin/sh: pkg-config: command not found
/bin/sh: pkg-config: command not found
Trying dotneato-config
Failed to find dotneato-config
Your graphviz installation could not be found.
Either the graphviz package is missing on incomplete
(binary packages graphviz-dev or graphviz-devel missing?).
If you think your installation is correct you will need to manually
change the include_path and library_path variables in setup.py to
point to the correct locations of your graphviz installation.
The current setting of library_path and include_path is:
library_path=None
include_path=None
Traceback (most recent call last):
File "setup.py", line 78, in <module>
raise OSError,"Error locating graphviz."
OSError: Error locating graphviz.
I was unsuccessful in finding the binary packages graphviz-dev or graphviz-devel
What do I need to do to get this installed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您似乎缺少“pkg-config”包。您可以使用 Homebrew 安装它
It seems like you are missing the "pkg-config" package. You can install it with Homebrew
2.14.1 是 graphviz 的一个非常旧的版本。使用 此处 的 2.26 官方 OS X 安装程序包(在撰写本文时)可能会取得更好的成功。然后,您可能需要编辑 pygraphiz
setup.py
以使用正确的library_path
和include_path
。您很可能需要取消注释/usr/local/lib/graphviz
和usr/local/include/graphviz
版本,但使用ls /usr/local< /code> 来确定一下。
另一方面,由于涉及如此多的依赖库和包,这是使用像 MacPorts 这样的第 3 方包管理器的完美案例,它将为您管理所有依赖项,并让您轻松地当有新版本可用时进行更新。安装基本 MacPorts 文件后,您可以使用以下命令安装全部内容:
2.14.1 is a very old version of graphviz. You may have better success using the official OS X installer package for 2.26 (at this writing) here. Then you will likely need to edit the pygraphiz
setup.py
to use the properlibrary_path
andinclude_path
. Most likely you will need to uncomment the/usr/local/lib/graphviz
andusr/local/include/graphviz
versions but usels /usr/local
to find out for sure.On the other hand, with so many dependent libraries and packages involved, this is a perfect case for using a 3rd-party package manager like
MacPorts
which will manage all of the dependencies for you and allow you to easily update as new releases become available. Once you have installed the base MacPorts files, you can install it all with:正如 Ned 所说,
/Users/*my_username*/build/pygraphviz/setup.py
library_path
的 Mac OSX 路径相对应的行并include_path
。这些行包含:/usr/local/lib/graphviz
和usr/local/include/graphviz
As Ned said,
/Users/*my_username*/build/pygraphviz/setup.py
library_path
andinclude_path
. These are the lines containing:/usr/local/lib/graphviz
andusr/local/include/graphviz