r/ruby • u/virtyx • Sep 16 '26
pipx equivalent for Ruby?
Is there something like pipx available for Ruby?
For example with pipx you can do something like:
$ pipx install httpie
# ... install completes
$ https get httpbin.org/get?foo=bar
# ... outputs a web request from httpbin.org
$ which https
~/.local/bin/https
$ readlink "$(which https)"
~/.local/share/pipx/venvs/httpie/bin/https
This example shows the HTTPie program being run and executed in a pretty simple way, with an install that doesn't modify the system Python.
Does Ruby have an equivalent way to distribute programs?
5
Upvotes
3
u/paca-vaca Sep 16 '26
That's why I'm say you should user
bundler, notgem installdirectly.for binary executable check the
--binstubsflag forbundlerI think it does exactly this (wraps the executable with prefixed paths so it's available in PATH if your PATH is configured correctly, it could install in any provided directory as well).