Git through source code compile install 2.12.2 encounter problem and solve

Source: Internet
Author: User
Tags ftp install perl

Git Source:

Https://github.com/git/git/releases
wget https://github.com/git/git/archive/v2.12.2.tar.gz

Error:

Can ' t locate extutils/makemaker.pm in @INC (@INC contains:/usr/local/lib64/perl5/usr/local/share/perl5/usr/lib64/ Perl5/vendor_perl

Fix, install installation Perl-extutils-cbuilder Perl-extutils-makemaker :

Yum Install Perl-extutils-cbuilder Perl-extutils-makemaker

Error:

LINK git-credential-store
libgit.a (UTF8.O): in function ' Reencode_string_iconv ':
/opt/git-master/utf8.c : 530:undefined reference to ' Libiconv '
libgit.a (UTF8.O): in function ' Reencode_string_len ':
/opt/git-master/ utf8.c:569:undefined reference to ' Libiconv_open '
/opt/git-master/utf8.c:588:undefined reference to ' LIBICONV_ Close '
/opt/git-master/utf8.c:582:undefined reference to ' Libiconv_open '
Collect2:ld returned 1

Solve, install Libiconv can

https://ftp.gnu.org/gnu/libiconv/
wget https://ftp.gnu.org/gnu/libiconv/libiconv-1.15.tar.gz
TAR-XVF libiconv-1.15.tar.gz
cd libiconv-1.15
./configure--prefix=/usr/local/libiconv && make && Make install

Then Git re-installs

Make configure
./configure--prefix=/usr/local/git--with-iconv=/usr/local/libiconv make
&& make Install

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.