Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8137203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:01:40+00:00 2026-06-06T11:01:40+00:00

I have a prolog script and runs without any problems on Windows with swi-prolog,

  • 0

I have a prolog script and runs without any problems on Windows with swi-prolog,
but when I run the script on Linux there is a error related to test suite:

ERROR: /home/test_suite.pl:12:
catch/3: Undefined procedure: begin_tests/1

Where

:- begin_tests(reason).

indicates the beginning of test set in file test_suite.pl.
If I run the script excluding test_suite.pl file then the script runs without any problems.

Have no idea why Unix does not understand begin (begin_tests/1) and end (end_tests/1) of the test?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T11:01:41+00:00Added an answer on June 6, 2026 at 11:01 am

    Do you have the testing library installed on your pc? plunit does not come bundled with swi-prolog. Try the instructions here- http://onek.posterous.com/how-to-build-plunit

    If that is installed, did you include the testing library?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have set up and installed both interprolog and swi prolog on my linux
I have a very weird problem with PROLOG. I have used it before, but
I have a source file, openpage.pl, where I call use_module/1 to import SWI-Prolog's http_open/3:
I'm diving into the world of prolog headfirst but I seem to have hit
I have the following prolog code: equiAngularTriangle(T) :- equiLateralTriangle(T). equiLateralTriangle(T) :- equiAngularTriangle(T). Is there
I have this code in Prolog: dynamic(player_at/1). player_at(house). goto(X) :- retract(player_at(house)), assert(player_at(X)). But I
I'm trying to get SWI-prolog and C talking to each other. I have some
For example in Problems I have Content is not allowed in prolog. How to
Have a curiosity related to Prolog predicate control. Supposedly I have a predicate f(A,X)
Using SWI-Prolog's listing predicate (or SICStus' predicate in its list library), we have: lists:subtract([],

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.