1. Ronald Oussoren
  2. pyobjc
  3. Issues

Issues

Issue #70 resolved

cannot find string.h when building in mavericks

John Colgrove
created an issue

Whenever I build in mavericks with the updated command line tools I get a strange string.h cannot find file fatal error. It might be related to my issue in #66 but I wasn't sure so I made this a separate issue instead. Here is the full, much shorter, log.

$ easy_install -U pyobjc
Searching for pyobjc
Reading http://pypi.python.org/simple/pyobjc/
Best match: pyobjc 2.5.1
Processing pyobjc-2.5.1-py2.7.egg
pyobjc 2.5.1 is already the active version in easy-install.pth

Using /Users/ArcadiaDivine/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pyobjc-2.5.1-py2.7.egg
Processing dependencies for pyobjc
Searching for pyobjc-framework-Social==2.5.1
Reading http://pypi.python.org/simple/pyobjc-framework-Social/
Best match: pyobjc-framework-Social 2.5.1
Downloading https://pypi.python.org/packages/source/p/pyobjc-framework-Social/pyobjc-framework-Social-2.5.1.tar.gz#md5=1aadaa6d45cfced5d9f243b7d153a2eb
Processing pyobjc-framework-Social-2.5.1.tar.gz
Writing /var/folders/m0/8bxc3spn2pjc525q0xcvrz3m0000gn/T/easy_install-yhmp3n/pyobjc-framework-Social-2.5.1/setup.cfg
Running pyobjc-framework-Social-2.5.1/setup.py -q bdist_egg --dist-dir /var/folders/m0/8bxc3spn2pjc525q0xcvrz3m0000gn/T/easy_install-yhmp3n/pyobjc-framework-Social-2.5.1/egg-dist-tmp-ffrUUi
Checking .pth file support in .
/Users/ArcadiaDivine/Library/Enthought/Canopy_64bit/User/bin/python -E -c pass
Searching for pyobjc-core>=2.5.1
Reading http://pypi.python.org/simple/pyobjc-core/
Best match: pyobjc-core 2.5.1
Downloading https://pypi.python.org/packages/source/p/pyobjc-core/pyobjc-core-2.5.1.tar.gz#md5=931c6cfb040df0d7e26c0898886380cf
Processing pyobjc-core-2.5.1.tar.gz
Writing /var/folders/m0/8bxc3spn2pjc525q0xcvrz3m0000gn/T/easy_install-yhmp3n/pyobjc-framework-Social-2.5.1/temp/easy_install-riqy1i/pyobjc-core-2.5.1/setup.cfg
Running pyobjc-core-2.5.1/setup.py -q bdist_egg --dist-dir /var/folders/m0/8bxc3spn2pjc525q0xcvrz3m0000gn/T/easy_install-yhmp3n/pyobjc-framework-Social-2.5.1/temp/easy_install-riqy1i/pyobjc-core-2.5.1/egg-dist-tmp-tJ1zfO
warning: no directories found matching 'Scripts'
warning: no directories found matching 'setup-lib'
warning: no directories found matching 'source-deps'
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Use '/usr/bin/gcc' instead of 'gcc' as the compiler
In file included from libffi-src/ffi.c:25:
libffi-src/include/ffi_common.h:37:11: fatal error: 'string.h' file not found
#       include <string.h>
                ^
1 error generated.
error: Setup script exited with error: command '/usr/bin/gcc' failed with exit status 1

Comments (7)

  1. John Colgrove reporter

    I made a silly and realized that I must not've had the command line tools after all. I'll post again when it is done building. It seems to be working so far.

  2. John Colgrove reporter

    Sorry for the delay but I managed to successfully build PyObjC shortly after I posted that but I had to set enthought's python distribution as the default python version in order to make it work. Kind of dumbfounds me actually.

    What's your thought on that? The error message is the same as issue #66 with the built in python version but it disappears and builds successfully with enthought canopy as the default.

  3. wsmeador

    Hi John, how did you set enthought canopy as your default? I am having the same problem with not being able to find string.h while trying to install pyobjc on OSX.9. I've tried it via easy_install and install.py.

  4. Log in to comment