Linux安装EasyConnect

服务器 0

首先下载并安装EasyConnect客户端

wget http://download.sangfor.com.cn/download/product/sslvpn/pkg/linux_767/EasyConnect_x64_7_6_7_3.debchmod +x EasyConnect_x64_7_6_7_3.debdpkg -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.deblibpangocairo-1.0-0_1.40.14-1_amd64.deblibpangoft2-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-gnusudo 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)

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

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

也许您对下面的内容还感兴趣: