0
0

xserverのgitを最新化したけど、ssh経由の操作しかできない。

Last updated at Posted at 2021-08-02

問題

Xserver上でGitを使いたいが、ちょっと、古いので、最新のバージョンを利用したい。

image.png

2024/01/31 追記

Xserverが対応してくださったようで、HTTPSでのCloneができるようになりました!
自前で、Gitをビルドしなくてよくなった!
嬉しい!

2024-01-31_10h31_08.png

TL;DR

OpenSSLまでリビルドする必要があるので、バージョンアップは諦めるかな。。。

同じく、HomeBrew(LinuxBrew)を入れてみたけど、GitとCurlのバージョンが古いのでこちらもインストールにコケたりする。

この辺、Xserverの運営者のギリギリのラインになるのかな?って思いました。

作業内容

こちらの記事を参考にさせていただいて作業を行う。

Xserverへgitの最新版をインストールする

こんな感じでgitのバージョンアップをしました。

image.png

git cloneをしようと思うと、httpsが使えなくてエラーとなります。

image.png

[hirotae@ git-2.32.0]$ ./git --version
git version 2.32.0
[hirotae@ git-2.32.0]$ ./git clone https://github.com/surmon-china/vue-quill-editor.git
Cloning into 'vue-quill-editor'...
fatal: unable to access 'https://github.com/surmon-china/vue-quill-editor.git/': Protocol https not supported or disabled in libcurl

libcurlでSSLが使えないのが問題。

curlをリビルドすることになるけど、今度は、OpenSSLがないと言い出す。。。

image.png

image.png

./configure --with-openssl --prefix=$HOME/local

・・・

checking for HMAC_Update in -lcrypto... no
checking for HMAC_Init_ex in -lcrypto... no
checking OpenSSL linking with -ldl... no
checking OpenSSL linking with -ldl and -lpthread... no
configure: OPT_OPENSSL: yes
configure: OPENSSL_ENABLED:
configure: error: --with-openssl was given but OpenSSL could not be detected

OpenSSLを入れるところになるので、Gitのアップデートは諦めた方がいいかな?

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0