镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Static build can't find LIBSSH2 starting at v31.6.0 #871

Description

@tylerphelan

Running on ubuntu 18.04

Steps:

$ apt list --installed | grep libssh
libssh2-1/now 1.8.0-1 amd64 [installed,local]
libssh2-1-dev/now 1.8.0-1 amd64 [installed,local]
$ git clone https://github.com/libgit2/git2go && cd git2go
$ git checkout v31.5.3 && git submodule update --init
$ make install-static # this works
$ rm -rf static-build
$ git checkout v31.6.0 && git submodule update --init # it's the same libgit2 anyways
$ make install-static
...
LIBSSH2 not found. Set CMAKE_PREFIX_PATH if it is installed outside of the default search path.
...

All versions above 31.6.0 have shown the same behavior for me so far. What accounts for this?

Activity

  1. clns commented on Apr 14, 2022

    @clns
    Contributor

    I'm having the same issue. Have you found any solution?

  2. tylerphelan commented on Apr 15, 2022

    @tylerphelan
    Author

    @clns this seemed to work:

    sed -i '/^.*DUSE_HTTPS=OFF.*$/d' script/build-libgit2.sh
    sed -i '/^.*DUSE_SSH=OFF.*$/d' script/build-libgit2.sh
    make install-static
    
  3. clns commented on Apr 16, 2022

    @clns
    Contributor

    It is supposed to be like this, because it is now using the Go transport. See b983e1d and 70e5e41.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions