2016-04-06 30 views
0

Nasıl yüklendimysqltlc paketi?Paket bulunamadı mysqltcl - Bu paketi nasıl yüklerim?

[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$ 

Referans: http://wiki.tcl.tk/6051

+0

Google'ın biraz kullanımı, kaynağın [burada] olduğunu gösterir (https://github.com/xdobry/mysqltcl)… –

cevap

0

sayesinde evet yükleyerek paket tcl güzel yerden aldı. Bunun tcl için nasıl çalıştığını bilmiyordum. Java, mücevherleri varken JAR, maven, sarmaşık vb. Kullanır. tcl paketlerini yüklemek için daha iyi ya da farklı yol var IF (farklı bir makinede)

[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$ 

, bunu söyleyin lütfen.

İlgili konular