Closed hsmyers closed 3 years ago
It looks like something is wrong with your Rust installation to me. I don't know what it is. I've never seen that error before, and I'm not a Windows user. This definitely isn't a problem with ripgrep.
Please also make sure you're using the latest version of Rust stable.
A simple Google search seems to confirm that your installation is FUBAR:
First I did a choco install rust which executed without error. then I did the following:
mkdir rust cd rust git clone git://github.com/BurntSushi/ripgrep cd ripgrep cargo build --release
which failed as previously shown in the second attempt to build.
So this problem is because of choco's error-free install?
On Fri, Apr 16, 2021 at 10:40 AM Andrew Gallant @.***> wrote:
A simple Google search seems to confirm that your installation is FUBAR:
- https://stackoverflow.com/questions/38041331/rust-compiler-cant-find-crate-for-std
- rust-lang/cargo#9149 https://github.com/rust-lang/cargo/issues/9149
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BurntSushi/ripgrep/issues/1851#issuecomment-821300095, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHE7PQVHYH4XLC46DJIB3DTJBR6DANCNFSM43B3ILHA .
I don't know. Try compiling some other Rust projects. If you get the same error, then it's probably an installation problem that you should report to whoever packages Rust for Choco. You might also consider using rustup instead.
Just did a choco uninstall rust followed by a rustup-init.exe https://win.rustup.rs/x86_64 and will try again. I'll let you know...
On Fri, Apr 16, 2021 at 10:55 AM Andrew Gallant @.***> wrote:
I don't know. Try compiling some other Rust projects. If you get the same error, then it's probably an installation problem that you should report to whoever packages Rust for Choco. You might also consider using rustup instead.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BurntSushi/ripgrep/issues/1851#issuecomment-821309187, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHE7PXKDSYQ4U2Y3CZSMATTJBTXZANCNFSM43B3ILHA .
C:\Users\hsmyers\rust\ripgrep>target\release\rg --version ripgrep 12.1.1 (rev 92286ad4d2) -SIMD -AVX (compiled) +SIMD +AVX (runtime)
This leads me to believe that the problem with the choco install was no toolchain selected? But rustup makes the connection with Visual C++ and all works as intended. You can point to this message chain as a response to similar issues. Thanks for your time and the info. Take care.
On Fri, Apr 16, 2021 at 11:08 AM Hugh S. Myers @.***> wrote:
Just did a choco uninstall rust followed by a rustup-init.exe https://win.rustup.rs/x86_64 and will try again. I'll let you know...
On Fri, Apr 16, 2021 at 10:55 AM Andrew Gallant @.***> wrote:
I don't know. Try compiling some other Rust projects. If you get the same error, then it's probably an installation problem that you should report to whoever packages Rust for Choco. You might also consider using rustup instead.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BurntSushi/ripgrep/issues/1851#issuecomment-821309187, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHE7PXKDSYQ4U2Y3CZSMATTJBTXZANCNFSM43B3ILHA .
Glad you got it figured out! Thanks for responding. Might be good to file a bug with Choco if you can. They might want to know that their installation is borked.
With that said, generally most folks just use rustup directly to build end user applications like ripgrep. Compilers maintained by distros like Choco are typically used to build Rust software shipped by that distro.
I'll look into it. I've mostly had luck with other problems that I've discovered. I don't yell or scream and that seems to work well when following up on questions and such. Of course, it helps that I've been doing this since 1975!
On Fri, Apr 16, 2021 at 11:36 AM Andrew Gallant @.***> wrote:
Glad you got it figured out! Thanks for responding. Might be good to file a bug with Choco if you can. They might want to know that their installation is borked.
With that said, generally most folks just use rustup directly to build end user applications like ripgrep. Compilers maintained by distros like Choco are typically used to build Rust software shipped by that distro.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BurntSushi/ripgrep/issues/1851#issuecomment-821330861, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHE7PQVYIZN4AIEGJVMKLTTJBYSJANCNFSM43B3ILHA .
What operating system are you using ripgrep on?
Microsoft Windows [Version 10.0.21359.1]
Describe your bug.
Both the Git based install and the cargo-based method fail because of multiple E0463 errors.
What do you think ripgrep should have done? Should have worked.