Difference between revisions of "Tcl: readline functionality"
(→20060523) |
m (Text replace - "{{PageFooter}}" to " {{PageFooter}}") |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | = Problem = | + | [[Category: Fixed problems]] |
+ | [[Category: Tcl]] | ||
+ | ==Problem== | ||
− | When in <tt>tclsh</tt>, I want to use <tt>readline</tt> features. | + | When in <tt>tclsh</tt>, I want to use <tt>readline</tt> features like command line editing, history browsing and command completion. |
− | = | + | ==Solutions== |
− | + | ;[http://tclreadline.sourceforge.net/ tclreadline] | |
+ | :Package for tclsh | ||
− | + | ;[http://softs.laas.fr/openrobots/tools/eltclsh.php eltclsh] | |
− | + | ;[http://tkcon.sourceforge.net/ Enhanced Tk Console: tkcon] | |
+ | :GUI console, last full release on 20070609: v2.4, 2004-07-24 | ||
− | + | ==Journal== | |
− | == 20060523 == | + | ===20090213=== |
+ | |||
+ | eltclsh is giving me error: Internal Server Error. | ||
+ | |||
+ | Trying tclreadline. | ||
+ | |||
+ | ===20070609=== | ||
+ | |||
+ | Installing `eltclsh' on Ubuntu, the short version: | ||
+ | |||
+ | <nowiki> | ||
+ | sudo apt-get install build-essential tcl8.4-dev tk8.4-dev libedit-dev checkinstall | ||
+ | ./configure | ||
+ | make | ||
+ | checkinstall</nowiki> | ||
+ | |||
+ | Installing `eltclsh' on Ubuntu, the long version: | ||
+ | |||
+ | <nowiki> | ||
+ | # To prevent configure error: C compiler cannot create executables | ||
+ | sudo apt-get install build-essential | ||
+ | # To prevent configure error: Please use --with-tcl to specify a valid path to your tclConfig.sh file | ||
+ | sudo apt-get install tcl8.4-dev | ||
+ | # To prevent configure error: ./configure: line 20724: /tkConfig.sh: No such file or directory | ||
+ | sudo apt-get install tk8.4-dev | ||
+ | # To prevent configure error: checking for libedit headers... not found (fatal) | ||
+ | sudo apt-get install libedit-dev | ||
+ | # To generate a removable Debian package instead of a direct install | ||
+ | sudo apt-get install checkinstall | ||
+ | |||
+ | ./configure | ||
+ | make | ||
+ | checkinstall</nowiki> | ||
+ | |||
+ | ===20060523=== | ||
[http://wiki.tcl.tk/503 Why is keyboard entry in Tcl so crude:] | [http://wiki.tcl.tk/503 Why is keyboard entry in Tcl so crude:] | ||
Line 31: | Line 69: | ||
checking for tclConfig.sh... not found (fatal) | checking for tclConfig.sh... not found (fatal) | ||
Please use --with-tcl to specify a valid path to your tclConfig.sh file | Please use --with-tcl to specify a valid path to your tclConfig.sh file | ||
+ | |||
+ | Installed tcl-devel-8.4.11. Fixes error. Next configure error: | ||
+ | |||
+ | checking for tcl library... /usr/lib/libtcl8.4.so | ||
+ | ./configure: line 21722: /tkConfig.sh: No such file or directory | ||
+ | |||
+ | Installed tk-devel-8.4.11. Fixes error. Make error: | ||
+ | |||
+ | In file included from elwish.c:36: | ||
+ | /usr/include/tk.h:96:23: error: X11/Xlib.h: No such file or directory | ||
+ | |||
+ | Installed xorg-x11-devel-6.8.2. Fixes error. | ||
+ | |||
+ | ===20060402=== | ||
+ | |||
+ | Found a [http://tclreadline.sourceforge.net/tclreadline.html#sect5 tcl readline package]. | ||
+ | |||
+ | Installed YaST - tcllib; it's not there. | ||
+ | |||
+ | Installed YaST - tclx; it's not there. | ||
+ | |||
+ | {{PageFooter}} |
Latest revision as of 11:09, 28 August 2011
Contents
Problem
When in tclsh, I want to use readline features like command line editing, history browsing and command completion.
Solutions
- tclreadline
- Package for tclsh
- Enhanced Tk Console: tkcon
- GUI console, last full release on 20070609: v2.4, 2004-07-24
Journal
20090213
eltclsh is giving me error: Internal Server Error.
Trying tclreadline.
20070609
Installing `eltclsh' on Ubuntu, the short version:
sudo apt-get install build-essential tcl8.4-dev tk8.4-dev libedit-dev checkinstall ./configure make checkinstall
Installing `eltclsh' on Ubuntu, the long version:
# To prevent configure error: C compiler cannot create executables sudo apt-get install build-essential # To prevent configure error: Please use --with-tcl to specify a valid path to your tclConfig.sh file sudo apt-get install tcl8.4-dev # To prevent configure error: ./configure: line 20724: /tkConfig.sh: No such file or directory sudo apt-get install tk8.4-dev # To prevent configure error: checking for libedit headers... not found (fatal) sudo apt-get install libedit-dev # To generate a removable Debian package instead of a direct install sudo apt-get install checkinstall ./configure make checkinstall
20060523
Why is keyboard entry in Tcl so crude:
So I should try eltclsh? Freshmeat.net lags behind with version 1.5. Main site provides version 1.6.
Trying to install editline.
configure: error: no relevant library found containing tgetent
Installed termcap-2.0.8. Still error.
Installed ncurses-devel-5.4. Ah, this fixes the error.
Trying to install eltclsh-1.6. Configure error:
checking for tclConfig.sh... not found (fatal) Please use --with-tcl to specify a valid path to your tclConfig.sh file
Installed tcl-devel-8.4.11. Fixes error. Next configure error:
checking for tcl library... /usr/lib/libtcl8.4.so ./configure: line 21722: /tkConfig.sh: No such file or directory
Installed tk-devel-8.4.11. Fixes error. Make error:
In file included from elwish.c:36: /usr/include/tk.h:96:23: error: X11/Xlib.h: No such file or directory
Installed xorg-x11-devel-6.8.2. Fixes error.
20060402
Found a tcl readline package.
Installed YaST - tcllib; it's not there.
Installed YaST - tclx; it's not there.