Linuxbrew / brew

:beer::penguin: The Homebrew package manager for Linux
https://linuxbrew.sh
BSD 2-Clause "Simplified" License
2.65k stars 235 forks source link

Vendored Ruby install fails with unhelpful message on i686 #929

Closed lmergner closed 5 years ago

lmergner commented 5 years ago

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

To help us debug your issue please explain:

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


- What you expected to happen
Expected at least a better error message with instructions on how to install a suitable version of ruby or at least a more helpful "Sorry, this arch is not supported.
- Step-by-step reproduction instructions (by running `brew install` commands)
iMichka commented 5 years ago

Hi. Please always fill out the issue template.

We do not support 32 bit platforms for the time being. See https://docs.brew.sh/Linuxbrew.

Linuxbrew does not currently support 32-bit x86 platforms. It would be possible for Linuxbrew to work on 32-bit x86 platforms with some effort. An interested and dedicated person could maintain a fork of Homebrew to develop support for 32-bit x86.

lmergner commented 5 years ago

Yes I understand the architecture is not supported. Could you consider a more helpful error message in such cases?

iMichka commented 5 years ago

I think yes. We could bail out directly in this script in case we hit a 32 bit case: https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh

@sjackman What do you think?

lmergner commented 5 years ago

I'm not a ruby person so I don't know if I can install a version that linuxbrew supports and indicate that with an env var. If that's possible, it would be nice to document that on the vendor install failure.

I suspect it must be a pain to support error messages like this for every case, but it'd be a bit help to know why the shell one-liner on the website failed.

Thanks.

sjackman commented 5 years ago

I've opened PR https://github.com/Linuxbrew/install/pull/46 to check the CPU type. This PR also addresses the issue that ARMv7 would fail to download the appropriate bottle for ARMv6.

sjackman commented 5 years ago

I'm not a ruby person so I don't know if I can install a version that linuxbrew supports and indicate that with an env var. If that's possible, it would be nice to document that on the vendor install failure.

As long as you understand that you're in uncharted territory, I'm happy to point you in the right direction. Install a Ruby version ≥ 2.3.7 (ideally exactly version 2.3.7), add it to your PATH, and then run the installation one liner. Feel free to comment here if you run into any more trouble.