Linux安装EasyConnect

首先下载并安装EasyConnect客户端

wget http://download.sangfor.com.cn/download/product/sslvpn/pkg/linux_767/EasyConnect_x64_7_6_7_3.deb
chmod +x EasyConnect_x64_7_6_7_3.deb
dpkg -i EasyConnect_x64_7_6_7_3.deb
安装完毕后如果发现点击图标没有反应,那应该是依赖库版本的问题:EasyConnect中使用它的pango版本太老;为了配合EasyConnect,应单独将其依赖的pango版本降下来,且不应该改变系统的pango版本。

可以先查看当前的依赖

# 进入安装目录
cd /usr/share/sangfor/EasyConnect
# 查看依赖
ldd ./EasyConnect |grep 'pango'
libpangocairo-1.0.so.0 => /lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x000071427163a000)
libpango-1.0.so.0 => /lib/x86_64-linux-gnu/libpango-1.0.so.0 (0x00007142715a1000)
libpangoft2-1.0.so.0 => /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x000071426ee91000)

然后去网站下载以下三个依赖库

libpango-1.0-0_1.40.14-1_amd64.deb
libpangocairo-1.0-0_1.40.14-1_amd64.deb
libpangoft2-1.0-0_1.40.14-1_amd64.deb
然后将依赖的三个库中的.so文件解压出来,解压到temp文件夹下

dpkg -X libpango-1.0-0_1.40.14-1_amd64.deb temp/
dpkg -X libpangoft2-1.0-0_1.40.14-1_amd64.deb temp/
dpkg -X libpangocairo-1.0-0_1.40.14-1_amd64.deb temp/
然后进入lib文件夹,将该文件夹下的文件拷贝到EasyConnect文件夹下,即/usr/share/sangfor/EasyConnect文件夹

cd temp/usr/lib/x86_64-linux-gnu
sudo cp * /usr/share/sangfor/EasyConnect
此时再来查看依赖库关系:

ldd ./EasyConnect |grep 'pango'
libpangocairo-1.0.so.0 => /usr/share/sangfor/EasyConnect/./libpangocairo-1.0.so.0 (0x00007945e5000000)
libpango-1.0.so.0 => /usr/share/sangfor/EasyConnect/./libpango-1.0.so.0 (0x00007945e4a00000)
libpangoft2-1.0.so.0 => /usr/share/sangfor/EasyConnect/./libpangoft2-1.0.so.0 (0x00007945e2600000)
可以发现已经变成刚才下载下来的了

然后再点击图标即可进行后续操作
————————————————

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

原文链接:https://blog.csdn.net/m0_60789828/article/details/140356886

posted @ 2024-08-22 09:51  牧之丨  阅读(666)  评论(0编辑  收藏  举报