Cannot install py2cairo on mac osx

I am trying to install py2cairo on a frame assembly (Mac OSX Lion) on python 2.7.3 using brew. I still have not been successful.

At first I tried a simple

brew install py2cairo

This seems to work only with python unstructured builds. When I do this on my frameworks, create python errors as soon as I import cairo with an incompatible binary error.

Secondly, I tried to build it myself, grabbing it from github and releasing:

python waf configure

This fails:

Checking for library python2.7           : not found 
Checking for library python2.7           : not found 
Checking for library python2.7           : not found 
Checking for library python27            : not found 
Checking for program python2.7-config    : /usr/local/Cellar/python/2.7.3/bin/python2.7-   config 
Checking for header Python.h             : Could not find the python development headers 
The configuration failed
(complete log in /Users/tobin/tmp/py2cairo/build_directory/config.log)

I tried everything: How to install PyCairo 1.10 on Mac OSX with python by default , but none of this helped.

, python2.7, . ? brew, , --enable-share, . , , .

. .

UPDATE:

, py2cairo "-march = native" gcc. gcc (4.2.1) Mac OSX . gcc, python. py2cairo waf - "-march = core2" .

, . , cairo , brew ( ). :

>>> import cairo
Fatal Python error: Interpreter not initialized (version mismatch?)
Abort trap: 6

python.

, python. , .

+5
1

... :

  • , OSX gcc, -march = native. -march = core2. / .

  • MAC OSX - " ". - python 2.4 2.5, macports . , , . , (, , ). - , Mac (2 ) 6 , " ", . - python - mac-native, python-native, mac ports, homebrew , , , . , - .

, , , python- , python 2.7.

: , . Python, , , OSX Lion ( , 2,6), , , , , mac- python. 2.3, 2.4 2.5- . ! , ( ), . 6 python install crud, .

, , , OSX Lion, homebrew . , , .

0

All Articles