在测试一个小程序时需要用到csdk,测试机上装的是ids10,自带的csdk.以informix用户登陆到执行esql命令可以正常执行.
[informix@netsky ~]$ esql
Usage: esql [-e] [-thread] [-glu] [-db2] [esqlcargs] [-cc] [otherargs] [-o
outfile]
[-cp] [-onlycp] [-np] [-nup]
[-libs] esqlfile.ec [othersrc.c...] [otherobj.o...
但使用check_version csdk检查版本时发现竟然没发现csdk的版本!
[informix@netsky ~]$ check_version csdk
No record of previously installed versions of ClientSDK in /opt/informix
按照提示的意思:在/opt/informix (INFORMIXDIR)目录下没找到CSDK的以往版本信息..难道还得装以前版本??汗......
于是尝试强制安装了csdk 2.83uc3版本.完成后再执行check_version
[informix@netsky etc]$ check_version csdk
Currently installed version: 2.81.UC3
Previous latest version:
You have installed a newer version of ClientSDK over an older version
找到了当前版本信息,但原来的版本信息却没有....
再安装csdk 2.90.UC3版本..完成后再检查check_version
[informix@netsky etc]$ check_version csdk
Currently installed version: 2.90.UC3
Previous latest version:
You have installed a newer version of ClientSDK over an older version
再一次找到了当前版本信息,但原来的版本信息却没有....
这与预想的情况不符...为什么每次安装都会把上次的信息都清掉呢?~?
检查$INFORMIXDIR/etc/目录下的.lvers_csdk 文件,发现其内容为空.....
原来如此,往.lvers_csdk文件里加上2.90.UC3 再check_verion
[informix@netsky etc]$ check_version csdk
Currently installed version: 2.90.UC3
这下对了..
当然你可以修改.lvers_csdk文件的内容,比如改为 2.91.UC6,看看结果~
[informix@netsky etc]$ check_version csdk
Currently installed version: 2.90.UC3
Previous latest version: 2.91.UC6
You have installed an older version of ClientSDK over a newer version.
阅读(1463) | 评论(0) | 转发(0) |