简体   繁体   English

在Mac OS X上安装PyOpenCl时出错

[英]Error during installing PyOpenCl on Mac OS X

I follow the installation instructions on http://wiki.tiker.net/PyOpenCL/Installation/Mac . 我按照http://wiki.tiker.net/PyOpenCL/Installation/Mac上的安装说明进行操作。 But it falls during 但它落在

make

The error message is shown below: 错误消息如下所示:

fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't figure out the architecture type of: /var/folders/8f/l7p674mx2j130p08plnd9k1r0000gn/T//ccG1RrCB.out
error: command 'gcc-4.2' failed with exit status 1
make: *** [all] Error 1

What I can do to install PyOpenCL successfully? 如何成功安装PyOpenCL?

Have you installed Mako before pyopencl? 您在pyopencl之前安装了Mako吗? For some reason that's what works with my macs. 由于某些原因,这就是我的Mac的工作方式。

Also, you may not have installed the Xcode Command line tools; 另外,您可能尚未安装Xcode命令行工具。 try (in the terminal): 尝试(在终端中):

xcode-select --install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM