Tcl: readline functionality

From FVue
Jump to: navigation, search


When in tclsh, I want to use readline features like command line editing, history browsing and command completion.


Package for tclsh
Enhanced Tk Console: tkcon
GUI console, last full release on 20070609: v2.4, 2004-07-24



eltclsh is giving me error: Internal Server Error.

Trying tclreadline.


Installing `eltclsh' on Ubuntu, the short version:

sudo apt-get install build-essential tcl8.4-dev tk8.4-dev libedit-dev 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 file
sudo apt-get install tcl8.4-dev
    # To prevent configure error: ./configure: line 20724: / 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



Why is keyboard entry in Tcl so crude:

So I should try eltclsh? 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 not found (fatal)
Please use --with-tcl to specify a valid path to your file

Installed tcl-devel-8.4.11. Fixes error. Next configure error:

checking for tcl library... /usr/lib/
./configure: line 21722: / 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.


Found a tcl readline package.

Installed YaST - tcllib; it's not there.

Installed YaST - tclx; it's not there.


blog comments powered by Disqus