git-remote-https: error while loading shared libraries: libcurl-httpd24.so.4: cannot open shared obj

错误git-remote-https: error while loading shared libraries: libcurl-httpd24.so.4: cannot open shared object file: No such file or directory解决。

首先要确定libcurl已安装,安装方法:

1.下载安装包:

https://curl.haxx.se/download.html
这里我下载的是curl-7.76.1.tar.gz。

2.解压

curl-7.76.1.tar.gz

3.安装

cd curl-7.76.1
./configure --prefix=/usr
make
make install

4.安装lib

libtool --finsh /usr/local/curl/lib

5.确定/opt/rh/httpd24/root/usr/lib64已安装lib库,应该包含如下文件:

libcurl-httpd24.so.4.5.0
libnghttp2-httpd24.so.14.4.1

 将lib目录加入库文件环境变量:

export LD_LIBRARY_PATH=/opt/rh/httpd24/root/usr/lib64:$LD_LIBRARY_PATH

问题可以得到解决。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值