安装leveldb时出错-命令'gcc'失败,退出状态为1

时间:2018-11-30 22:10:55

标签: python gcc anaconda macos-sierra leveldb

我只是在运行brew install leveldb,然后在编译器失败时运行brew install gcc。我还在这里学习绳索。

有人知道如何进行操作,请帮助我了解发生了什么情况?

谢谢! -a

    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/annjie/anaconda3/include -arch x86_64 -I/Users/annjie/anaconda3/include -arch x86_64 -I/Users/annjie/anaconda3/include/python3.6m -c ./snappy/snappy.cc -o build/temp.macosx-10.7-x86_64-3.6/./snappy/snappy.o -I./leveldb/include -I./leveldb -I./snappy -I. -fno-builtin-memcmp -O2 -fPIC -DNDEBUG -DSNAPPY -DOS_MACOSX -DLEVELDB_PLATFORM_POSIX -Wno-error=unused-command-line-argument-hard-error-in-future
   cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
   cc1plus: error: -Werror=unused-command-line-argument-hard-error-in-future: no option -Wunused-command-line-argument-hard-error-in-future
   error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/Users/---/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/59/zbz4xf_s3f74kd26nrd2pk4h0000gn/T/pip-install-ll2r7etb/leveldb/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/var/folders/59/zbz4xf_s3f74kd26nrd2pk4h0000gn/T/pip-record-5trnxeb9/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/59/zbz4xf_s3f74kd26nrd2pk4h0000gn/T/pip-install-ll2r7etb/leveldb/

0 个答案:

没有答案