tcltk安装package方法

来源:互联网 发布:手机淘宝晒图怎么删除 编辑:程序博客网 时间:2024/05/20 21:43

在tclsh中:

打开teacup.exe

% teacup.exeUsage: teacup.exe command arg...                  help       ... for morechild process exited abnormally% teacup.exe help    teacup.exe    is a tool to access package repositories        teacup.exe help cmds-by-group   Grouped list of commands provided by teacup        teacup.exe help commands        Alphabetical list of commands provided by teacup        teacup.exe help help            How to use help        teacup.exe help options         Describes the standard options        teacup.exe help queries         Describe the syntax of complex queries% teacup.exe help commends    The topic "commends" is not known.    The known topics are:        teacup.exe help cmds-by-group   Grouped list of commands provided by teacup        teacup.exe help commands        Alphabetical list of commands provided by teacup        teacup.exe help help            How to use help        teacup.exe help options         Describes the standard options        teacup.exe help queries         Describe the syntax of complex queries% teacup.exe help commands    commands -- Alphabetical list of commands provided by teacup    Use 'help <commandname>' to get detailed help for a command.    teacup.exe archive     Manage archives    teacup.exe cache       Manage cache settings    teacup.exe create      Create installation repository    teacup.exe default     Manage installation repository    teacup.exe delete      Delete installation repository    teacup.exe describe    Describe package found in an archive    teacup.exe get         Get archive file of package found in an archive    teacup.exe install     Get and install a package found in an archive or file    teacup.exe keys        List meta data keys found in the archives    teacup.exe link        Manage links between installation repositories and tcl shells    teacup.exe list        List packages found in the archives    teacup.exe log         Manage the log of installed/removed packages    teacup.exe profiles    Find and list profile packages found in the archives    teacup.exe proxy       Manage proxying    teacup.exe regenerate  Recreate broken toplevel pkgIndex.tcl files    teacup.exe remove      Remove installed packages    teacup.exe search      Search and list packages using complex queries    teacup.exe setup       Enable tcl shells to handle installation repositories    teacup.exe timeout     Manage timeout    teacup.exe update      Update local repository from the archives.    teacup.exe update-self Get newest revision of teacup.exe for the platform    teacup.exe version     Print version of teacup.exe    teacup.exe verify      Check a repository for problems.    teacup.exe who         Print description of teacup.exe% teacup.exe archive list  http://teapot.activestate.com% teapotUsage: teapot.EXE serve ?--cache? ?-header HEADERFILE? repodir ?port?       teapot.EXE version       teapot.EXE whochild process exited abnormally% teapot.exeUsage: teapot.exe serve ?--cache? ?-header HEADERFILE? repodir ?port?       teapot.exe version       teapot.exe whochild process exited abnormally% teacup.exe install tdbc::sqlite3Resolving tdbc::sqlite3 ... [package tdbc::sqlite3 1.0.2 tcl @ http://teapot.activestate.com]Resolving Tcl 8.6 -is package ... [package Tcl 8.6.4 _ ... Installed outside repository, probing dependencies]Resolving tdbc 1.0.2 -is package ... [package tdbc 1.0.2 _ ... Installed outside repository, probing dependencies]Retrieving package tdbc::sqlite3 1.0.2 tcl ...@ http://teapot.activestate.com ... OkInstalling into C:/Tcl/lib/teapotInstalling package tdbc::sqlite3 1.0.2 tcl% package require tdbc::sqlite31.0.2

继续安装mysql

运行报错如下信息:

couldn't load library "libmysql.dll.15": this library or a dependent library could not be found in library path

修改方法如下:

下载MySQL驱动程序

https://dev.mysql.com/downloads/connector/c/

点击下载mysql驱动文件

安装后从安装目录下拷贝文件

libmysql.dll 和 libmysql.lib 到 tcl\bin目录下

运行即可

% package require tdbc1.0.2% package require tdbc::sqlite31.0.2% package require tdbc::mysql1.0.2




原创粉丝点击