在 MacOS 系统上安装 Lunatic Python
我目前正在尝试让疯狂的 python 包在我的 mac 操作系统上运行。我的问题是,运行 LunPy 的 makefile 时出现几个错误。 有人可以告诉我如何正确设置 Lunatic Python 包吗?
提前致谢!
lunatic-python-1.0 $ make
python setup.py build
running build
running build_ext
building 'lua-python' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/pythoninlua.c -o build/temp.macosx-10.6-universal-2.6/src/pythoninlua.o -rdynamic
src/pythoninlua.c: In function ‘py_convert’:
src/pythoninlua.c:74: warning: passing argument 3 of ‘PyString_AsStringAndSize’ from incompatible pointer type
src/pythoninlua.c: In function ‘py_object_tostring’:
src/pythoninlua.c:335: warning: passing argument 3 of ‘PyString_AsStringAndSize’ from incompatible pointer type
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
src/pythoninlua.c: In function ‘py_convert’:
src/pythoninlua.c:74: warning: passing argument 3 of ‘PyString_AsStringAndSize’ from incompatible pointer type
src/pythoninlua.c: In function ‘py_object_tostring’:
src/pythoninlua.c:335: warning: passing argument 3 of ‘PyString_AsStringAndSize’ from incompatible pointer type
src/pythoninlua.c: At top level:
src/pythoninlua.c:611: fatal error: error writing to -: Broken pipe
compilation terminated.
src/pythoninlua.c: In function ‘py_convert’:
src/pythoninlua.c:74: warning: passing argument 3 of ‘PyString_AsStringAndSize’ from incompatible pointer type
src/pythoninlua.c: In function ‘py_object_tostring’:
src/pythoninlua.c:335: warning: passing argument 3 of ‘PyString_AsStringAndSize’ from incompatible pointer type
lipo: can't open input file: /var/folders/B3/B3c7Jc4xGW0iy57FwnJ13++++TI/-Tmp-//ccwG6Ppf.out (No such file or directory)
error: command 'gcc-4.2' failed with exit status 1
make: *** [all] Error 1
I am currently trying to get the lunatic python package running on my mac operating system. My problem is, there are several errors occurring while running LunPy's makefile.
Can somebody tell me how to properly set up the Lunatic Python package?
Thanks in advance!
lunatic-python-1.0 $ make
python setup.py build
running build
running build_ext
building 'lua-python' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/pythoninlua.c -o build/temp.macosx-10.6-universal-2.6/src/pythoninlua.o -rdynamic
src/pythoninlua.c: In function ‘py_convert’:
src/pythoninlua.c:74: warning: passing argument 3 of ‘PyString_AsStringAndSize’ from incompatible pointer type
src/pythoninlua.c: In function ‘py_object_tostring’:
src/pythoninlua.c:335: warning: passing argument 3 of ‘PyString_AsStringAndSize’ from incompatible pointer type
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
src/pythoninlua.c: In function ‘py_convert’:
src/pythoninlua.c:74: warning: passing argument 3 of ‘PyString_AsStringAndSize’ from incompatible pointer type
src/pythoninlua.c: In function ‘py_object_tostring’:
src/pythoninlua.c:335: warning: passing argument 3 of ‘PyString_AsStringAndSize’ from incompatible pointer type
src/pythoninlua.c: At top level:
src/pythoninlua.c:611: fatal error: error writing to -: Broken pipe
compilation terminated.
src/pythoninlua.c: In function ‘py_convert’:
src/pythoninlua.c:74: warning: passing argument 3 of ‘PyString_AsStringAndSize’ from incompatible pointer type
src/pythoninlua.c: In function ‘py_object_tostring’:
src/pythoninlua.c:335: warning: passing argument 3 of ‘PyString_AsStringAndSize’ from incompatible pointer type
lipo: can't open input file: /var/folders/B3/B3c7Jc4xGW0iy57FwnJ13++++TI/-Tmp-//ccwG6Ppf.out (No such file or directory)
error: command 'gcc-4.2' failed with exit status 1
make: *** [all] Error 1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能在 Mac OS X 10.6 (Snow Leopard) 上使用 Apple 提供的 Python 2.6,并且还安装了新的 Xcode 4。您需要将
ARCHFLAGS
环境变量设置为 在此答案中进行了解释。You are probably using the Apple-supplied Python 2.6 on Mac OS X 10.6 (Snow Leopard) and you've also installed the new Xcode 4. You need to set the
ARCHFLAGS
environment variable as explained in this answer.