diff --git a/pkg/cmd/roachtest/tests/ruby_pg.go b/pkg/cmd/roachtest/tests/ruby_pg.go index 0c22355c8f1f..6924e8d7c05c 100644 --- a/pkg/cmd/roachtest/tests/ruby_pg.go +++ b/pkg/cmd/roachtest/tests/ruby_pg.go @@ -86,6 +86,7 @@ func registerRubyPG(r registry.Registry) { "install ruby 3.1.2", `mkdir -p ruby-install && \ curl -fsSL https://github.com/postmodern/ruby-install/archive/v0.8.3.tar.gz | tar --strip-components=1 -C ruby-install -xz && \ + sudo rm -rf /usr/local/bin/* && \ sudo make -C ruby-install install && \ sudo ruby-install --system ruby 3.1.2 && \ sudo gem update --system`,