How to fix bundler executable conflicts in the `techAPJ/install-rails` script?

I run the installation script from the «Beginners Guide to Install Discourse on Ubuntu for Development» @techAPJ’s article in the latest stock (unmodified, without any extra packages previously installed) version of Ubuntu Desktop (16.04.3 LTS):

bash <(wget -qO-

The script leads to the conflict:

Installing Bundler …

Fetching: bundler-1.16.1.gem (100%)
bundler’s executable “bundle” conflicts with /home/dfediuk/.rbenv/versions/2.4.2/bin/bundle
Overwrite the executable? [yN]

Should I answer y, N, or maybe the installation is already in a wrong state?

It has been a couple years since I got a “update bundler” prompt. I figured “latest is best” and upgraded bundler.

Unfortunely, at that time, some of what Discourse needed to be in bundler was not in the upgraded bundler. I had to start over and ignore that with a no

But “linux” last got a commit a month ago, so I would guess it should be OK to upgrade bundler. Worse case, you will need to start over. Else wait for techAPJ to reply.


Answer y, it works fine.


Yes, it solves the problem.