swipl-ld command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
swipl-ld: command not found
or when using sudo you get the following error message
sudo: swipl-ld: command not found
Solutions to swipl-ld: command not found
How To Fix swipl-ld: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu swipl-ld is provided by swi-prolog-core package.
swi-prolog-core is:
SWI-Prolog is a fast and powerful ISO/Edinburgh-style Prolog compiler with a rich set of built-in predicates. It offers a fast, robust and small environment which enables substantial applications to be developed with it.
SWI-Prolog additionally offers:
- A powerful module system
- Garbage collection
- Unicode character set handling
- Unbounted integer and rational number arithmetic
- Multithreading support
- A powerful C/C++ interface
- GNU Readline interface
This package contains a working SWI-Prolog core system.
To fix this problem, we can install more using the command below.
sudo apt-get -y install swi-prolog-core
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install swi-prolog-core.
sudo apt -y install swi-prolog-core
Or if you have aptitude installed you can use the following command.
sudo aptitude install swi-prolog-core
Summary
In this tutorial we learn how to fix swipl-ld command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.