[py-lmdb] Install problems OSX

  • From: Ellery R Russell <ellery.russell@xxxxxxx>
  • To: py-lmdb@xxxxxxxxxxxxx
  • Date: Mon, 9 Mar 2015 21:13:15 -0400

I've been trying to install lmdb on OSX 10.10 and an anaconda python
distribution with no luck. For some reason gcc can't find the header
files.  I have the latest command line tools installed, and am using gcc
4.2.1. Not sure what to do, can anyone help?

~/anaconda$pip install lmdb
Collecting lmdb
  Using cached lmdb-0.84.tar.gz
    py-lmdb: Using bundled liblmdb; override with LMDB_FORCE_SYSTEM=1.
    py-lmdb: Using CPython extension; override with LMDB_FORCE_CFFI=1.
    warning: no directories found matching '.'
Installing collected packages: lmdb
  Running setup.py install for lmdb
    py-lmdb: Using bundled liblmdb; override with LMDB_FORCE_SYSTEM=1.
    py-lmdb: Using CPython extension; override with LMDB_FORCE_CFFI=1.
    building 'cpython' extension
    gcc -fno-strict-aliasing -I/Users/err258/anaconda/include -arch x86_64
-isysroot /Developer/SDKs/MacOSX10.5.sdk -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes
-I/Users/err258/anaconda/pkgs/python-2.7.9-1/include/python2.7/ -Ilib
-I/Users/err258/anaconda/include/python2.7 -c lmdb/cpython.c -o
build/temp.macosx-10.5-x86_64-2.7/lmdb/cpython.o -UNDEBUG -w
    lmdb/cpython.c:28:10: fatal error: 'errno.h' file not found
    #include <errno.h>
             ^
    1 error generated.
    error: command 'gcc' failed with exit status 1
    Complete output from command /Users/err258/anaconda/bin/python -c
"import setuptools,
tokenize;__file__='/private/var/folders/bf/wm3420f57y3gldklrhj7mn3h0000gn/T/pip-build-ww3c02/lmdb/setup.py';exec(compile(getattr(tokenize,
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record
/var/folders/bf/wm3420f57y3gldklrhj7mn3h0000gn/T/pip-OORG2M-record/install-record.txt
--single-version-externally-managed --compile:
    py-lmdb: Using bundled liblmdb; override with LMDB_FORCE_SYSTEM=1.

    py-lmdb: Using CPython extension; override with LMDB_FORCE_CFFI=1.

    running install

    running build

    running build_py

    creating build

    creating build/lib.macosx-10.5-x86_64-2.7

    creating build/lib.macosx-10.5-x86_64-2.7/lmdb

    copying lmdb/__init__.py -> build/lib.macosx-10.5-x86_64-2.7/lmdb

    copying lmdb/__main__.py -> build/lib.macosx-10.5-x86_64-2.7/lmdb

    copying lmdb/_config.py -> build/lib.macosx-10.5-x86_64-2.7/lmdb

    copying lmdb/cffi.py -> build/lib.macosx-10.5-x86_64-2.7/lmdb

    copying lmdb/tool.py -> build/lib.macosx-10.5-x86_64-2.7/lmdb

    running build_ext

    building 'cpython' extension

    creating build/temp.macosx-10.5-x86_64-2.7

    creating build/temp.macosx-10.5-x86_64-2.7/lmdb

    creating build/temp.macosx-10.5-x86_64-2.7/lib

    gcc -fno-strict-aliasing -I/Users/err258/anaconda/include -arch x86_64
-isysroot /Developer/SDKs/MacOSX10.5.sdk -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes
-I/Users/err258/anaconda/pkgs/python-2.7.9-1/include/python2.7/ -Ilib
-I/Users/err258/anaconda/include/python2.7 -c lmdb/cpython.c -o
build/temp.macosx-10.5-x86_64-2.7/lmdb/cpython.o -UNDEBUG -w

    lmdb/cpython.c:28:10: fatal error: 'errno.h' file not found

    #include <errno.h>

             ^

    1 error generated.

    error: command 'gcc' failed with exit status 1

    ----------------------------------------
    Command "/Users/err258/anaconda/bin/python -c "import setuptools,
tokenize;__file__='/private/var/folders/bf/wm3420f57y3gldklrhj7mn3h0000gn/T/pip-build-ww3c02/lmdb/setup.py';exec(compile(getattr(tokenize,
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record
/var/folders/bf/wm3420f57y3gldklrhj7mn3h0000gn/T/pip-OORG2M-record/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in
/private/var/folders/bf/wm3420f57y3gldklrhj7mn3h0000gn/T/pip-build-ww3c02/lmdb

Other related posts: