Quantcast
Channel: Active questions tagged rustc - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 37

Anchor build says "cannot be built because it requires rustc 1.68.0 or newer" but I have a newer rustc installed

$
0
0

When I run anchor build or anchor test:

error: package `solana-program v1.16.3` cannot be built because it requires rustc 1.68.0 or newer, while the currently active rustc version is 1.62.0-dev. 

But checking rustc returns:

% rustc --versionrustc 1.75.0 (82e1608df 2023-12-21)

How can I fix the error? Why is anchor not using the rustc I have installed?


Viewing all articles
Browse latest Browse all 37

Trending Articles