我一直在尝试安装我们需要的名为 snapgene_viewer 的软件,它似乎无法要求 libomp,
Error: Package: snapgene-viewer-6.1-2.x86_64 (/snapgene_viewer_6.1.2_linux)
Requires: libomp
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我什至尝试通过安装,homebrew
https://formulae.brew.sh/formula/libomp
因为有一个直接的包,但也失败了,
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/xz-20221129-23304-127j8iw/xz-5.2.7':
configure: error: C compiler cannot create executables
See `config.log' for more details
但我的机器上确实安装了 gcc,这里是输出gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/7/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-libmpx --enable-libsanitizer --enable-gnu-indirect-function --enable-libcilkrts --enable-libatomic --enable-libquadmath --enable-libitm --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 7.3.1 20180712 (Red Hat 7.3.1-15) (GCC)
了解 llvm 和 gcc 之间的区别,还安装了 llvm 工具集,因为yum search libomp
,向我指出了包含它的库,例如,
llvm-toolset-7-libomp.x86_64 : OpenMP runtime for clang
llvm-toolset-7-libomp-devel.x86_64 : OpenMP header files
llvm-toolset-7.0-libomp.x86_64 : OpenMP runtime for clang
llvm-toolset-7.0-libomp-devel.x86_64 : OpenMP header files
llvm-toolset-7.0-libomp-test.x86_64 : OpenMP regression tests
libomp
是它的一部分并安装在 下/opt
,我确保它们可以/usr/lib
通过符号链接使用,
尽管如此,仍然没有区别。
我缺少什么,我该如何让它发挥作用?