Skip to content

Instantly share code, notes, and snippets.

@frankjmattia
Last active July 10, 2016 19:10
Show Gist options
  • Save frankjmattia/a085a3d99c30ab4da27e241fb9b08f3b to your computer and use it in GitHub Desktop.
Save frankjmattia/a085a3d99c30ab4da27e241fb9b08f3b to your computer and use it in GitHub Desktop.
How I got Rust to build on MacOS 10.12-beta-2

Clone the rust source someplace local.

$ git clone https://github.com/rust-lang/rust.git
$ cd rust

Then apply pull request #34686. I did it by hand because I don't know any better.

Edit src/stage0.txt to the latest nightly to work around issue #34674.

src/stage0.txt

rustc: beta-2016-07-10
rustc_key: 411fd48b
cargo: nightly-2016-07-05

Since I use homebrew, I put it where brew install rust --HEAD would put it:

$ ./configure --prefix=/usr/local/Cellar/rust/HEAD --disable-rpath --enable-clang --release-channel=nightly
$ make

Wait forever...

$ make install

Link homebrew rust.

brew link rust

Haven't gotten cargo working yet. Had a few promising leads but still not finding -lssl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment