Termux安装GCC编译器
本文最后更新于 2025年3月23日
在Termux环境中安装GNU/GCC工具链有下列几种方法:
tur
pkg update
pkg install -y tur-repo
pkg install gcc-default-14cctools
pkg update
pkg install -y coreutils gnupgcurl -sLo $PREFIX/etc/apt/trusted.gpg.d/cctools.asc --create-dirs https://cctools.info/public.keyecho "deb [trusted=yes] https://cctools.info termux cctools" | tee $PREFIX/etc/apt/sources.list.d/cctools.listpkg update
pkg install gcc-cctools ndk-sysroot-cctools-api-26-$(uname -m)pointless
pkg update
pkg install -y coreutils gnupgcurl -sLo $PREFIX/etc/apt/trusted.gpg.d/pointless.gpg --create-dirs https://its-pointless.github.io/pointless.gpgecho "deb [trusted=yes] https://its-pointless.github.io/files/24 termux extras" | tee $PREFIX/etc/apt/sources.list.d/pointless.listpkg update
pkg install -y gcc-11参考
https://github.com/termux-user-repository/tur https://android.stackexchange.com/questions/182130
Termux安装GCC编译器
https://blog.tqfx.org/posts/use-gcc-compiler-in-termux/