首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Fedora 21系统上安装python numba依赖项llvmlite

无法在Fedora 21系统上安装python numba依赖项llvmlite
EN

Stack Overflow用户
提问于 2015-03-25 01:26:06
回答 1查看 2K关注 0票数 1

我正在尝试在运行Fedora 21的PC上安装python numba。我运行的是Python 2.7.8。

我在Getting python Numba working on Ubuntu 14.10 or Fedora 21 with python 2.7上找到了一些有用的信息,并尝试了那里的建议,但它在我的情况下不起作用。针对该特定查询的建议是

代码语言:javascript
复制
yum install zlib zlib-devel libstdc++-devel libstdc++ libstdc++-static llvm-3.5.0 llvm-devel-3.5.0 libedit libedit-devel
pip install enum34
pip install funcsigs
LLVM_CONFIG=/usr/bin/llvm-config pip install llvmlite
LLVM_CONFIG=/usr/bin/llvm-config pip install numba

在安装llvmlite的过程中(上面的步骤4)出现了这个问题。下面是我在运行pip install llmvlite时在终端窗口中看到的一些消息

代码语言:javascript
复制
Downloading/unpacking llvmlite
Downloading llvmlite-0.2.2.tar.gz (75kB): 75kB downloaded
Running setup.py (path:/tmp/pip-build-1eUon1/llvmlite/setup.py) egg_info for package llvmlite

Installing collected packages: llvmlite
Running setup.py install for llvmlite
got version from file /tmp/pip-build-1eUon1/llvmlite/llvmlite/_version.py {'version': '0.2.2', 'full': 'c6e72f55cb10bccdcba2f31e9d52c528b12c5a0e'}
/usr/bin/python /tmp/pip-build-1eUon1/llvmlite/ffi/build.py
LLVM version... 3.5.0
# static-libstdc++ avoids runtime dependencies on a
# particular libstdc++ version.
g++ -static-libstdc++ -shared -flto `/usr/bin/llvm-config --cxxflags` -fno-rtti assembly.cpp bitcode.cpp core.cpp initfini.cpp module.cpp value.cpp executionengine.cpp transforms.cpp passmanagers.cpp targets.cpp dylib.cpp linker.cpp -o libllvmlite.so -flto `/usr/bin/llvm-config --ldflags` -Wl,--exclude-libs=ALL `/usr/bin/llvm-config --system-libs --libs all`
/bin/ld: cannot find -lLLVMLineEditor
/bin/ld: cannot find -lLLVMInstrumentation
/bin/ld: cannot find -lLLVMProfileData
/bin/ld: cannot find -lLLVMIRReader
/bin/ld: cannot find -lLLVMAsmParser
/bin/ld: cannot find -lLLVMDebugInfo
/bin/ld: cannot find -lLLVMOption
/bin/ld: cannot find -lLLVMJIT

等...(尚未包含无法找到消息的完整列表)

代码语言:javascript
复制
collect2: error: ld returned 1 exit status

Makefile.linux:17: recipe for target 'libllvmlite.so' failed

make: *** [libllvmlite.so] Error 1

Traceback (most recent call last):

  File "/tmp/pip-build-mmSawV/llvmlite/ffi/build.py", line 112, in <module>

    main()

  File "/tmp/pip-build-mmSawV/llvmlite/ffi/build.py", line 104, in main

    main_posix('linux', '.so')

  File "/tmp/pip-build-mmSawV/llvmlite/ffi/build.py", line 96, in main_posix

    subprocess.check_call(['make', '-f', makefile])

  File "/usr/lib64/python2.7/subprocess.py", line 540, in check_call

    raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '['make', '-f', 'Makefile.linux']' returned non-zero exit status 2

error: command '/usr/bin/python' failed with exit status 1

任何帮助都将不胜感激。

谢谢。

致以敬意,

将要。

EN

回答 1

Stack Overflow用户

发布于 2015-04-16 01:30:16

我刚刚修复了在Fedora 21上编译llvmlite的问题。您需要首先安装LLVM的静态库(yum中的llvm- static包)。这将在/usr/lib64/llvm中安装LLVMLineEditor等库。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29239117

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档