在 MacOS 系统上安装 Lunatic Python

发布于 2024-11-28 17:17:33 字数 2203 浏览 0 评论 0原文

我目前正在尝试让疯狂的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

颜漓半夏 2024-12-05 17:17:33

您可能在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文