postmodern / ruby-install

Installs Ruby, JRuby, TruffleRuby, or mruby
MIT License
1.9k stars 252 forks source link

Detect which tar compression(s) are supported #378

Closed postmodern closed 3 years ago

postmodern commented 3 years ago

Detect whether the system has the bunzip2 or unxz commands. This could allow ruby-install to fallback to a supported ruby archive format.

postmodern commented 3 years ago

Unfortunately, macOS vendored unxz into their tar binary starting in macOS 10.9. This makes it rather difficult to detect xz support. Easier to just assume xz support on macOS (and FreeBSD) and make xz-utils a dependency for other Linux package managers.