2016-04-06 3 views
0

Как сделать Нагрузкиmysqltlc package?Не удается найти пакет mysqltcl - как установить этот пакет?

[email protected]:~/tcl$ 
[email protected]:~/tcl$ tclsh mysql.tcl 
can't find package mysqltcl 
    while executing 
"package require mysqltcl" 
    (file "mysql.tcl" line 1) 
[email protected]:~/tcl$ 
[email protected]:~/tcl$ cat mysql.tcl 
package require mysqltcl 
set m [mysqlconnect -user root -db mysql -password foobar] 
mysqluse $m mysql 
foreach res [mysqlsel $m {select host from user} -flatlist] { 
    puts $res 
} 
mysqlclose $m 
[email protected]:~/tcl$ 

Ссылка: http://wiki.tcl.tk/6051

+0

Немного использования Google указывает, что источник [здесь] (https://github.com/xdobry/mysqltcl) ... –

ответ

0

спасибо, да, установив пакет TCL поднял его красиво. Я не знал, как это работает для tcl. Java использует JAR, maven, плющ и т. Д., В то время как рубин имеет драгоценные камни ... и т. Д.

[email protected]:~/tcl$ 
[email protected]:~/tcl$ dpkg -s mysqltcl 
Package: mysqltcl 
Status: install ok installed 
Priority: optional 
Section: database 
Installed-Size: 114 
Maintainer: Ubuntu Developers <[email protected]> 
Architecture: amd64 
Version: 3.052-1 
Depends: libc6 (>= 2.4), libmysqlclient18 (>= 5.5.24+dfsg-1), tcl (>= 8.6.0-2) | tclsh 
Description: interface to the MySQL database for the Tcl language 
The mysqltcl package provides a Tcl interface to the MySQL database system. 
Within Tcl you've a range of Tcl commands and a global Tcl array available 
to access the database server. 
Written in C mysqltcl uses the official MySQL C-API so that almost all 
Tcl commands correspond to MySQL C-API functions. 
Original-Maintainer: Sven Hoexter <[email protected]> 
Homepage: http://www.xdobry.de/mysqltcl/ 
[email protected]:~/tcl$ 
[email protected]:~/tcl$ tclsh mysql.tcl 
% 
127.0.0.1 
::1 
localhost 
localhost 
tleilax 
[email protected]:~/tcl$ 

(на другой машине)

, если есть лучше или другой способ установить TCL пакетов, пожалуйста, так сказать.

Смежные вопросы