Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I asked this question in stackoverflow,no answer so I assumed no one knew, I might have a better chance here. I have an interest in playing and fussing with Prolog, I have installed the swi-prolog and added the repository, just in case anyone is interested on which commands I used:

sudo apt-add-repository ppa:swi-prolog/stable 
sudo apt-get update 
sudo apt-get install swi-prolog

How do I actually begin to write Prolog codes on my Linux machine? For my regular programming I use VIM to write/edit/debug and terminal to compile. Can I use vim to write Prolog? How do I compile or use the Prolog interpreter (I think that is what it is called)?

share|improve this question
You may want to look for prolog tutorials using google. There are some like csupomona.edu/~jrfisher/www/prolog_tutorial/pt_framer.html and learnprolognow.org . –  John Kirchner Dec 8 '13 at 1:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.