在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:231860905@fetion.com.cn;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
查看本栏目更多精彩内容:http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/