lshmouse opened a new issue, #2929: URL: https://github.com/apache/incubator-devlake/issues/2929
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues. ### What happened ``` $ make build-plugin Usage: build all plugins: scripts/compile-plugins.sh [golang build flags...] build and keep one plugin only: PLUGIN=jira scripts/compile-plugins.sh [golang build flags...] Building plugin ae to bin/plugins/ae/ae.so Building plugin dbt to bin/plugins/dbt/dbt.so Building plugin feishu to bin/plugins/feishu/feishu.so Building plugin gitee to bin/plugins/gitee/gitee.so Building plugin gitextractor to bin/plugins/gitextractor/gitextractor.so Building plugin github to bin/plugins/github/github.so Building plugin gitlab to bin/plugins/gitlab/gitlab.so Building plugin icla to bin/plugins/icla/icla.so Building plugin jenkins to bin/plugins/jenkins/jenkins.so Building plugin jira to bin/plugins/jira/jira.so Building plugin org to bin/plugins/org/org.so Building plugin refdiff to bin/plugins/refdiff/refdiff.so Building plugin starrocks to bin/plugins/starrocks/starrocks.so Building plugin tapd to bin/plugins/tapd/tapd.so # 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 Makefile:25: recipe for target 'build-plugin' failed make: *** [build-plugin] Error 2 After sudo apt-get install libgit2-dev $ make build-plugin Usage: build all plugins: scripts/compile-plugins.sh [golang build flags...] build and keep one plugin only: PLUGIN=jira scripts/compile-plugins.sh [golang build flags...] Building plugin ae to bin/plugins/ae/ae.so Building plugin dbt to bin/plugins/dbt/dbt.so Building plugin feishu to bin/plugins/feishu/feishu.so Building plugin gitee to bin/plugins/gitee/gitee.so Building plugin gitextractor to bin/plugins/gitextractor/gitextractor.so Building plugin github to bin/plugins/github/github.so Building plugin gitlab to bin/plugins/gitlab/gitlab.so Building plugin icla to bin/plugins/icla/icla.so Building plugin jenkins to bin/plugins/jenkins/jenkins.so Building plugin jira to bin/plugins/jira/jira.so Building plugin org to bin/plugins/org/org.so Building plugin refdiff to bin/plugins/refdiff/refdiff.so Building plugin starrocks to bin/plugins/starrocks/starrocks.so Building plugin tapd to bin/plugins/tapd/tapd.so # github.com/libgit2/git2go/v33 ../../go/pkg/mod/github.com/libgit2/git2go/[email protected]/Build_system_dynamic.go:12:3: error: #error "Invalid libgit2 version; this git2go supports libgit2 between v1.3.0 and v1.3.0" # error "Invalid libgit2 version; this git2go supports libgit2 between v1.3.0 and v1.3.0" ^~~~~ Makefile:25: recipe for target 'build-plugin' failed make: *** [build-plugin] Error 2 ``` ### What you expected to happen The build can be successful ### How to reproduce `make build-plugin` on ubunut Ubuntu 18.04.6 LTS ### Anything else _No response_ ### Version v0.12.0 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
