uncaught exception: error(existence_error(procedure,likes/0),friend/0) (Seven Languages)
问题 Currently working through the Seven Languages in Seven Weeks book, and am stuck on getting the first prolog examples to run. This concerns the same code piece as this question; however I believe my question is quite different. I have defined likes and friend as in the book; my friends.pl: likes(wallace, cheese). likes(grommit, cheese). likes(wendolene, sheep). friend(X, Y) :- \+(X = Y), likes(X, Z), likes(Y, Z). I am using gnu prolog (v1.4.5, on Ubuntu 18.10), and I can load the friends.pl