Scryer Prolog distribution via pkgx #2841
Kapelianovych
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I managed to create a Scryer Prolog publishing configuration for pkgx package manager a while ago and decided to share that with the community.
For those who does not know, this manager does not require to install packages into the root or user space, instead you initialise a dev environment where you need it (usually in root project folder) and pkgx will download and cache all needed binaries and make it available just in that folder. Pretty non-standard approach but I like it. And I wanted to make Scryer Prolog available there to use it (apparently I grew quite fond of Prolog).
So, if you don't have pkgx installed in your system, you can do it like that:
Then run:
Now, you are able to bootstrap dev environments and use Scryer Prolog (and many more packages). To do that, create a folder or go to an existing one with some Prolog code and create the
pkgx.yaml
file with the following content:And then run:
The last command has to be run only once ever. That is it. After that whenever you
cd
into this folder you will be able to use thescryer-prolog
binary.I hope this will be useful to those who use
pkgx
and love Scryer Prolog.Beta Was this translation helpful? Give feedback.
All reactions