Ralat semasa menyusun dan memasang git dalam centos7
漂亮男人
漂亮男人 2017-05-02 09:48:45
0
0
1892

Ralat berlaku semasa menyusun dan memasang git pada centos7

Langkah pemasangan adalah seperti berikut:
1. Muat turun git-2.11.0.tar.gz ke /usr/local/src

[root@tCentos7 ~]# cd /usr/local/src

[root@tCentos7 ~]# wget https://www.kernel.org/pub/software/scm/git/git-2.11.1.tar.gz

2. Pasang perpustakaan bergantung

[root@tCentos7 ~]#yum groupinstall "Development Tools"
[root@tCentos7 ~]# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-CPAN perl-devel perl-ExtUtils-Embed

3. Padamkan git asal yang dipasang

[root@tCentos7 ~]# yum remove git -y

4. Susun dan pasang

[root@tCentos7 ~]# cd /usr/local/src

[root@tCentos7 ~]# tar -zvxf git-2.11.1.tar.gz

[root@tCentos7 ~]# cd git-2.11.1

[root@tCentos7 ~]# ./configure

[root@tCentos7 ~]# make

[root@tCentos7 ~]# make install

Ralat berlaku dalam langkah membuat, kod ralat:

imap-send.o: In function `sk_GENERAL_NAME_num':
/usr/local/include/openssl/x509v3.h:165: undefined reference to `OPENSSL_sk_num'
imap-send.o: In function `sk_GENERAL_NAME_value':
/usr/local/include/openssl/x509v3.h:165: undefined reference to `OPENSSL_sk_value'
imap-send.o: In function `sk_GENERAL_NAME_pop_free':
/usr/local/include/openssl/x509v3.h:165: undefined reference to `OPENSSL_sk_pop_free'
/usr/local/include/openssl/x509v3.h:165: undefined reference to `OPENSSL_sk_pop_free'
imap-send.o: In function `ssl_socket_connect':
/usr/local/src/git-2.11.1/imap-send.c:287: undefined reference to `OPENSSL_init_ssl'
/usr/local/src/git-2.11.1/imap-send.c:288: undefined reference to `OPENSSL_init_ssl'
/usr/local/src/git-2.11.1/imap-send.c:290: undefined reference to `TLS_method'
/usr/local/src/git-2.11.1/imap-send.c:303: undefined reference to `SSL_CTX_set_options'
collect2: error: ld returned 1 exit status
make: *** [git-imap-send] Error 1

Nampaknya ia berkaitan dengan OPENSSL Saya menaik taraf openssl Ia disertakan dengan OpenSSL 1.0.1e-fips 11 Feb 2013. Saya menaik tarafnya kepada openssl-1.1.0d

漂亮男人
漂亮男人

membalas semua(0)
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan