The First Computer Bug |
Geany |
Tcl/Tk |
Things went swimmingly up to a point. I managed to construct manually a few simple programs using Tcl/Tk, tapping the code by hand, copy-pasting bits and pieces from examples provided by other people. That all worked pretty well.
Then, after the aforementioned deliberation, I set out to install PAGE. The author of PAGE claims it rests on version 8.5.4 (or newer) of Tcl/Tk. The version installed on this box by the original Ubuntu installation is 8.5.11, so I should have been OK.
I installed PAGE with no significant error messages, I attempted to run it from a command prompt. It quit with a complaint (presumably from the Python runtime) that the program (i.e., PAGE) was attempting to use calls to Tcl/Tk version 8.6, the latest version... NOT 8.5.4, as advertised in the documentation. Thus entered the dark side of free software.
ActiveState, one of the major commercial software and support companies in the Tcl/Tk world, offers a prebuilt freebie version 8.6 package of Tcl/Tk, with no support. I can see the advantages of their doing so: programmers that grow up using the freebie version could very likely influence the subsequent purchase of commercial licenses by their employers or clients. Freebies are pretty much traditional in the Linux world, and the market of people who use them would be a good market to tap into.
I downloaded the Tcl/Tk 8.6 freebie package and attempted to install it... three times, using three different install tools. I got hundreds of error messages, which I could not redirect to a file (due to my ignorance, I'm sure). I ran a few of the handmade programs using 8.5.11 to make sure I hadn't destroyed that; apparently it's OK. But after an entire evening of my life spent on this project, I am back to square one. Even for a guy who used to do this stuff for a living, that's pretty frustrating.
And like Adm. "Amazing" Grace, I know how to curse!
You can redirect to a file from the command line using the > [greater than symbol]. You can store errors [stderr] or regular output [stdout].
ReplyDeletecommand stderr > file1
- takes the errors from the execution of 'command' and stores them in 'file1'.
without seeing the errors there's no way of telling what the problem may be, possibly a lib incompatibility, or permissions ... Dog knows.
Thanks, Bryan. In Ubuntu, the default shell is bash. In bash, you can redirect stderr by preceding it... not by > alone... but by &> .
Deleterunmyapp &> mytemp
I learned a lot this evening, and actually managed to get Tcl/Tk 8.6.0.0 installed and apparently working, though not yet hooked up to anything I need it for. Tomorrow (today, as I note the time), after four METROLift trips and a PT workout, I'm sure I'll be in great shape to push things a little bit further on the computer. %-}
I'm used to using & with the handle numbers, i.e.
Deletecommand &2> file vice command stderr > file, but not alone. Then I go back to a time when Unix was only available from AT&T.