Installation of Expect patch -Np1 -i ../expect-&expect-version;.patch ./configure --prefix=/stage1 --with-tcl=/stage1/lib --with-x=no make make test make install You can remove the tcl&tcl-version; directory now as well as the expect directory.