我正在使用Ubuntu 24.04.2 LTS
并尝试编译TeXpresso:
akira@akira:~/texpresso$ make texpresso-tonic
make -f Makefile.tectonic tectonic
make[1]: Entering directory '/home/akira/texpresso'
cd tectonic && cargo build --release --features external-harfbuzz
error: package `home v0.5.11` cannot be built because it requires rustc 1.81 or newer, while the currently active rustc version is 1.75.0
Either upgrade to rustc 1.81 or newer, or use
cargo update [email protected] --precise ver
where `ver` is the latest version of `home` supporting rustc 1.75.0
make[1]: *** [Makefile.tectonic:11: tectonic] Error 101
make[1]: Leaving directory '/home/akira/texpresso'
make: *** [Makefile:55: texpresso-tonic] Error 2
因此,我必须更新rustc 1.81
。我试过了,rustup update stable
但无济于事
akira@akira:~/texpresso$ rustup update stable
Command 'rustup' not found, but can be installed with:
sudo snap install rustup # version 1.27.1, or
sudo apt install rustup # version 1.26.0-3
See 'snap info rustup' for additional versions.
akira@akira:~/texpresso$ which rustc
/usr/bin/rustc
您能解释一下如何更新rustc
我的系统吗?