Skip to content
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

Gzip error when trying to install from source with OTP version #61

Open
jswny opened this issue Apr 6, 2019 · 1 comment
Open

Gzip error when trying to install from source with OTP version #61

jswny opened this issue Apr 6, 2019 · 1 comment

Comments

@jswny
Copy link

jswny commented Apr 6, 2019

I can install Elixir from source like so with no issue: asdf install elixir ref:v1.8.1. However, when I try to install it from source with a specific OTP version, I get an error:

$asdf install elixir ref:v1.8.1-otp-21                                                                                                                                
 => Checking whether specified Elixir release/reference exists...
==> Downloading v1.8.1-otp-21 to /tmp/elixir_build_W70U1J/elixir-ref-v1.8.1-otp-21-src.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   133    0   133    0     0    636      0 --:--:-- --:--:-- --:--:--   633
100    15  100    15    0     0      7      0  0:00:02  0:00:01  0:00:01    90
==> Making the release

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

I already have OTP 21 installed via ASDF, so maybe I am misunderstanding compiling Elixir with the right OTP version and I don't need to specify that when compiling from source since it will use the OTP version I have installed but I am not sure about that. I assume I would have to specify the OTP version in the install command since it can download a file with the Elixir source for that specific OTP version.

Please correct me if I'm doing something wrong here. Thanks for all of your work on this great plugin!

@Stratus3D
Copy link
Member

When you use the ref:<version> syntax the value must be a Git reference in the repository. In this case no such ref exists.

We should improve error logging here and print a readable message when the reference is not found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants