'I can't run a simple prolog file ( .pl)

I have a problem with Swi-Prolog 8.5.11 for x86_64 - Arch Linux.

$ swipl example.pl           
ERROR: /usr/lib/swipl/swipl.rc:136: Initialization goal raised exception:
ERROR: source_sink `library(swi_hooks)' does not exist

How can I fix this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source