how load mysqltlc package?
thufir@mordor:~/tcl$ thufir@mordor:~/tcl$ tclsh mysql.tcl can't find package mysqltcl while executing "package require mysqltcl" (file "mysql.tcl" line 1) thufir@mordor:~/tcl$ thufir@mordor:~/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 user} -flatlist] { puts $res } mysqlclose $m thufir@mordor:~/tcl$
reference: http://wiki.tcl.tk/6051
thanks, yes, installing package tcl picked nicely. didn't know how works tcl. java uses jar's, maven, ivy, etc, while ruby has gems...etc.
thufir@tleilax:~/tcl$ thufir@tleilax:~/tcl$ dpkg -s mysqltcl package: mysqltcl status: install ok installed priority: optional section: database installed-size: 114 maintainer: ubuntu developers <ubuntu-devel-discuss@lists.ubuntu.com> architecture: amd64 version: 3.052-1 depends: libc6 (>= 2.4), libmysqlclient18 (>= 5.5.24+dfsg-1), tcl (>= 8.6.0-2) | tclsh description: interface mysql database tcl language mysqltcl package provides tcl interface mysql database system. within tcl you've range of tcl commands , global tcl array available access database server. written in c mysqltcl uses official mysql c-api tcl commands correspond mysql c-api functions. original-maintainer: sven hoexter <hoexter@debian.org> homepage: http://www.xdobry.de/mysqltcl/ thufir@tleilax:~/tcl$ thufir@tleilax:~/tcl$ tclsh mysql.tcl % 127.0.0.1 ::1 localhost localhost tleilax thufir@tleilax:~/tcl$
(on different machine)
if there's better or different way install tcl packages, please so.
Comments
Post a Comment