現時点の最新版である 2.43.0 を導入。
- git で git をとってくる:
1git clone https://github.com/git/git
とはいえ、すでにリポジトリを持っているので git pull でOK。 - gmake で configure を作成し実行したら Openssl 絡みのエラー
12345678910111213/usr/local/bin/ld: imap-send.o: in function `sk_GENERAL_NAME_num':imap-send.c:(.text+0x14): undefined reference to `OPENSSL_sk_num'/usr/local/bin/ld: imap-send.o: in function `sk_GENERAL_NAME_value':imap-send.c:(.text+0x36): undefined reference to `OPENSSL_sk_value'/usr/local/bin/ld: imap-send.o: in function `sk_GENERAL_NAME_pop_free':imap-send.c:(.text+0x5b): undefined reference to `OPENSSL_sk_pop_free'/usr/local/bin/ld: imap-send.o: in function `ssl_socket_connect':imap-send.c:(.text+0x679): undefined reference to `OPENSSL_init_ssl'/usr/local/bin/ld: imap-send.c:(.text+0x688): undefined reference to `OPENSSL_init_ssl'/usr/local/bin/ld: imap-send.c:(.text+0x68d): undefined reference to `TLS_method'/usr/local/bin/ld: imap-send.c:(.text+0x6ee): undefined reference to `SSL_CTX_set_options'collect2: error: ld returned 1 exit statusgmake: *** [Makefile:2796: git-imap-send] Error 1
および msgfmt (gettext) 絡みのエラー
12/bin/sh: msgfmt: not foundgmake: *** [Makefile:3017: po/build/locale/bg/LC_MESSAGES/git.mo] Error 127
を吐いたので、対策してコンパイルすることに。 - まず gettext については新規導入:
12345wget https://ftp.gnu.org/pub/gnu/gettext/gettext-0.22.4.tar.gzcd gettext-0.22.4./configure --prefix=$HOME/localgmakegmake install
- 次いで、Openssl については当面不要と考えてはずしてコンパイル:
1234./configure --prefix=$HOME/local --without-opensslgmake allgmake testgmake install
これでひとまずアップデート完了。でもやっぱり git gc すると
1 2 |
error: prune died of signal 9 fatal: failed to run prune |
というエラーを吐くのは治らず。はぁ…