JuliaLang / juliaup

Julia installer and version multiplexer
MIT License
928 stars 81 forks source link

Fail to install with curl #934

Open ShuhuaGao opened 4 weeks ago

ShuhuaGao commented 4 weeks ago

With or without sudo, I have

shuhua@node01:~/downloads$ sudo curl -fsSL https://install.julialang.org | sh

info: downloading installer
curl: (23) Failure writing output to destination
juliaup: command failed: downloader https://julialang-s3.julialang.org/juliaup/bin/juliainstaller-1.14.8-x86_64-unknown-linux-musl /tmp/tmp.esqzfwitoQ/juliainstaller x86_64-unknown-linux-musl

Is there other way I can install juliaup?

Besides, I can download the link https://julialang-s3.julialang.org/juliaup/bin/juliainstaller-1.14.8-x86_64-unknown-linux-musl directly with firefox, but I don't know how to install juliainstaller-1.14.8-x86_64-unknown-linux-musl manually.

StefanKarpinski commented 4 weeks ago

Seems like maybe you are getting a temp directory that you cannot write to?

ShuhuaGao commented 4 weeks ago

Thanks for your suggestion. I checked it and can indeed create directory and files under /tmp manually without sudo. So it is not a privilege issue.

Besides, I just noticed from the error information that it tries to write /tmp/tmp.esqzfwitoQ/juliainstaller x86_64-unknown-linux-musl. Is the space between juliainstaller and x86 an error?

ShuhuaGao commented 4 weeks ago

I am not sure whether curl can write to /tmp or not on my system, a newly installed Ubuntu 22.04.

shuhua@node01:~/downloads$ which curl
/snap/bin/curl

But I managed to install juliaup manually as follows.

shuhua@node01:~/downloads$ curl -fsSL https://julialang-s3.julialang.org/juliaup/bin/juliainstaller-1.14.8-x86_64-unknow
n-linux-musl -o ./jlinstall

shuhua@node01:~/downloads$ chmod +x ./jlinstall

shuhua@node01:~/downloads$ ./jlinstall