-
Notifications
You must be signed in to change notification settings - Fork 13.3k
brew install rust
takes 39 minutes
#39576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
As far as I can tell, it looks like it is building Rust from source, and building Rust from source takes a while. If you don't want to build Rust from source, then don't use homebrew to build Rust from source. Instead you should install Rust using rustup. |
The currently available Rust formula was updated three days ago and contains binary versions of Rust 1.15 for the last three versions of macOS. The formula for ripgrep contains |
If homebrew packages are wrong, bugs should be filed with those packages, or homebrew itself. I don't think there's anything actionable about this ticket, other than the usual "make Rust faster to compile" that we're working across in all fronts. @timotheecour if you have a specific issue here that's Rust's fault and can be improved, please let us know! Until then, I'm going to give this one a close. Thanks! |
@retep998 @killercup @steveklabnik thanks for answers, filed Homebrew/homebrew-core#9703 for one of the above points: Regardless of homebrew: Looking at threads of the form:
|
@timotheecour Rust's unit of compilation is the crate, unlike in C/C++ where each source file is a unit of compilation. Crates depend on each other much more than C/C++ source files do, so it is quite normal for a Rust build to be waiting for one or two specific crates before more stuff can be built. Rustbuild does by default use as many CPU cores as it can, it is just limited by interdependencies between crates |
@killercup Why is this "surprising"? ripgrep is written in rust. So it needs rust to build. |
@ilovezfs I assume One could assume that ripgrep requires a nightly compiler, but that would mean that there should be (a) a In fact, ripgrep itself offers an alternative brew formula with binaries compiled with rust nightly to enable those features: https://github.com/BurntSushi/ripgrep#installation |
|
Ah, thanks, @ilovezfs, that makes sense. (I love ZFS, too, btw.) Then, I must assume OP was not using a system for which pre-build binaries exist. |
@killercup Yeah ZFS is awesome :)
That is correct. OP is using a non-standard prefix (the standard prefix is /usr/local), and neither the ripgrep bottle nor the rust bottle are relocatable bottles, so source builds of both rust and ripgrep are triggered. If OP uses the standard prefix, /usr/local, then the ripgrep bottle would be poured and rust would not be installed at all. |
@ilovezfs |
@timotheecour right the standard prefix is different for Linuxbrew. I suggest you inquire about getting rust bottled for Linux here: https://github.com/Linuxbrew/homebrew-core/issues |
@ilovezfs https://github.com/Linuxbrew/homebrew-core/pull/1744#issuecomment-278893844 |
@timotheecour ah OK. Then we should continue this conversation on https://github.com/Linuxbrew/homebrew-core/pull/1744. |
I just ran into this issue after upgraing to Mojave. It seems that there is no pre-built binary for Mojave. Would be nice to add. |
O Segredo para instalar o brew em maquinas mais antigas (imac 2013 - 10.15) é ter muita paciência.. Formatei o hd fiz todas as atualizações e sem instalar nada comecei a instalar primeiro o brew quando chega no Rust ele ficou 128 minutes 29 seconds :) mas foi no total acho que levei umas 6 horas quase pra rodar tudo o segredo é não fechar e esquecer.. |
Waiting...
|
I let it stay overnight and it doesn't compile. `==> Upgrading rust ==> ./configure --prefix=/usr/local/Cellar/rust/1.70.0 --enable-vendor --set rust.jemalloc --rele ^C^C^C |
haha, wimps! (jk) I stuck with it and just spent 8h 30min installing rust (as dep of
phew! |
that seems to be the longest time of all homebrew packages IIRC
The text was updated successfully, but these errors were encountered: