Thanks to the work of @LyzardKing there is now an official snap of SWI-Prolog available. Currently only in the beta and edge channel. Snaps provide an easy way for installing SWI-Prolog on a wide variety of Linux distributions.
Installing the snap
To install SWI-Prolog, simply run
snap install --beta swi-prolog
which provides two commands, the first being a console application and the second the Qt window version as developed by @CapelliC
You can get the usual command names from
snap alias swi-prolog.swipl swipl snap alias swi-prolog.swipl-win swipl-win
Snaps have advantages and disadvantages. It should be easy enough to find details about that. The snap is probably the most convenient way for the casual user who wants a fairly up-to-date version and doesn’t like to go through the build process.
There is a glidge in current snap infrastructure for handling the fontconfig library which is used by the xpce based IDE tools. You are a victim of if running
?- emacs. results in the error
?- emacs. [PCE fatal: @helvetica_roman_12/font: Xopen failed on @display/display in: <No exception goal> ]  M @helvetica_roman_12/font ->_xopen(@display/display)  M @helvetica_roman_12/font ->_xopen(@display/display) ...
This can be resolved by cleaning the fontconfig global cache. Doing so has no consequences except for the first application to use fontconfig starting slow.
sudo rm /var/cache/fontconfig/*
Please share your opinion/experience. If people are enthusiastic about this the snap based installation should get a prominent place on the download page.