Closed tmak2002 closed 7 months ago
I cannot reproduce the issue, rustc --version
works fine on my aarch64 device.
Title and error message mentions rustup. Are you running rustc or some (non-termux-compiled) rustup?
Did you ever tried to use rustup? It is not going to work as Rust officially doesn't provide rustc
binaries compatible with Android OS. -- Termux isn't standard distribution: https://wiki.termux.com/wiki/Differences_from_Linux
Check your PATH
and your home directory to ensure that no rustup
parts hijacking Termux rustc
executable, remove all parts of rustup
.
On Termux Rust compiler can be installed only using pkg install rust
.
If you need some std components, look what is available by running pkg search rust
or pkg search rust-std
.
I get the same problem. I install it using pkg install rust and it seems to be all fine. But then it complains there's no default set. Nothing I've tried had worked (like setting environment variables or creating a config.toml file in .cargo/bin to point to the libraries that are installed).
I have reinstalled Termux since then it works.
Did that the day before I got the message. So didn't work for me apparently, but maybe could try again..
On Thu, May 9, 2024 at 6:08 PM Torben Kahnert | トルベン カネルト < @.***> wrote:
I have reinstalled Termux since then it works.
— Reply to this email directly, view it on GitHub https://github.com/termux/termux-packages/issues/19565#issuecomment-2102969352, or unsubscribe https://github.com/notifications/unsubscribe-auth/AESE4AJBJTZPD7HDXNED563ZBONQNAVCNFSM6AAAAABFFVHRRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBSHE3DSMZVGI . You are receiving this because you commented.Message ID: @.***>
Did you ever tried to use rustup? It is not going to work as Rust officially doesn't provide
rustc
binaries compatible with Android OS. -- _Termux isn't standard distribution: https://wiki.termux.com/wiki/Differences_from_Linux_Check your
PATH
and your home directory to ensure that norustup
parts hijacking Termuxrustc
executable, remove all parts ofrustup
.
This was exactly it for me.
I got this issue (even though it was working previously) and when I saw this comment it reminded me that I had tried to use rustup
at one point. I checked my $PATH
variable and found that the first path in the variable was /data/data/com.termux/files/home/.cargo/bin
, once I removed that rustc
commands worked without issue. 👍
Problem description
~ $ rustc --version error: rustup could not choose a version of rustc to run, because one wasn't specified explicitly, and no default is configured. help: run 'rustup default stable' to download the latest stable release of Rust and set it as your default toolchain.
What steps will reproduce the bug?
What is the expected behavior?
No response
System information
termux-info: