YUMSERV
반응형

ZABBIX 소스 설치 하던 중 아래와 같이 에러메시지가 뜨면서 오류가 발생했다.

go: github.com/jackc/pgx/v4@v4.8.2-0.20200910143026-040df1ccef85 requires github.com/jackc/pgconn@v1.6.5-0.20200905181414-0d4f029683fc requires github.com/jackc/pgmock@v0.0.0-20190831213851-13a1b77aafa2 requires github.com/jackc/pgtype@v0.0.0-20190828014616-a8802b16cc59 requires github.com/jackc/pgx/v4@v4.0.0-pre1.0.20190824185557-6972a5742186 requires github.com/coreos/go-systemd@v0.0.0-20190719114852-fd7a80b32e1f: invalid version: git fetch --unshallow -f origin in /root/go/pkg/mod/cache/vcs/1f60ff15ab3093bffd86f4a985673d120db13dabca39c597aaa5016031c601a6: exit status 128:
fatal: git fetch-pack: expected shallow list
make[2]: *** [build] 오류 1
make[2]: Leaving directory `/usr/local/zabbix/zabbix-5.2.5/src/go'
make[1]: *** [all-recursive] 오류 1
make[1]: Leaving directory `/usr/local/zabbix/zabbix-5.2.5/src'
make: *** [all-recursive] 오류 1

 

 

[해결책]

현재 설치되어있는 GIT 버전이 너무 낮아서 발생하는 오류로, git 패키지를 지운다음 새로운 git 패키지를 받으면 된다.

# yum remove git*
# yum -y install https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm
# yum install git

 

참고 ) https://computingforgeeks.com/how-to-install-latest-version-of-git-git-2-x-on-centos-7/

반응형
profile

YUMSERV

@lena04301

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!