I just tried to run a ruby script on a FreeBSD box I hadn't used in a while, and got "ruby: Command not found." So I figured I just hadn't previously installed it. Went to /usr/ports/lang/ruby22 and did a make install clean. That told me that ruby22 is already installed.
So then I did a pkg version -v, which showed me that it was in fact installed. I then thought maybe it had a bin directory that had for some reason been removed from $PATH, or something like that, so I did a make deinstall and then a make install. It claimed to have installed just fine, but still I get the "ruby: Command not found" error.
Investigating further, it did install a /usr/local/bin/ruby22 executable, and I guess I can just make a symbolic link to it, but... is something going wrong here? Is there perhaps some install step I haven't taken which would let FreeBSD know that I really, really do want to use this particular version of Ruby as the machine's default "ruby"?
In case it matters, this is 10.1 RELEASE amd64, and the ports tree is completely up to date, as are all installed packages.