juliaup icon indicating copy to clipboard operation
juliaup copied to clipboard

[Feature request] Enable cargo install

Open lucifer1004 opened this issue 2 years ago • 5 comments

I think enabling cargo install juliaup is a good option from cross platforms, by using a single tool for various operating systems.

lucifer1004 avatar Mar 16 '22 03:03 lucifer1004

cargo install rustup

fanninpm avatar Mar 22 '22 23:03 fanninpm

One problem is that this won’t give us a launcher named Julia. I also kind of think that we should keep the fact that this is written in Rust an implementation detail. If we get a really good static compile for Julia one day, we might move things away from Rust.

Is there a specific scenario this would solve that isn’t working right now?

davidanthoff avatar Mar 23 '22 05:03 davidanthoff

This did help when I tried to install juliaup on a cluster that has an old glibc (2.17). I tried brew and it did pour the bottle, however, the bottled version could not work because it required glibc>=2.18. Also, I could not use brew to compile from the source because brew would use its own bottled cargo and that also could not work with an old glibc. Trying to compile rust from the source using brew was even more annoying.

In the end, I used my locally installed rust and installed juliaup with cargo install --git .... And it worked smoothly.

Considering the recent Winget issue (#258), I think enabling cargo install juliaup can help solve the cross-platform problem, at least at the moment. When we have a stable Julia-based static compiler, we could make the switch then.

lucifer1004 avatar Mar 23 '22 07:03 lucifer1004

@lucifer1004 Like I said, cargo install rustup.

fanninpm avatar Mar 23 '22 15:03 fanninpm

I'm generally not opposed to this, if we can find a way that cargo install juliaup adds julia to the PATH.

davidanthoff avatar Jul 17 '22 19:07 davidanthoff