有一台centos7的系统,需要安装一个vpn去访问天河超算,
需要安装vpnc,按照超算vpn的说明书,我只要安装好这个就可以用了,然鹅。。。
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/Packages/v/vpnc-0.5.3-4.el6.x86_64.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/Packages/v/vpnc-0.5.3-4.el6.x86_64.rpm
warning: /var/tmp/rpm-tmp.bsU2MU: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
error: Failed dependencies:
upstart is needed by vpnc-0.5.3-4.el6.x86_64
报错没有upstart包,
$ yum install upstart
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.cn99.com
No package upstart available.
Error: Nothing to do
源码安装
wget https://launchpadlibrarian.net/184013642/upstart-1.13.2.tar.gz
tar -zxvf upstart-1.13.2.tar.gz
cd upstart-1.13.2
./configure
报错
configure: error: Package requirements (libnih >= 1.0.2) were not met:
No package 'libnih' found
安装 libnih
wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/libnih/1.0.3-6ubuntu2/libnih_1.0.3.orig.tar.gz
tar -zxvf libnih_1.0.3.orig.tar.gz
cd libnih-1.0.3/
./configure
报错
configure: error: Package requirements (dbus-1 >= 1.2.16) were not met:
No package 'dbus-1' found
$ yum install dbus
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.cn99.com
Package 1:dbus-1.10.24-7.el7.x86_64 already installed and latest version
Nothing to do
源码安装dbus-1
wget https://dbus.freedesktop.org/releases/dbus/dbus-1.13.6.tar.gz
tar -zxvf dbus-1.13.6.tar.gz
cd dbus-1.13.6/
./configure
error
checking for EXPAT... configure: error: Package requirements (expat) were not met:
No package 'expat' found
用yum install expat
发现已经安装了,
$ yum install expat
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.cn99.com
Package expat-2.1.0-10.el7_3.x86_64 already installed and latest version
Nothing to do
那就蛋疼了,明明已经安装了这个库,可就是找不到,后来,第二天了,就想着从新下载一个其他版本的vpnc吧,肯定是这个版本的vpnc有问题,这个感觉像ubantu的版本。于是在网站上找到了7版本的路径下载下来安装试试。
$ rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/v/vpnc-0.5.3-22.svn457.el7.x86_64.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/v/vpnc-0.5.3-22.svn457.el7.x86_64.rpm
warning: /var/tmp/rpm-tmp.LOYFel: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
error: Failed dependencies:
vpnc-script is needed by vpnc-0.5.3-22.svn457.el7.x86_64
报错需要vpnc-script,网站上刚好有这个,继续下载安装:
$ rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/v/vpnc-script-0.5.3-22.svn457.el7.noarch.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/v/vpnc-script-0.5.3-22.svn457.el7.noarch.rpm
warning: /var/tmp/rpm-tmp.SFqMoU: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:vpnc-script-0.5.3-22.svn457.el7 ################################# [100%]
成功,继续安装vpnc
$ rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/v/vpnc-0.5.3-22.svn457.el7.x86_64.rpm
Retrieving http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/v/vpnc-0.5.3-22.svn457.el7.x86_64.rpm
warning: /var/tmp/rpm-tmp.WhnwAn: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:vpnc-0.5.3-22.svn457.el7 ################################# [100%]
成功了。
可以开始配置了,输入各种ip,id,用户名,密码之类的东西,这些东西申请使用超算的时候,会有邮件发给你。
Enter IPSec gateway address: vpn1.nscc-gz.cn
Enter IPSec ID for vpn1.nscc-gz.cn: hillstone
Enter IPSec secret for hillstone@vpn1.nscc-gz.cn:
Enter username for vpn1.nscc-gz.cn: cygene_sydu_1
Enter password for cygene_sydu_1@vpn1.nscc-gz.cn:
Connect Banner:
| Welcome to StoneOS
VPNC started in background (pid: 28346)...
向天河二号上传数据:
scp -P 5566 -i 系统账号.id -r /原文件所在路径 系统账号@172.16.22.42:/天河二号上存储路径
从天河二号上下载数据:
scp -P 5566 -i 系统账号.id -r 系统账号@172.16.22.42:/天河二号上文件所在路径
---------------------------------------------------------------------------这是分割线-------------------------------------------------------
回到之前的问题,为什么我明明装了这个库,但是编译的时候就是找不到这个库呢
看了一篇帖子,讲的很详细,但是实践了一下发现并没有解决,
帖子在这里 https://blog.csdn.net/ubuntulover/article/details/6978305
网友评论