Note:
If you need rustc and cargo to learn rust you might not need rustup. However it is required for most projects. So follow this.
Install Rust (macos)
curl –proto ‘=https’ –tlsv1.2 -sSf https://sh.rustup.rs | sh
The install (see above) is as easy as the official site (https://www.rust-lang.org/tools/install) says. So why don't I like it?
Well I know I would have to:
- examine the script and try to figure out what it was doing
- write a note to myself about some directory paths
- review above note to uninstall
- leave behind a bunch of left over files
Instructions
macport is the package manager I use.
download and install macports from macports.org
A how to for homebrew users.
xcode-select --install
sudo port install rustsudo port install cargo
cd /opt/local/bin
./rustc --version
rustc 1.77.1 (7cf61ebde 2024-03-27) (built from a source tarball)
Success you have installed rust!
macos 12.7 Monterey macbook pro
Part 2: rustup; why
No comments:
Post a Comment