在os x

时间:2016-11-21 03:34:16

标签: python macos python-2.7 clang pcap

我正在尝试在os x上安装pcapy。这是发生的事情:

Joannas-MacBook-Pro:~ joannaburke$ python/Users/joannaburke/Downloads/pcapy-0.10.8/setup.py install my_init_posix: changing LDSHARED = 'gcc-4.2 -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -isysroot /Developer/SDKs/MacOSX10.6.sdk -g' to 'g++-4.2 -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -isysroot /Developer/SDKs/MacOSX10.6.sdk -g'
running install
running build
running build_ext
building 'pcapy' extension
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pcapdumper.cc -o build/temp.macosx-10.6-intel-2.7/pcapdumper.o
clang: error: no such file or directory: 'pcapdumper.cc'
clang: error: no input files
error: command '/usr/bin/clang' failed with exit status 1
Joannas-MacBook-Pro:~ joannaburke$ 

我不知道如何解决这个问题。谷歌没有给我什么。所有帮助表示赞赏。谢谢!

编辑:pcapdumper.cc存在于pcapy目录中。

1 个答案:

答案 0 :(得分:0)

转到pcapy目录并尝试命令“python setup.py install”。这对我有用。