can't find package wapp
(1) By anonymous on 2023-04-12 08:15:58 [source]
I recently installed the tablelist package by: a) putting its tar.gz in /usr/lib/tcltk and running sudo -zxf tablelist6.21.tar.gz and package require tablist just worked I put wapp.tcl in the same directory and package require wapp didn't. It said...can't find package. I changed the permissions to reflect tablelist.tcl...No good. I dowloaded the tar.gz and ran the above sudo -zxf...no such z... I did it manually...no good I tried to make it....some lib 8.7 missing...I'm running tcl 8.6 from Mint repos Intuitively, anything DRH produces is worth taking seriously so where am I going wrong. Any help much appreciated.
(2) By D. Richard Hipp (drh) on 2023-04-12 10:42:16 in reply to 1 [link] [source]
The way I run Wapp on all my servers is to compile the wapptclsh binary and put that binary where the webserver can find it. Then I put
#!/usr/bin/wapptclsh
As the first line of the script. The wapptclsh binary is a tclsh with Wapp built-in, so the "package require" just works.
Probably there are better ways to do this, but that is what works for me.