ruby-install: ruby-install depends on xzcat, which is not available out of the box on all platforms

Description

I maintain a script that installs Ruby on a Mac. If Homebrew is not yet present on the machine, the script installs Homebrew, then installs chruby and ruby-install, then installs the latest Ruby with ruby-install. Up until the latest xzcat changes in 0.8.4, it was working perfectly. But now, on a machine that didn’t have Homebrew prior to running my script, the Ruby compilation fails with:

xzcat: command not found

Instead of assuming xzcat is in the PATH, would it be better to use the full path using the brew prefix, like $(brew --prefix)/xzcat?

cc @jmettraux

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 17 (8 by maintainers)

Commits related to this issue

Most upvoted comments

OK ruby-install 0.8.5 has now been tagged and ruby-install’s own copy of its homebrew formula has been updated. Hopefully, homebrew will automatically copy in the updated homebrew formula with the xz dependency.

We can add xz as a dependency to the homebrew formula.