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?