When upgrading from ruby 1.9.3 to ruby 2.0 on linux (at least 12.04) you get an unexpected prompt.
rdoc's executable "rdoc" conflicts with /path/bin/rdoc
Overwrite the executable? [yN]
It works fine to overwrite it manually but I'm looking for a way that my scripts will auto reply yes without halting.
Just found this issue on rubygems from a year ago. I'm using gem install
in a script so I think I can somewhat easily add yes | gem install
Edit:
Tried yes | gem install rdoc
but it fails with:
ERROR: Error installing rdoc:
"rdoc" from rdoc conflicts with /usr/local/rubies/2.0.0-p0/bin/rdoc
You can prepend
yes |
yes just enters y over and over again, which gets piped to to standard input.
(thanks @adamdunson)
--force
worked for me:
gem install --force rdoc
Disclaimer: this is not what --force
is for, and I don't know why yes |
doesn't work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With