1、选择需要编译库的位数
pacman -Syuu make mingw-w64-i686-gcc tar wget
cd ~
wget -O tcl-release.tar.gz https://github.com/tcltk/tcl/archive/release.tar.gz
tar xvf tcl-release.tar.gz
cd tcl-release/win/
./configure --enable-threads --prefix=/c/tcltk/
make
make install
cd ~
wget -O tk-release.tar.gz https://github.com/tcltk/tk/archive/release.tar.gz
tar xvf tk-release.tar.gz
cd tk-release/win/
./configure --prefix=/c/tcltk/ --with-tcl=../../tcl-release/win/
make
make install
C:盘找到对应头文件和库
官网教程: