CentOS 6上的libquadmath错误:软件找不到

时间:2015-01-14 09:30:12

标签: centos shared-libraries

我在CentOS 6计算机上编译的一个软件给我一个错误,我在Ubuntu 14.10笔记本电脑上编译完全相同的软件没有看到错误:

auxgen: error while loading shared libraries: libquadmath.so.0: cannot open shared object file: No such file or directory

有问题的图书馆似乎确实存在于CentOS机器上:

$ locate libquadmath
/usr/local/lib/libquadmath.a
/usr/local/lib/libquadmath.la
/usr/local/lib/libquadmath.so
/usr/local/lib/libquadmath.so.0
/usr/local/lib/libquadmath.so.0.0.0
/usr/local/lib64/libquadmath.a
/usr/local/lib64/libquadmath.la
/usr/local/lib64/libquadmath.so
/usr/local/lib64/libquadmath.so.0
/usr/local/lib64/libquadmath.so.0.0.0
/usr/local/share/info/libquadmath.info

$ ldd /usr/local/bin/auxgen
/usr/local/bin/auxgen: /usr/lib64/libgfortran.so.3: version `GFORTRAN_1.4' not found (required by /usr/local/bin/auxgen)
    linux-vdso.so.1 =>  (0x00007fff6cdb0000)
    libgfortran.so.3 => /usr/lib64/libgfortran.so.3 (0x0000003b64a00000)
    libm.so.6 => /lib64/libm.so.6 (0x000000330d000000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003c0b400000)
    libquadmath.so.0 => not found
    libc.so.6 => /lib64/libc.so.6 (0x000000330c400000)
    /lib64/ld-linux-x86-64.so.2 (0x000000330c000000)

在我的Ubuntu 14.10笔记本电脑上,它的工作原理:

    $ ldd /usr/local/bin/auxgen
    linux-vdso.so.1 =>  (0x00007fff7aaf2000)
    libgfortran.so.3 => /usr/lib/x86_64-linux-gnu/libgfortran.so.3 (0x00007fd71b5da000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd71b215000)
    libquadmath.so.0 => /usr/lib/x86_64-linux-gnu/libquadmath.so.0 (0x00007fd71afd6000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd71acd0000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd71aab9000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fd71b922000)

在Ubuntu笔记本电脑上工作:

$ ldconfig -p | grep 'quad\|gfort'
    libquadmath.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libquadmath.so.0
    libgfortran.so.3 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libgfortran.so.3

在不起作用的CentOS上:

$ ldconfig -p | grep 'quad\|gfort'
    libgfortran.so.3 (libc6,x86-64) => /usr/lib64/libgfortran.so.3
    libgfortran.so.3 (libc6) => /usr/lib/libgfortran.so.3

有什么想法吗?

0 个答案:

没有答案