# Installing

**URL:** https://swi-prolog.discourse.group/c/installing/8.md

[Latest](https://swi-prolog.discourse.group/latest.md) · [Categories](https://swi-prolog.discourse.group/categories.md) · [Tags](https://swi-prolog.discourse.group/tags.md)

---

## [About the Installing category](https://swi-prolog.discourse.group/t/about-the-installing-category/33)

<div class="topic-metadata">

**Author:** [@jan](https://swi-prolog.discourse.group/u/jan)\
**Replies:** 0

</div>

Discuss problems installing SWI-Prolog.

---

## [Errors and a hang rebuilding](https://swi-prolog.discourse.group/t/errors-and-a-hang-rebuilding/9719)

<div class="topic-metadata">

**Author:** [@mike.elston](https://swi-prolog.discourse.group/u/mike.elston)\
**Replies:** 3\
**Last updated:** [July 4, 2026, 8:52am UTC](https://swi-prolog.discourse.group/t/errors-and-a-hang-rebuilding/9719 "2026-07-04T08:52:17Z")

</div>

Hi Jan I routinely rebuild from source of Ubuntu without problems but today errors and a hang. Regards Mike PS Really sorry to hear of your health challenges. I hope you are putting your recovery ahead of swipl. Di…

---

## [Pack installer does not check installed packs for dependencies?](https://swi-prolog.discourse.group/t/pack-installer-does-not-check-installed-packs-for-dependencies/9707)

<div class="topic-metadata">

**Author:** [@nicos](https://swi-prolog.discourse.group/u/nicos)\
**Replies:** 2\
**Last updated:** [July 1, 2026, 8:36am UTC](https://swi-prolog.discourse.group/t/pack-installer-does-not-check-installed-packs-for-dependencies/9707 "2026-07-01T08:36:55Z")

</div>

I think I posted before about this issue in the forum. Hopefully, the following is a more complete report. Behaviour: I am trying to install bio\_db (4.8) which in its pack.pl includes: “requires(lib)”. I have latest …

---

## [CANCELED: Problem installing janus\_swi for SWI 10.0.2](https://swi-prolog.discourse.group/t/canceled-problem-installing-janus-swi-for-swi-10-0-2/9629)

<div class="topic-metadata">

**Author:** [@rpgoldman](https://swi-prolog.discourse.group/u/rpgoldman)\
**Replies:** 1\
**Last updated:** [May 18, 2026, 5:55pm UTC](https://swi-prolog.discourse.group/t/canceled-problem-installing-janus-swi-for-swi-10-0-2/9629 "2026-05-18T17:55:37Z")

</div>

On MacOS 15.7.4 with SWI 10.0.2 from brew. I am building a python virtual environment based on poetry (I am not sure this is relevant). The project file pulls JANUS SWI from git: "janus-swi @ git+https://github.com/SW…

---

## [Upgrade from 9.2.9 to 10.0.2 missing "system resources"](https://swi-prolog.discourse.group/t/upgrade-from-9-2-9-to-10-0-2-missing-system-resources/9583)

<div class="topic-metadata">

**Author:** [@DewayneG](https://swi-prolog.discourse.group/u/DewayneG)\
**Replies:** 5\
**Last updated:** [May 2, 2026, 7:15am UTC](https://swi-prolog.discourse.group/t/upgrade-from-9-2-9-to-10-0-2-missing-system-resources/9583 "2026-05-02T07:15:06Z")

</div>

I’m struggling to upgrade swipl 9.2.9 to 10.0.2 on FreeBSD 14.3. After a successful build and installation of the package, when I try to run swipl via CLI only (without GUI or X, which is how I normally use swipl). # sw…

---

## [Integrating a shared library in a module](https://swi-prolog.discourse.group/t/integrating-a-shared-library-in-a-module/9560)

<div class="topic-metadata">

**Author:** [@BenEngbers](https://swi-prolog.discourse.group/u/BenEngbers)\
**Replies:** 7\
**Last updated:** [April 1, 2026, 3:12pm UTC](https://swi-prolog.discourse.group/t/integrating-a-shared-library-in-a-module/9560 "2026-04-01T15:12:13Z")

</div>

Hi, It took a few years, but the C++ client I developed for Basex is finally available. The source code for the shared library can be downloaded from GitHub - BenEngbers/libBasexCpp: C++ client for BaseX · GitHub or via…

---

## [I can't install swi-prolog-x from the official ppa](https://swi-prolog.discourse.group/t/i-cant-install-swi-prolog-x-from-the-official-ppa/9532)

<div class="topic-metadata">

**Author:** [@kotenok2000](https://swi-prolog.discourse.group/u/kotenok2000)\
**Replies:** 1\
**Last updated:** [February 25, 2026, 8:52am UTC](https://swi-prolog.discourse.group/t/i-cant-install-swi-prolog-x-from-the-official-ppa/9532 "2026-02-25T08:52:06Z")

</div>

I have installed swi-prolog-nox 10.0.1-1-g18f431324-nobleppa2, but swi-prolog-x is still 9.2.9-3-g36d9cca02-nobleppa2 i get this: The following packages have unmet dependencies: swi-prolog-x : Depends: swi-prolog-nox …

---

## [Unable to modify PATH during installation](https://swi-prolog.discourse.group/t/unable-to-modify-path-during-installation/934)

<div class="topic-metadata">

**Author:** [@nbassili](https://swi-prolog.discourse.group/u/nbassili)\
**Replies:** 8\
**Last updated:** [January 30, 2026, 9:26pm UTC](https://swi-prolog.discourse.group/t/unable-to-modify-path-during-installation/934 "2026-01-30T21:26:41Z")

</div>

Hi, Trying to install SWI-Prolog for Windows 8.0.3 (64-bit) and I select to modify the PATH variable for all users. I get the error message: “Warning! PATH too long installer unable to modify PATH!” The installation i…

---

## [CMake Error at CMakeLists.txt:7 (project)](https://swi-prolog.discourse.group/t/cmake-error-at-cmakelists-txt-7-project/9394)

<div class="topic-metadata">

**Author:** [@BenEngbers](https://swi-prolog.discourse.group/u/BenEngbers)\
**Replies:** 6\
**Last updated:** [November 20, 2025, 10:43am UTC](https://swi-prolog.discourse.group/t/cmake-error-at-cmakelists-txt-7-project/9394 "2025-11-20T10:43:41Z")

</div>

Last year I have been very busy with other activities, hence I didn’t have much time to continue with my Prolog/C++ project. Hopefully the next future will be more quiet so I can pickup programmig again. I recently boug…

---

## [Can't build on Ubuntu](https://swi-prolog.discourse.group/t/cant-build-on-ubuntu/9257)

<div class="topic-metadata">

**Author:** [@CarlosLang](https://swi-prolog.discourse.group/u/CarlosLang)\
**Replies:** 6\
**Last updated:** [September 9, 2025, 9:40am UTC](https://swi-prolog.discourse.group/t/cant-build-on-ubuntu/9257 "2025-09-09T09:40:42Z")

</div>

Right after cloning the latest swipl-devel repo, following CMAKE.md, I did cd swipl-devel mkdir build cd build cmake -G Ninja .. Which produced the following error messages CMake Error: CMake was unabl…

---

## [Problem with pack\_install](https://swi-prolog.discourse.group/t/problem-with-pack-install/9239)

<div class="topic-metadata">

**Author:** [@friguzzi](https://swi-prolog.discourse.group/u/friguzzi)\
**Replies:** 1\
**Last updated:** [August 30, 2025, 9:07am UTC](https://swi-prolog.discourse.group/t/problem-with-pack-install/9239 "2025-08-30T09:07:42Z")

</div>

Hi, while trying to install a pack on windows with the latest nightly build I got this error: Welcome to SWI-Prolog (threaded, 64 bits, version 9.3.28-30-gf0150b98a) SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This i…

---

## [Building swipl on MacOS 15.5 (arm64)](https://swi-prolog.discourse.group/t/building-swipl-on-macos-15-5-arm64/9115)

<div class="topic-metadata">

**Author:** [@nvetrini](https://swi-prolog.discourse.group/u/nvetrini)\
**Replies:** 5\
**Last updated:** [July 23, 2025, 1:49pm UTC](https://swi-prolog.discourse.group/t/building-swipl-on-macos-15-5-arm64/9115 "2025-07-23T13:49:18Z")

</div>

Hi, I’m currently trying to build a PGO version of swipl of a macOS 15.5 arm-based system. My original aim was to build a custom configuration of swipl, but since I encountered an error I tried going back to building th…

---

## [Are Linux static builds no longer supported by 9.3.25?](https://swi-prolog.discourse.group/t/are-linux-static-builds-no-longer-supported-by-9-3-25/9100)

<div class="topic-metadata">

**Author:** [@alanbur](https://swi-prolog.discourse.group/u/alanbur)\
**Replies:** 5\
**Last updated:** [July 16, 2025, 10:12am UTC](https://swi-prolog.discourse.group/t/are-linux-static-builds-no-longer-supported-by-9-3-25/9100 "2025-07-16T10:12:38Z")

</div>

If I try to build with -DSWIPL\_STATIC\_LIB=ON -DSTATIC\_EXTENSIONS=ON the first problem is that -DCMAKE\_BUILD\_TYPE=PGO doesn’t work, but even if I switch to -DCMAKE\_BUILD\_TYPE=Release the build blows up: \[382/2559\] Buildi…

---

## [Janus and Conda](https://swi-prolog.discourse.group/t/janus-and-conda/7775)

<div class="topic-metadata">

**Author:** [@friguzzi](https://swi-prolog.discourse.group/u/friguzzi)\
**Replies:** 13\
**Last updated:** [June 3, 2025, 1:41pm UTC](https://swi-prolog.discourse.group/t/janus-and-conda/7775 "2025-06-03T13:41:30Z")

</div>

Hi all, I’m trying to install swipl in a conda environment so that it uses the python executable and packages from the environment. No luck yet. I tried the suggestions here https://www.swi-prolog.org/pldoc/man?secti…

---

## [Installing Sweeprolog plugin in Emacs](https://swi-prolog.discourse.group/t/installing-sweeprolog-plugin-in-emacs/8995)

<div class="topic-metadata">

**Author:** [@tinkersaur](https://swi-prolog.discourse.group/u/tinkersaur)\
**Replies:** 1\
**Last updated:** [May 12, 2025, 2:10am UTC](https://swi-prolog.discourse.group/t/installing-sweeprolog-plugin-in-emacs/8995 "2025-05-12T02:10:23Z")

</div>

I am new to Prolog, and I just joined swi-prolog.discourse.group. I am trying to install sweeprolog package for Emacs. I tried “M-x package-install RET sweeprolog RET” and I got “\[no-match\]”. And I tried “M-x package-…

---

## [Cmake with gcc does not recognise -quiet option / swipl 9.2.9](https://swi-prolog.discourse.group/t/cmake-with-gcc-does-not-recognise-quiet-option-swipl-9-2-9/8969)

<div class="topic-metadata">

**Author:** [@Steve20vt](https://swi-prolog.discourse.group/u/Steve20vt)\
**Replies:** 3\
**Last updated:** [April 30, 2025, 12:09pm UTC](https://swi-prolog.discourse.group/t/cmake-with-gcc-does-not-recognise-quiet-option-swipl-9-2-9/8969 "2025-04-30T12:09:08Z")

</div>

I have Amazon Linux and I’m trying to build swipl-9.2.9 from source, but the cmake package uses a -quiet option which is not supported by the GNU c/cpp compiler. CMake Error at /usr/share/cmake/Modules/CMakeTestCXXComp…

---

## [Error in install step building from source on Ubuntu](https://swi-prolog.discourse.group/t/error-in-install-step-building-from-source-on-ubuntu/8947)

<div class="topic-metadata">

**Author:** [@mike.elston](https://swi-prolog.discourse.group/u/mike.elston)\
**Replies:** 1\
**Last updated:** [April 18, 2025, 7:20am UTC](https://swi-prolog.discourse.group/t/error-in-install-step-building-from-source-on-ubuntu/8947 "2025-04-18T07:20:34Z")

</div>

Hi I am trying to (re)build from source on Ubuntu as per SWI-Prolog -- Installation on Linux, \*BSD (Unix) All was fine up until the final step (install): mike@middleton:~/swipl-devel/build$ ninja install \[40/41\] Inst…

---

## [Updating via Flatpak on Ubuntu 24.04](https://swi-prolog.discourse.group/t/updating-via-flatpak-on-ubuntu-24-04/7731)

<div class="topic-metadata">

**Author:** [@RobyGamboa](https://swi-prolog.discourse.group/u/RobyGamboa)\
**Replies:** 2\
**Last updated:** [August 26, 2024, 7:46am UTC](https://swi-prolog.discourse.group/t/updating-via-flatpak-on-ubuntu-24-04/7731 "2024-08-26T07:46:27Z")

</div>

First off, I’ve been using SWI Prolog on Ubuntu for about a decade now, and I think it’s amazing. That said, recently I switched to using Flatpak for my package management tool where at all possible, as I’ve found that i…

---

## [Best/easiest way to downgrade to version 8.4.3, on Linux Ubuntu 20.04](https://swi-prolog.discourse.group/t/best-easiest-way-to-downgrade-to-version-8-4-3-on-linux-ubuntu-20-04/5966)

<div class="topic-metadata">

**Author:** [@hakank](https://swi-prolog.discourse.group/u/hakank)\
**Replies:** 23\
**Last updated:** [August 17, 2024, 6:26am UTC](https://swi-prolog.discourse.group/t/best-easiest-way-to-downgrade-to-version-8-4-3-on-linux-ubuntu-20-04/5966 "2024-08-17T06:26:14Z")

</div>

Yesterday, the new stable PPA version (9.0.0) was released. That’s great, but this breaks Popper (GitHub - logic-and-learning-lab/Popper: Popper is an inductive logic programming (ILP) system.) which relies on the Python…

---

## ["Updating index for library" messages after ninja install](https://swi-prolog.discourse.group/t/updating-index-for-library-messages-after-ninja-install/7488)

<div class="topic-metadata">

**Author:** [@peter.ludemann](https://swi-prolog.discourse.group/u/peter.ludemann)\
**Replies:** 4\
**Last updated:** [June 3, 2024, 8:39am UTC](https://swi-prolog.discourse.group/t/updating-index-for-library-messages-after-ninja-install/7488 "2024-06-03T08:39:12Z")

</div>

After I run ninja install with cmake -DCMAKE\_INSTALL\_PREFIX=$HOME/.local and then run a test of one of my programs, I get this (some output removed for clarity; to trigger the “make”, I touched the source file): $ swipl…

---

## [Installing SWI-Prolog on Mac OS X with xpce support via homebrew](https://swi-prolog.discourse.group/t/installing-swi-prolog-on-mac-os-x-with-xpce-support-via-homebrew/7016)

<div class="topic-metadata">

**Author:** [@doublec](https://swi-prolog.discourse.group/u/doublec)\
**Replies:** 13\
**Last updated:** [May 12, 2024, 3:39pm UTC](https://swi-prolog.discourse.group/t/installing-swi-prolog-on-mac-os-x-with-xpce-support-via-homebrew/7016 "2024-05-12T15:39:18Z")

</div>

These are the steps I took to get a version of SWI-prolog built using homebrew with xpce support, so ‘edit’, etc works. Install XQuartz, the X11 server: brew install --cask xquartz Turn developer mode on so we can edi…

---

## [Installing janus on Google Colab](https://swi-prolog.discourse.group/t/installing-janus-on-google-colab/7443)

<div class="topic-metadata">

**Author:** [@Nema](https://swi-prolog.discourse.group/u/Nema)\
**Replies:** 2\
**Last updated:** [May 12, 2024, 3:22pm UTC](https://swi-prolog.discourse.group/t/installing-janus-on-google-colab/7443 "2024-05-12T15:22:34Z")

</div>

Hi everyone, I’m trying to install janus\_swi in Google Colab throught !pip install janus\_swi but I get the error: error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. …

---

## [Swi-prolog 9.2.2 fails http:proxy test on armv7](https://swi-prolog.discourse.group/t/swi-prolog-9-2-2-fails-http-proxy-test-on-armv7/7275)

<div class="topic-metadata">

**Author:** [@brebs](https://swi-prolog.discourse.group/u/brebs)\
**Replies:** 6\
**Last updated:** [March 11, 2024, 8:38am UTC](https://swi-prolog.discourse.group/t/swi-prolog-9-2-2-fails-http-proxy-test-on-armv7/7275 "2024-03-11T08:38:02Z")

</div>

Hi, swi-prolog 9.2.2 has 1 test failure, with armv7, on Alpine Linux: 45/82 Test #52: http:proxy .......................\*\*\*Failed 1.39 sec % \[10/13\] proxy:Request URL..ections go via HTTP .. \*\*FAILED (0.031 sec) ERR…

---

## [Error in building with ninja](https://swi-prolog.discourse.group/t/error-in-building-with-ninja/7151)

<div class="topic-metadata">

**Author:** [@marios101](https://swi-prolog.discourse.group/u/marios101)\
**Replies:** 6\
**Last updated:** [January 8, 2024, 11:06am UTC](https://swi-prolog.discourse.group/t/error-in-building-with-ninja/7151 "2024-01-08T11:06:28Z")

</div>

$ ninja \[1/301\] Linking CXX static library src/libswipl.a \[2/301\] Generating qrc\_swipl-win.cpp \[3/301\] Linking CXX executable src/swipl FAILED: src/swipl : && /usr/bin/c++ -O3 -DNDEBUG src/CMakeFiles/swipl.dir/pl-m…

---

## [Cmake test program triggers Windows Defender](https://swi-prolog.discourse.group/t/cmake-test-program-triggers-windows-defender/7097)

<div class="topic-metadata">

**Author:** [@mgondan1](https://swi-prolog.discourse.group/u/mgondan1)\
**Replies:** 2\
**Last updated:** [December 22, 2023, 3:14pm UTC](https://swi-prolog.discourse.group/t/cmake-test-program-triggers-windows-defender/7097 "2023-12-22T15:14:03Z")

</div>

MSYS2, RTools etc. I get a (false positive) threat alert from Windows Defender when running cmake from MSYS2. The point at which it fails is very simple stuff from CheckFloatingPointFormat.cmake. The script is basically…

---

## [Sweep-module.so undefined symbol: PL\_version\_info](https://swi-prolog.discourse.group/t/sweep-module-so-undefined-symbol-pl-version-info/5842)

<div class="topic-metadata">

**Author:** [@joseph-vidal-rosset](https://swi-prolog.discourse.group/u/joseph-vidal-rosset)\
**Replies:** 30\
**Last updated:** [July 9, 2023, 6:52pm UTC](https://swi-prolog.discourse.group/t/sweep-module-so-undefined-symbol-pl-version-info/5842 "2023-07-09T18:52:13Z")

</div>

Loading sweep-module entails this message error: Loading /usr/local/lib/swipl/lib/x86\_64-linux/sweep-module.so (module)… Loading /usr/local/lib/swipl/lib/x86\_64-linux/sweep-module.so (module)…done emacs: symbol lookup…

---

## [FreeBSD installation](https://swi-prolog.discourse.group/t/freebsd-installation/6467)

<div class="topic-metadata">

**Author:** [@DewayneG](https://swi-prolog.discourse.group/u/DewayneG)\
**Replies:** 8\
**Last updated:** [April 18, 2023, 9:29pm UTC](https://swi-prolog.discourse.group/t/freebsd-installation/6467 "2023-04-18T21:29:19Z")

</div>

A general topic for future updates :slight\_smile: The changes for better c11 thread use in swipl 9.0.4 (stable) failed to link on FreeBSD12.4 with the error: Undefined symbol “cnd\_init” Adding to LDFLAGS -lstdthreads…

---

## [Apple M1 can now be compiled with gcc-mp-12](https://swi-prolog.discourse.group/t/apple-m1-can-now-be-compiled-with-gcc-mp-12/6335)

<div class="topic-metadata">

**Author:** [@jan](https://swi-prolog.discourse.group/u/jan)\
**Replies:** 18\
**Last updated:** [March 9, 2023, 6:24pm UTC](https://swi-prolog.discourse.group/t/apple-m1-can-now-be-compiled-with-gcc-mp-12/6335 "2023-03-09T18:24:00Z")

</div>

After updating to Apple Ventura 12.2.1, Clang 14.0, updating Macports and installing gcc12 from macports as gcc-mp-12, it now builds and runs SWI-Prolog on the M1. Earlier versions raised quite a couple of issues in the…

---

## [How to brew install swi-prolog 8.4.3 when 9.0.0 is out](https://swi-prolog.discourse.group/t/how-to-brew-install-swi-prolog-8-4-3-when-9-0-0-is-out/5973)

<div class="topic-metadata">

**Author:** [@AmrSol](https://swi-prolog.discourse.group/u/AmrSol)\
**Replies:** 16\
**Last updated:** [February 27, 2023, 3:05pm UTC](https://swi-prolog.discourse.group/t/how-to-brew-install-swi-prolog-8-4-3-when-9-0-0-is-out/5973 "2023-02-27T15:05:54Z")

</div>

I am having a lot of trouble installing the previous version of swi-prolog. For some reason, updating to 9.0.0 does not work with my codebase which uses pyswip. Could someone kindly help? =)

---

## [Compilation Error (pre-C99 compilers)](https://swi-prolog.discourse.group/t/compilation-error-pre-c99-compilers/3835)

<div class="topic-metadata">

**Author:** [@damiazz94](https://swi-prolog.discourse.group/u/damiazz94)\
**Replies:** 10\
**Last updated:** [February 7, 2023, 8:13am UTC](https://swi-prolog.discourse.group/t/compilation-error-pre-c99-compilers/3835 "2023-02-07T08:13:51Z")

</div>

Hi, i’m trying to compile SWI from source. However, i get the follogin error (that could be easily fixed…) using make: /home/dazzolin/swipl-devel/src/os/pl-utf8.c: In function ‘\_PL\_\_utf8\_code\_point’: /home/dazzolin/sw…

[Next page](https://swi-prolog.discourse.group/c/installing/8.md?page=1)
