tce-load -i compiletc tcl8.6-dev wget https://prdownloads.sourceforge.net/expect/expect5.45.4.tar.gz cd expect5.45.4 cp configure configure.orig sed 's:/usr/local/bin:/bin:' configure.orig > configure edit tclConfig.sh TCL_BUILD_LIB_SPEC='-L/mnt/sdb1/lamp32-14/build/tcl8.6.13/unix -ltcl8.6' TCL_BUILD_LIB_SPEC='-L/usr/local/lib -ltcl8.6' link generic and unix from tcl source CC="gcc -flto -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti " ./configure --prefix=/usr/local --disable-static --localstatedir=/var --with-tcl=/usr/local/lib --with-tclinclude=/usr/local/include find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; make [0m 6.51s] sudo make SCRIPTS="" install sudo ln -svf expect5.45.4/libexpect5.45.4.so /usr/local/lib