0

llvmpy在 ubuntu 14.04 上安装时遇到了一些问题,我从 llvmpy.org 下载了 llvmpy 并llvm 3.4通过安装apt-get,当我尝试使用安装它时

python setup.py install

我收到此错误:

Error: could not invoke ['llvm-config', '--version']
Try setting LLVM_CONFIG_PATH=/path/to/llvm-config

然后我用

LLVM_CONFIG_PATH=/usr/lib/llvm-3.4/bin/llvm-config python setup.py install

我得到了

LLVM version = u'3.4'
LLVM targets = 
Generate intrinsic IDs
Searching shared library libLLVM-3.4 in /usr/lib/llvm-3.4/lib
Using dynamic linking
/usr/bin/python: can't open file 'llvmpy/build.py': [Errno 2] No such file or directory
Traceback (most recent call last):
  File "setup.py", line 142, in <module>
    check_call([sys.executable, 'llvmpy/build.py'])
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', 
'llvmpy/build.py']'    returned non-zero exit status 2

我该如何解决这个问题?

4

1 回答 1

1

如果您从https://pypi.python.org/packages/source/l/llvmpy/llvmpy-0.12.4.tar.gz上的 tar.gz 文件获得它,它不完整,请尝试从 zip 下载github https://github.com/llvmpy/llvmpy

或者直接通过 git 命令

于 2014-07-04T12:47:10.983 回答