localhost:dev ericliu$ CFLAGS='-stdlib=libc++' pip install pycapnp
cpp -o build/temp.macosx-10.5-x86_64-2.7/capnp/lib/capnp.o --std=c++11
clang: error: invalid deployment target for -stdlib=libc++ (requires OS X 10.7 or later)
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for pycapnp
解决方法:
localhost:dev ericliu$ export MACOSX_DEPLOYMENT_TARGET=10.9
localhost:dev ericliu$ CFLAGS='-stdlib=libc++' pip install pycapnp
Collecting pycapnp
Using cached pycapnp-0.5.7.tar.gz
Building wheels for collected packages: pycapnp
Running setup.py bdist_wheel for pycapnp ... done
Stored in directory: /Users/ericliu/Library/Caches/pip/wheels/0e/79/5a/3c0cc732ac03a2bac2028e8ed60d10bd0079985f79674802be
Successfully built pycapnp
Installing collected packages: pycapnp
Successfully installed pycapnp-0.5.7
localhost:dev ericliu$