libgit2-6311e88: cannot open shared object file: No such file or directory
环境 centos 7
dotnet core 2.1.4
错误信息:
libgit2-xxxxxxx: cannot open shared object file: No such file or directory
原因:
找不到动态库 libgit2-xxxxxxx.so
libgit2-xxxxxxx.so未配置在LD_LIBRARY_PATH上
解决办法:
按照以下说明编译native library
https://github.com/libgit2/libgit2sharp.nativebinaries
其中powershell脚本需要安装powershell
可以去github直接下载安装
sudo yum install https://github.com/PowerShell/PowerShell/releases/download/v6.1.0/powershell-6.1.0-1.rhel.7.x86_64.rpm
由于安装了preview版本
安装在了/usr/bin/pwsh-preview 类似的地方
修改可执行文件名称为 powershell 即可运行
之后安装说明编译
编译后 进入libgit2->build 执行make install后 问题解决
相关推荐
huha 2020-10-16
lianshaohua 2020-09-23
higheels 2020-08-03
ZoctopusD 2020-08-03
酷云的csdn 2020-08-03
higheels 2020-07-27
liushun 2020-06-28
zhendeshifeng 2020-06-22
Sabrina 2020-06-11
CARBON 2020-06-03
CARBON 2020-06-01
DBATips 2020-05-31
higheels 2020-05-29
applecarelte 2020-04-15
Yyqingmofeige 2020-03-28
yoshubom 2020-03-06
Yyqingmofeige 2020-03-02