ERROR: Package libgit2 not found

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Sun Nov 9 06:07:42 PST 2014


On Sun, 9 Nov 2014, Cristian Ionescu-Idbohrn wrote:
>
> Anyone else seeing this (on recent debian unstable)?
>
> ,----
> | $ qmake
> | Project ERROR: Package libgit2 not found
> `----
>
> Still, I have the libgit2 packages installed:
>
> ,----
> | libgit2-21:amd64                                install
> | libgit2-dev:amd64                               install
> `----
>
> I have the libs:
>
> ,----
> | /usr/lib/x86_64-linux-gnu/libgit2.a
> | /usr/lib/x86_64-linux-gnu/libgit2.so
> | /usr/lib/x86_64-linux-gnu/libgit2.so.0.21.2
> | /usr/lib/x86_64-linux-gnu/libgit2.so.21
> `----
>
> and I see header files installed in /usr/include/git2.
>
> And:
>
> ,----
> | $ cat /usr/lib/x86_64-linux-gnu/pkgconfig/libgit2.pc
> | libdir=/usr/lib/x86_64-linux-gnu
> | includedir=/usr/include
> |
> | Name: libgit2
> | Description: The git library, take 2
> | Version: 0.21.2
> | Requires.private:  openssl zlib libssh2
> | Libs.private:  -lhttp_parser -lrt
> | Libs: -L${libdir} -lgit2
> | Cflags: -I${includedir}
> `----
>
> What could cause the error?

Answer to myself:

$ pkg-config --print-errors --exists libgit2
Package libssh2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libssh2.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libssh2', required by 'libgit2', not found

I needed to install package libssh2-1-dev.  Patch attached.
INSTALL needs to be updated too.


Cheers,

-- 
Cristian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Partially-solve-libssh2-dependency.patch
Type: text/x-diff
Size: 864 bytes
Desc: 
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141109/c2bfbb4f/attachment.patch>


More information about the subsurface mailing list