Linux安装EasyConnect

m0_60789828 2024-09-03 09:37:03 阅读 61

首先下载并安装EasyConnect客户端

<code>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)

可以发现已经变成刚才下载下来的了

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



声明

本文内容仅代表作者观点,或转载于其他网站,本站不以此文作为商业用途
如有涉及侵权,请联系本站进行删除
转载本站原创文章,请注明来源及作者。