レンタルサーバーでgitを使う(その2)「fatal: Unable to find remote helper for ‘https’」の解決

プロジェクト管理、ソースコード管理において欠かせない存在であるGit。
自前のサーバーで使う場合は特に何も考えずyumでさくっとインストールしてしまえばいいんですけど、ルート権限のないレンタルサーバーで運用するときにどうするか、というのが問題。

これについては、以前に書いたこちらのエントリー
エックスサーバーでGitをインストール | CentOS & Fedoraテクニック
で基本的にはOKなんですが、今回問題が発生しました。

これまでは、GitレポジトリサーバーをSSH接続できる自前の別サーバーにしていたんですが、Bitbucketという無料のGitレポジトリサービスを使わせてもらうことにしました。

すると…

HTTPSのエラーが発生

fatal: Unable to find remote helper for ‘https’
Clone of ‘https://bitbucket.org/linux-tech/myproject.git’

httpsに対するリモートヘルパーが見つからない、とのことです。これは同じくHTTPSプロトコルで接続するGithubにも起こりえますね。

プロトコルの解決といえばCurl。どうやらcurl-develパッケージが存在しないために、curl をリンクできていないようです。

curl-develをインストール

$ wget http://curl.haxx.se/download/curl-7.46.0.tar.gz
$ tar zxvf curl-7.46.0.tar.gz
$ cd curl-7.46.0
$ ./configure –prefix=/home/[ユーザ名]/opt
$ make
$ make install

これでうまくいくようになりました。
もしこれでもうまく行かなかったら、Gitをインストールし直すといいでしょう。

$ wget https://github.com/git/git/archive/master.zip
$ unzip master
$ cd git-master
$ make configure
$ ./configure –prefix=/home/[ユーザ名]/opt –with-curl=/home/[ユーザ名]/opt
$ make all
$ make install

5 thoughts on “レンタルサーバーでgitを使う(その2)「fatal: Unable to find remote helper for ‘https’」の解決

  1. AlexisBrums

    If you do, you agree with George Herbert’s famous aphorism from his book, Outlandish Proverbs.
    Don’t count on things that haven’t happened yet because something unexpected could occur.
    He knows that Luke should either decide that he can do it or decide to quit.
    Washington’s message was that it’s wiser to be upfront and deal with the consequences.
    It’s easier to do it yourself rather than try to explain it to someone else.
    But these days.
    Aphorisms can act as a guideline to help narrow the focus of your work.
    What is an Aphorism.
    Examples of Aphorism in Literature
    Because let’s face it, perseverance is the key to success in life.
    Remember that.
    Honesty is the best policy.
    One of his most notable is, An ounce of prevention is worth a pound of cure.
    Aphorisms state universal truths about life that encourage reflection.
    From there, you can build your story around it.
    But one key difference is that for a phrase to be truly aphoristic, it needs to be a short statement.

    返信
  2. AlexisBrums

    Aphorisms often use metaphors or creative imagery to express ideas.
    Speaking of being safe, that’s another aphorism example that you’ve probably heard before.
    Luke’s having a tough time, and he’s discouraged.
    Let me ask you.
    It’s easier to do it yourself rather than try to explain it to someone else.
    search bar with “what use aphorism.” written
    Aphoristic statements also appear in everyday life, such as daily speeches made by politicians and leaders.
    Are you in.
    Aphorisms often use metaphors or creative imagery to express ideas.
    This quote originated from Thomas Howell in New Sonnets and Pretty Pamphlets.
    Examples of Aphorism in Film
    Picture of Benjamin Franklin and a caption that says “Aphorist Extraordinaire”
    He’s earned that title because he’s authored dozens of aphorisms.
    search bar with “what use aphorism.” written
    There must be a method to your madness.
    What is an Aphorism.

    返信
  3. AlexisBrums

    It’s a great saying, but it’s not something you’d necessarily repeat over the dinner table.
    Better safe than sorry is a piece of wisdom from Samuel Lover’s book, Rory O’More.
    Michael Corleone from The Godfather II disagreed with that.
    This aphorism is short and sweet, but it teaches us a valuable truth.
    Finally, Actions speak louder than words is another classic example.
    The Purpose & Function of Aphorism
    Then use it as a guideline to stay focused on your general theme.
    Don’t judge a book by its cover.
    Both sayings highlight the benefits of waking up early.
    Fall seven times, stand up eight.
    The idea is simple.
    Washington also said, It is better to offer no excuse than a bad one.
    Want a few more.
    This quote came from Wales, first appearing in an 1866 publication.
    From there, you can build your story around it.
    But one key difference is that for a phrase to be truly aphoristic, it needs to be a short statement.

    返信
  4. AlexisBrums

    Both sayings highlight the benefits of waking up early.
    Better safe than sorry is a piece of wisdom from Samuel Lover’s book, Rory O’More.
    You create them.
    Washington’s message was that it’s wiser to be upfront and deal with the consequences.
    Finally, Actions speak louder than words is another classic example.
    Not so much.
    Then use it as a guideline to stay focused on your general theme.
    Now here’s the big question.
    Proverbs, on the other hand, can be much longer than aphorisms and adages.
    Another success aphorism comes from Chris Grosser.
    He played the villain in the movie that famously stated.
    We’ve all probably had to learn that the hard way.
    Sometimes, though.
    They’re easy to remember and pass down through generations because they’re concise.
    And then.
    Are you in.

    返信

indeed jobs oahu へ返信する コメントをキャンセル

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です