2005-04-14

安装mysqltcl

今天Thomas让我安装mysqltcl(Tcl Mysql Interface ),一个用于在tcl下编程连接MySQL数据库的接口,最新的版本为3.01,下载地址为:http://www.xdobry.de

操作系统为SuSe 9.2,tcl版本为8.49,MySQL原来的版本为4.0.21。下载了一个mysqltcl
的一个rpm包,安装时报告缺少libmysqlclient.so.14和要求大于8.3版本的tcl。接着去mysql的主页下载了当前新版本
(4.1.11)的mysql
server,client,devel和shared四个rpm包,安装完毕后再次安装mysqltcl的rpm包时,不再报告缺少
libmysqlclient.so.14文件,可使仍然找不到tcl,尽管我已经安装了tcl
8.49。于是下载了mysqltcl的源代码,从源代码安装:
germa83alt:~/mysqltcl-3.01 #./configure  --enable-shared
--enable-threads --with-mysql-include=/usr/include/mysql 
--with-mysql-lib=/usr/lib/mysql
germa83alt:~/mysqltcl-3.01 #make;make install

安装完成后运行mysqltcl源代码包中提供的test.tcl文件,测试连接MySQL得到下列结果:

germa83alt mysqltcl-3.01/tests# tclsh test.tcl
tclsh test.tcl
---- connect-1.1 start
---- connect-1.2 start
---- connect-1.3 start
---- connect-1.4 start
---- connect-1.5 start
---- connect-1.6 start
---- connect-1.7 start
---- connect-1.8 start
---- baseinfo-1.0 start
---- select-1.0 start
---- use-1.0 start
---- select-1.1 start
---- map-1.0 start
---- map-1.1 start
---- receive-1.0 start
---- receive-1.1 start
---- receive-1.2 start
---- query-1.0 start
---- query-1.1 start
---- status-1.0 start
---- insert-1.0 start
---- nullvalue-1.0 start
---- schema-1.0 start
---- info-1.0 start
---- state-1.0 start
---- errorhandling-1.0 start
---- errorhandling-1.1 start
---- errorhandling-1.2 start
---- errorhandling-1.3 start
---- errorhandling-1.4 start
---- sel-1.2 start
---- sel-1.3 start
---- handle-1.0 start
---- handle-1.1 start
---- handle-1.2 start
---- handle-1.2 start
---- handle-1.3 start
---- handle-1.4 start
---- handle-1.5 start
---- escape-1.0 start
---- ping-1.0 start
---- changeuser-1.0 start
---- changeuser-1.1 start
---- interpreter-1.0 start
test.tcl:       Total   44      Passed  44      Skipped 0       Failed  0
End of test

没有评论:

发表评论