kermit使用中遇到openssl的问题

在工作中,突然串口工具kermit不能使用了,打印如下信息.
git@test-OptiPlex-9010:~$ sudo kermit
[sudo] password for git:
?OpenSSL libraries do not match required version:
. C-Kermit built with OpenSSL 1.0.0e 6 Sep 2011
. Version found OpenSSL 1.0.1 14 Mar 2012
OpenSSL versions prior to 1.0.0 must be the same.
Set LD_LIBRARY_PATH for OpenSSL 1.0.0e 6 Sep 2011.
Or rebuild C-Kermit from source on this computer to make versions agree.
C-Kermit makefile target: linux+krb5+openssl
Or if that is what you did then try to find out why
the program loader (image activator) is choosing a
different OpenSSL library than the one specified in the build.
All SSL/TLS features disabled.
C-Kermit 9.0.302 OPEN SOURCE:, 20 Aug 2011, for Linux+SSL+KRB5 (64-bit)
Copyright (C) 1985, 2011,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/home/git/) C-Kermit>c
Connecting to /dev/ttyUSB0, speed 115200
Escape character: Ctrl-\ (ASCII 28, FS): enabled
Type the escape character followed by C to get back,
or followed by ? to see other options.**
一.openssl下载编译安装全过程
一开始发现:OpenSSL libraries do not match required version:
. C-Kermit built with OpenSSL 1.0.0e 6 Sep 2011可能openssl的版本太高,
通过命令检查:openssl version 1.0.1 14 Mar 2012
于是网上下载一个 版本1.0.0e 的源码6 Sep 2011
下载地址:http://www.openssl.org/source/ 下一个新版本的OpenSSL,版本是:openssl-1.0.0e.tar.gz
解压:tar -xzf openssl-openssl-1.0.0e.tar.gz
编译安装步骤:
[root@csqtest openssl-1.0.0]# ./config –prefix=/usr/local/openssl
[root@csqtest openssl-1.0.0]# make
[root@csqtest openssl-1.0.0]# make test
[root@csqtest openssl-1.0.0]# make install
二.配置系统环境
只是进行上述步骤,系统信息是没有更新为新安装的 packages,需要进行进一步的配置.
# cd /usr/local
# ln -s openssl ssl
在/etc/ld.so.conf文件的最后面,添加如下内容:

/usr/local/openssl/lib
#ldconfig
最后注意添加openssl环境变量:
在etc/的profile的最后一行,添加:
export OPENSSL=/usr/local/openssl/bin
export PATH= OPENSSL: PATH: HOME/bin.bashrcexportPATH=/usr/local/ssl/bin: PATH
如果不加信息的话,系统将找不到他的位置和信息.
[root@localhost /]# cd /usr/local
[root@localhost local]# ldd /usr/local/openssl/bin/openssl
linux-vdso.so.1 => (0x00007fff3bc73000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fc5385d7000)
libc.so.6 => /lib64/libc.so.6 (0x00007fc538279000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc5387db000)
# which openssl
/usr/local/openssl/bin/openssl
查看版本:
openssl version
OpenSSL 1.0.0e 6 Sep 2011
另外,附上ckermit 的配置信息.
set line /dev/ttyUSB1
set speed 115200
set carrier-watch off
set handshake none
set flow-control none
robust
set file type bin
set file name lit
set rec pack 1000
set send pack 1000
set window 5
如果出现以下错误信息,有可能是串口配置有问题,要么就是串口工具已经打开过,等等.
(/home/git/) C-Kermit>c
Sorry, you must SET LINE or SET HOST first
对于升级或者安装老版本工具等问题,安装完后,需要将路径写道系统配置文件,否则一些依赖的工具或者库文件会找不到他的地址和位置.
另外,附上一个比较全的关于openssl的链接:

http://leung4080.github.io/linux/2013/08/07/OpenSSL-OpenSSH-%E5%8D%87%E7%BA%A7%E9%85%8D%E7%BD%AE/

你可能感兴趣的:(OpenSSL,kermit)