Install TCL:

opkg update
opkg install tcl

Find out what installed:

opkg files tcl

Package tcl (8.5.8-1) is installed on root and has the following files:
nano /mnt/sda1/hello.tcl

puts {hello, world}

chmod 755 /mnt/sda1/hello.tcl


Error came out:

Can't find a usable init.tcl in the following directories:
    /usr/lib/tcl8.5 /usr/lib/tcl8.5 /lib/tcl8.5 /usr/library /library /tcl8.5.8/library /tcl8.5.8/library

Fix Error:

mkdir -p /usr/lib/tcl8.5
cd /usr/lib/tcl8.5
wget -O init.tcl --no-check-certificate

Run it again:

hello, world


Comments powered by CComment