This is an automated email from the ASF dual-hosted git repository. yumeng pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-devlake-website.git
commit 00dee4415ae840f6ff53cd1c736b72e7a622546a Author: thenicetgp <[email protected]> AuthorDate: Mon Sep 5 22:47:04 2022 +0800 docs: troubleshooting for ubuntu in refdiff.md --- docs/Plugins/refdiff.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/Plugins/refdiff.md b/docs/Plugins/refdiff.md index 65e5f6409..b7b3407a3 100644 --- a/docs/Plugins/refdiff.md +++ b/docs/Plugins/refdiff.md @@ -109,6 +109,24 @@ make make install ``` +#### Troubleshooting (Ubuntu) + +> Q: # pkg-config --cflags -- libgit2 Package libgit2 was not found in the pkg-config search path. +Perhaps you should add the directory containing `libgit2.pc` to the PKG_CONFIG_PATH environment variable +No package 'libgit2' found pkg-config: exit status 1 + +> A: +> Make sure your pkg config path covers the installation: +> if your libgit2.pc in `/usr/local/lib64/pkgconfig` +> +> `export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib64:/usr/local/lib64/pkgconfig` +> +> else if your libgit2.pc in `/usr/local/lib/pkgconfig` +> +> `export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib:/usr/local/lib/pkgconfig` +> +> else consider install pkgconfig or rebuild the libgit2 + ### MacOS NOTEļ¼Do **NOT** install libgit2 via `MadPorts` or `homebrew`, install from source instead.
