You have 2 ruby installs (one in /opt and one in /lib) and you are
installing gems into one install but then running rake from the other
one. You could either get rid of one of the installs or make sure that
your /opt ruby has rake installed and that $PATH is such that ruby/
rake/gem are all picked from the same ruby install.
Solution was simple, once I found it. Change the bang line in the
rake.rb, found via 'which rake' to point to the ruby version that
houses the gems. Now things work.
Put differently, now its not broken. The breakage came as a result of
Rails using the $PATH variable when installing gems, not when it runs
rake. So, yes, rails is broken in this case – this underdocumented
behaviour arose not out of misconfiguration, but the normal use of the
$PATH producing a non-functional behaviour.
Next time, feel free to provide an actual answer, or refrain from
answering if the best contribution is limited to patronizing snark.
BTW, are you wearing shoes these days? Don't want to hurt your feet
when you're Morris Dancing Ze'ev. Or should I call you Lord Marnen of
Wolfhurst?
Colin, I naturally did send Frederick Cheung (hope I have the name
right) thanks directly, although his answer did not actually solve the
problem, and reiterated advice that I also found on (IIRC)
stackoverflow. He did clue me in to checking the locations of ruby,
rake and gems, and I found another clue on another site, where a
similar problem was documented. Of course, I thanked that person
profusely. I think that's pretty much adequate, and if anyone here had
solved the problem, of course I would have thanked them. I understand
quite clearly how these exchanges work.
The point of my last post was that one respondent seemed more focussed
on topics irrelevant to my question, made remarks that were
gratuitously judgmental, and what he contributed was unhelpful to
others with a similar problem. Signal to noise is important, is it
not?
Other than that – and with no desire to extend this uneccesarily –
what point of etiquette did I miss, in your opinion?