tcltk安装package方法

在tclsh中:

打开teacup.exe

% teacup.exe
Usage: teacup.exe command arg...
                  help
       ... for more
child 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
% teapot
Usage: teapot.EXE serve ?--cache? ?-header HEADERFILE? repodir ?port?
       teapot.EXE version
       teapot.EXE who
child process exited abnormally
% teapot.exe
Usage: teapot.exe serve ?--cache? ?-header HEADERFILE? repodir ?port?
       teapot.exe version
       teapot.exe who
child process exited abnormally
% teacup.exe install tdbc::sqlite3
Resolving 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 ... Ok

Installing into C:/Tcl/lib/teapot

Installing package tdbc::sqlite3 1.0.2 tcl
% package require tdbc::sqlite3
1.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 tdbc
1.0.2
% package require tdbc::sqlite3
1.0.2
% package require tdbc::mysql
1.0.2




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值