# Linux 22.04, wanting graphical user interface

**URL:** https://swi-prolog.discourse.group/t/linux-22-04-wanting-graphical-user-interface/6992
**Category:** PlDoc
**Tags:** how-to
**Created:** [November 23, 2023, 12:21pm UTC](https://swi-prolog.discourse.group/t/linux-22-04-wanting-graphical-user-interface/6992 "2023-11-23T12:21:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![nobleg](https://avatars.discourse-cdn.com/v4/letter/n/b3f665/32.png) [@nobleg](https://swi-prolog.discourse.group/u/nobleg)
#### Post date: [November 23, 2023, 12:21pm UTC](https://swi-prolog.discourse.group/t/linux-22-04-wanting-graphical-user-interface/6992/1 "2023-11-23T12:21:25Z")

</div>

on ubuntu 2204 hi im , prolog 9.1.18

wanted deve version so used snap install.

start from commandline as prolog  
other names dont work swi-prolog etc

pce does not work

Also use\_library( pce ) which loads  
but does not work

(while in command line version)

HOWEVER running gtrace, i do get the windows setup - its ok in the standard release (but i want janus work) …

i Also saw on the linux command line the command  
–pce=true but that failed to help

Any Ideas folks  
i have a feeling its a simple user errot ☹

---

<div class="post-metadata">

### Author: ![AlexeyKosarchuk](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/alexeykosarchuk/32/4466_2.png) [@AlexeyKosarchuk](https://swi-prolog.discourse.group/u/AlexeyKosarchuk)
#### Post date: [November 23, 2023, 1:15pm UTC](https://swi-prolog.discourse.group/t/linux-22-04-wanting-graphical-user-interface/6992/2 "2023-11-23T13:15:13Z")

</div>

I’ve built prolog on Ubunty myself, it’s quite straightforward process.  
Got swipl-win and graphical debugger working.  
[https://www.swi-prolog.org/build/](https://www.swi-prolog.org/build/)

---

<div class="post-metadata">

### Author: ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)
#### Post date: [November 23, 2023, 1:21pm UTC](https://swi-prolog.discourse.group/t/linux-22-04-wanting-graphical-user-interface/6992/3 "2023-11-23T13:21:51Z")

</div>

> [@nobleg](#):
>
> Also use\_library( pce ) which loads

Kind of weird. use\_library does not exist. This works

```
?- use_module(library(pce)).

```

After which this dumps some information

```
?- send(@pce, info).

```

This also works

```
?- send(new(window), open).

```

This all with the 9.1.19 snap image.

> [@nobleg](#):
>
> (but i want janus work) …

That is an issue as the snap doesn’t have Python and (thus) also no Janus. I guess one solution is to build a snap that includes both Prolog and Python, but that feels a bit like overkill. I’m also not sure snap would be able to deal with installing Python packages and without additional packages it is quite useless. In due time Conda is likely to provide SWI-Prolog. As is, Docker is an option (but Docker is not ideal for GUI applications). Another option is to install the PPA. That should work fine, although the latest version is 9.1.18 rather than 9.1.19 due to issues with the PPA services. Installing from source is a little more work to setup, but shouldn’t take more than five minutes and after that you never face version issues anymore 🙂

---

<div class="post-metadata">

### Author: ![nobleg](https://avatars.discourse-cdn.com/v4/letter/n/b3f665/32.png) [@nobleg](https://swi-prolog.discourse.group/u/nobleg)
#### Post date: [November 23, 2023, 1:45pm UTC](https://swi-prolog.discourse.group/t/linux-22-04-wanting-graphical-user-interface/6992/4 "2023-11-23T13:45:03Z")

</div>

sorry i did use use\_module( library(pce) ) sorry not 100% today!

and yes windowing system is there. i was thinking like the main session being in a window with the optsions (like windows) but u can use the linux command line version

however - Yes i will build fomr source simpler 🙂 from 9.1.19

as usual thanks guys

---

<div class="post-metadata">

### Author: ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)
#### Post date: [November 23, 2023, 1:57pm UTC](https://swi-prolog.discourse.group/t/linux-22-04-wanting-graphical-user-interface/6992/5 "2023-11-23T13:57:54Z")

</div>

> [@nobleg](#):
>
> i was thinking like the main session being in a window with the optsions (like windows)

Start (from the snap)

```
> swi-prolog.swipl-win

```

If you build from source and want swipl-win, you need to install the Qt development files. I think that is mentioned in the build instructions.
