我正在尝试使用 edpFree 7.3-2 在 ubuntu 12.04 上安装 llvmpy
# uname -a
Linux svnserver 3.2.0-38-generic #61-Ubuntu SMP Tue Feb 19 12:18:21 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
在 pip 命令之后,我收到一个错误:
#./pip install llvmpy
Downloading/unpacking llvmpy
Running setup.py egg_info for package llvmpy
LLVM version = u'3.0'
Generate intrinsic IDs
Searching shared library libLLVM-3.0 in /usr/lib/llvm-3.0/lib
Using PTX
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build/llvmpy/setup.py", line 136, in <module>
+ extra_components)
File "/tmp/pip-build/llvmpy/setup.py", line 41, in get_libs_and_objs
parts = run_llvm_config(['--libs'] + components).split()
File "/tmp/pip-build/llvmpy/setup.py", line 34, in run_llvm_config
raise Exception("%r stderr is:\n%s" % (args, stderr.decode()))
Exception: ['llvm-config', '--libs', 'core', 'analysis', 'scalaropts', 'executionengine', 'jit', 'native', 'interpreter', 'bitreader', 'bitwriter', 'instrumentation', 'ipa', 'ipo', 'transformutils', 'asmparser', 'linker', 'support', 'vectorize', 'ptxdesc', 'ptxcodegen', 'ptxasmprinter', 'ptxinfo', 'ptx'] stderr is:
llvm-config: unknown component name: vectorize
Complete output from command python setup.py egg_info:
LLVM version = u'3.0'
Generate intrinsic IDs
Searching shared library libLLVM-3.0 in /usr/lib/llvm-3.0/lib
Using PTX
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build/llvmpy/setup.py", line 136, in <module>
+ extra_components)
File "/tmp/pip-build/llvmpy/setup.py", line 41, in get_libs_and_objs
parts = run_llvm_config(['--libs'] + components).split()
File "/tmp/pip-build/llvmpy/setup.py", line 34, in run_llvm_config
raise Exception("%r stderr is:\n%s" % (args, stderr.decode()))
Exception: ['llvm-config', '--libs', 'core', 'analysis', 'scalaropts', 'executionengine', 'jit', 'native', 'interpreter', 'bitreader', 'bitwriter', 'instrumentation', 'ipa', 'ipo', 'transformutils', 'asmparser', 'linker', 'support', 'vectorize', 'ptxdesc', 'ptxcodegen', 'ptxasmprinter', 'ptxinfo', 'ptx'] stderr is:
llvm-config: unknown component name: vectorize
问题出在矢量化组件上!
作为我安装的先决条件(使用 aptitude):
llvm-3.0
llvm-3.0-dev
llvm-3.0-runtime
libllvm3.0
可能是 3.0 必须替换为 3.1 ?
你能帮助我吗 ?