在linux命令行下安裝飛信機器人
下載軟件包,軟件包來源51cto,下載庫文件
51CTO下載-fetion.tar 51CTO下載-linuxso_20101113
1.加壓飛信軟件包到/usr/local/fetion下
tar xf 51CTO下載-fetion.tar -C /usr/local/fetion
2.在window下解壓庫文件包,復制到/usr/local/fetion
執行/usr/local/fetion/fetion
中間會出現依賴的庫文件有問題,
問題及解決辦法如下:
問題一
/usr/local/fetion/fetion: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
解決方法:
yum -y install libstdc++.so.6
問題二
/usr/local/fetion/fetion: error while loading shared libraries: libgssapi_krb5.so.2: cannot open shared object file: No such file or directory
解決辦法
yum install krb5-libs
問題三
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
解決辦法:
yum -y install libz.so.1 --setopt=protected_multilib=false
運行方式及結果
./fetion --mobile=發送人手機號 --pwd=123456 --to=收信人手機號 --msg-utf8="who"
SIP-C/4.0 280 Send SMS OK
T: sip:[email protected];p=12122
I: 2
Q: 1 M
L: 112
D: Sat, 28 Sep 2013 07:25:03 GMT
XI: DA5B9514DEC61A0A5E4784347ADB6DE2
本文出自 “linux” 博客,請務必保留此出處http://weihong.blog.51cto.com/6655355/1303091