wbolster / plyvel

Plyvel, a fast and feature-rich Python interface to LevelDB
https://plyvel.readthedocs.io/
Other
529 stars 75 forks source link

When I was using pip(python2.7) install this got the error below in Mac, anyone can help me on that #94

Closed clown-0726 closed 5 years ago

clown-0726 commented 5 years ago
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/crowncao/anaconda3/include -arch x86_64 -I/Users/crowncao/anaconda3/include -arch x86_64 -I/Users/crowncao/anaconda3/include/python3.7m -c plyvel/_plyvel.cpp -o build/temp.macosx-10.7-x86_64-3.7/plyvel/_plyvel.o -Wall -g -mmacosx-version-min=10.7 -stdlib=libc++
    plyvel/_plyvel.cpp:21159:125: warning: offset of on non-POD type 'struct __pyx_obj_6plyvel_7_plyvel_Iterator' [-Winvalid-offsetof]
      if (__pyx_type_6plyvel_7_plyvel_Iterator.tp_weaklistoffset == 0) __pyx_type_6plyvel_7_plyvel_Iterator.tp_weaklistoffset = offsetof(struct __pyx_obj_6plyvel_7_plyvel_Iterator, __pyx_base.__weakref__);
                                                                                                                                ^                                                    ~~~~~~~~~~
    /Library/Developer/CommandLineTools/usr/lib/clang/10.0.0/include/stddef.h:120:24: note: expanded from macro 'offsetof'
    #define offsetof(t, d) __builtin_offsetof(t, d)
                           ^                     ~
    1 warning generated.
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/crowncao/anaconda3/include -arch x86_64 -I/Users/crowncao/anaconda3/include -arch x86_64 -I/Users/crowncao/anaconda3/include/python3.7m -c plyvel/comparator.cpp -o build/temp.macosx-10.7-x86_64-3.7/plyvel/comparator.o -Wall -g -mmacosx-version-min=10.7 -stdlib=libc++
    g++ -bundle -undefined dynamic_lookup -L/Users/crowncao/anaconda3/lib -arch x86_64 -L/Users/crowncao/anaconda3/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/plyvel/_plyvel.o build/temp.macosx-10.7-x86_64-3.7/plyvel/comparator.o -lleveldb -o build/lib.macosx-10.7-x86_64-3.7/plyvel/_plyvel.cpython-37m-darwin.so
    clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
    ld: library not found for -lstdc++
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'g++' failed with exit status 1

    ----------------------------------------
Command "/Users/crowncao/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-mijjhzfj/plyvel/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-z476auie/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-mijjhzfj/plyvel/
wbolster commented 5 years ago

does https://github.com/wbolster/plyvel/pull/91 work for you?

wbolster commented 5 years ago

see #97