无法在AIX 7.1中加载程序git-remote-http

问题描述 投票:-1回答:1

有人遇到以下问题吗?我安装了git(git版本2.20.1),并且在AIX 7.1框中运行它时得到了提示。

$ git clone http://bitbucket.xxxxxx/scm/clr/clr-my.git
Cloning into 'clr-my'...
Could not load program git-remote-http:
Symbol resolution failed for git-remote-http because:
        Symbol _GLOBALAIXI_libcurl_so (number 206) is not exported from dependent
          module /opt/freeware/lib/libcurl.a[libcurl.so.4].
        Symbol _GLOBALAIXD_libcurl_so (number 207) is not exported from dependent
          module /opt/freeware/lib/libcurl.a[libcurl.so.4].
Examine .loader section symbols with the 'dump -Tv' command.

$ ls -lrt /opt/freeware/lib/libcurl.a
-rwxr-xr-x    1 root     system      1644689 Jun 18 2018  /opt/freeware/lib/libcurl.a

$ ls -lrt | grep libcurl.so.4
-rwxr-xr-x    1 root     system       756861 Jun 18 2018  libcurl.so.4
git aix
1个回答
0
投票

您已从不同来源安装了不兼容的程序包,例如:https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/git/git-2.20.1-1.aix6.1.ppc.rpmhttp://www.oss4aix.org/download/RPMS/curl/curl-7.65.3-1.aix5.1.ppc.rpm

相反,请从同一来源安装所有软件包,例如:https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/git/git-2.20.1-1.aix6.1.ppc.rpmhttps://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/curl/curl-7.65.1-1.aix6.1.ppc.rpm

这样,您的共享库将同意其全局符号,例如:

dump -Tv -X32 /opt/freeware/libexec/git-remote-http | grep '_GLOBAL.*AIX.*curl'
[205]   0x00000000    undef      IMP     DS EXTref libcurl.a(libcurl.so.4) _GLOBAL__AIXI_libcurl_so
[206]   0x00000000    undef      IMP     DS EXTref libcurl.a(libcurl.so.4) _GLOBAL__AIXD_libcurl_so

dump -Tv -X32 /opt/freeware/lib/libcurl.a | grep '_GLOBAL.*AIX.*curl'
[444]   0x200018c0    .data      EXP     DS   Ldef        [noIMid] _GLOBAL__AIXI_libcurl_so
[445]   0x200018cc    .data      EXP     DS   Ldef        [noIMid] _GLOBAL__AIXD_libcurl_so

因此,现在我建议从OSS4AIX除去curl软件包(如果安装了,也要除去curl-devel,并从IBM AIX Toolbox安装。)>

© www.soinside.com 2019 - 2024. All rights reserved.