racer icon indicating copy to clipboard operation
racer copied to clipboard

Does not install on Ubuntu

Open mabushey opened this issue 3 years ago • 1 comments

I have Rust installed the correct way via the OS:

$ dpkg -l | grep rust                                                                                                                                                                                                                 127 ↵ master 
ii  libstd-rust-1.43:amd64                                      1.43.0+dfsg1+llvm-1~exp1ubuntu1~20.04.1 amd64        Rust standard libraries
ii  libstd-rust-dev:amd64                                       1.43.0+dfsg1+llvm-1~exp1ubuntu1~20.04.1 amd64        Rust standard libraries - development files
ii  p11-kit-modules:amd64                                       0.23.20-1build1                         amd64        p11-glue proxy and trust modules
ii  rust-gdb                                                    1.43.0+dfsg1+llvm-1~exp1ubuntu1~20.04.1 all          Rust debugger (gdb)
ii  rustc                                                       1.43.0+dfsg1+llvm-1~exp1ubuntu1~20.04.1 amd64        Rust systems programming language

The docs infer I need to run rustc. I would be happy to that in a docker container, but I'm not trashing my OS... Is there any way to install this the Debian [correct] way on Ubuntu? I'm happy to copy the plugin into ~/.vim_runtime/my_plugins If I can figure out how to compile it.

mabushey avatar Aug 27 '20 20:08 mabushey

I'm 99% sure that this is because of:

https://github.com/racer-rust/racer/blob/a4bcf46c7a908eb53eeb69ec421c5ee44e879902/README.md#L16

And installing rust via apt/apt-get/dpkg doesn't get you nightly.

As long as you're on one of the most common Architecture/OS combos (Linux / x86_64, for example), https://rustup.rs will happily install nightly. Read the book here: https://rust-lang.github.io/rustup/ If you are on something else (aarch64, for example, your experience will likely vary....)

AFAIK, Rust kinda eschews distro package managers in favor of rustup... unlike other projects like MariaDB or MongoDB where you can add their repo to apt and install actual packages.

danieldjewell avatar Aug 28 '20 21:08 danieldjewell