2010-12-21 12 views
6

मैं OSX 10.5.8 पर Graphviz 2.14.1 स्थापित करने के लिए
मैं यहाँ यूनिवर्सल बाइनरी से Graphviz स्थापित कोशिश कर रहा हूँ:ओएस एक्स पर Graphviz स्थापित कर रहा है 10.5.8

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. 
[email protected] Tue Dec 21 07:25:18 ~/Downloads 
$ cd pygraphviz/ 
[email protected] 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/स्थानीय/lib/

drwxrwxr-x 40 root wheel  1360 Dec 21 06:22 graphviz 

$ अजगर स्थापित setup.py --library_path/usr/स्थानीय/lib/Graphviz/

012,
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-देव या Graphviz-devel

खोजने में असफल रहा था क्या मैं इस स्थापित करने के लिए क्या करने की जरूरत है?

+0

यह और अधिक SuperUser – Velociraptors

+0

के लिए उपयुक्त द्विआधारी '/ usr/स्थानीय/bin/dot' – mb21

उत्तर

9

2.14.1 ग्राफविज़ का एक बहुत पुराना संस्करण है। 2.26 (इस लेखन पर) here के लिए आधिकारिक ओएस एक्स इंस्टॉलर पैकेज का उपयोग करके आपको बेहतर सफलता मिल सकती है। इसके बाद आपको उचित library_path और include_path का उपयोग करने के लिए pygraphiz setup.py को संपादित करने की आवश्यकता होगी। सबसे अधिक संभावना है कि आपको /usr/local/lib/graphviz और usr/local/include/graphviz संस्करणों को अनदेखा करने की आवश्यकता होगी लेकिन सुनिश्चित करने के लिए ls /usr/local का उपयोग करें।

दूसरी तरफ, इतने सारे निर्भर पुस्तकालयों और पैकेजों के साथ, यह एक तृतीय पक्ष पैकेज प्रबंधक जैसे MacPorts का उपयोग करने का एक आदर्श मामला है जो आपके लिए सभी निर्भरताओं का प्रबंधन करेगा और आपको आसानी से नए अपडेट करने की अनुमति देगा रिलीज उपलब्ध हो जाते हैं। एक बार जब आप base MacPorts files स्थापित किया है, तो आप इसे सभी के साथ स्थापित कर सकते हैं:

$ sudo port selfupdate 
# either 
$ sudo port install py26-pygraphviz # with MacPorts python2.6 
# ... or 
$ sudo port install py27-pygraphviz # with MacPorts python2.7 
2

के रूप में नेड कहा,

  1. Graphviz के लिए अपने setup.py फ़ाइल का पता लगाएं। मेरे मामले में, यह /Users/*my_username*/build/pygraphviz/setup.py
  2. पर स्थित था, अंत में, library_path और include_path के लिए मैक ओएसएक्स पथ से संबंधित लाइनों को असम्बद्ध करें। ये युक्त पंक्तियां हैं: /usr/local/lib/graphviz और usr/local/include/graphviz
+0

यह सब Neds टिप्पणी में था पर है पहले से। –

22

ऐसा लगता है कि आप "pkg-config" पैकेज याद कर रहे हैं की तरह। आप स्थापित साथ Homebrew

काढ़ा स्थापित कर सकते हैं pkg-config

+1

मेरे मामले में pkg-config स्थापित किया गया था लेकिन यह अभी भी त्रुटि दे रहा था। लिंकिंग फिर से हल हो गया। 'ब्रू अनलिंक pkg-config && brew link pkg-config' – chhantyal

+0

@chantyal यह मेरे लिए भी काम करता है। – WillJones

संबंधित मुद्दे