ruby: create lib paths in post-install

Closes #28343.
Closes #28466.
Closes #28467.
swi-prolog: optional libarchive support

Also prevent finding a MacPorts installed libarchive.

Closes #28666.
swi-prolog: add 6.6.4 bottle.