swipl-rc: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/swipl-rc - from package: swi-prolog-nox
/usr/lib/swi-prolog/bin/amd64/swipl-rc - from package: swi-prolog-nox

You may install the required package with command apt-get install {package}
Error in other languages:
swipl-rc: bevel nie gevind nie
swipl-rc: comandă negăsită
swipl-rc: comando não encontrado
swipl-rc: commande introuvable
swipl-rc: command not found
swipl-rc: käsku ei ole
swipl-rc: không tìm thấy lệnh
swipl-rc: komanda nerasta
swipl-rc: Kommando nicht gefunden.
swipl-rc: kommandot finns inte
swipl-rc: komut yok
swipl-rc: nie znaleziono polecenia
swipl-rc: níor aimsíodh an t-ordú
swipl-rc: no se encontró la orden
swipl-rc: no s'ha trobat l'ordre
swipl-rc: opdracht niet gevonden
swipl-rc: parancs nem található
swipl-rc: perintah tidak ditemukan
swipl-rc: príkaz nenájdený
swipl-rc: příkaz nenalezen
swipl-rc: команда не найдена
swipl-rc: командата не е открита
swipl-rc: 命令找不到
swipl-rc: コマンドが見つかりません