Compiling from source

Hi guys.

I am trying to compile Nyxt from scratch as per instructions on the github page:

  1. $LISP to create a new Lisp REPL (replace $LISP with sbcl or any supported Common Lisp compiler).
  2. Execute (require :asdf) if ASDF is not already loaded.
  3. Execute (asdf:load-asd "/full/path/to/nyxt.asd") to load the Nyxt system definition (you must use absolute pathnames).
  4. Execute (ql:quickload :nyxt/gi-gtk) to load the Nyxt system into your Lisp image.
  5. Execute (nyxt:start) to open your first Nyxt window.

I git cloned and ran step #4, but i get the following error:


[package new-let].................................
[package gmap]....................................
[package rev-fun-bind]............................
[package lexical-contexts]........................
[package mt19937].................................
[package fset]....................................
[package fset-user]...............................
..................................................
..................................................
..................................................
....
To load "nyxt/gi-gtk":
  Load 1 ASDF system:
    nyxt/gi-gtk
; Loading "nyxt/gi-gtk"
To load "nsymbols/star":
  Load 2 ASDF systems:
    asdf closer-mop
  Install 1 Quicklisp release:
    nsymbols
; Fetching #<URL "http://beta.quicklisp.org/archive/nsymbols/2023-02-14/nsymbols-20230214-git.tgz">
; 32.59KB
==================================================
33,369 bytes in 0.13 seconds (246.87KB/sec)
; Loading "nsymbols/star"
..
To load "nyxt/gi-gtk":
  Load 1 ASDF system:
    nyxt/gi-gtk
; Loading "nyxt/gi-gtk"

debugger invoked on a QUICKLISP-CLIENT:SYSTEM-NOT-FOUND in thread
#<THREAD "main thread" RUNNING {1001880173}>:
  System "prompter" not found

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [CONTINUE               ] Try again
  1: [ABORT                  ] Give up on "prompter"
  2:                           Give up on "nyxt/gi-gtk"
  3: [REGISTER-LOCAL-PROJECTS] Register local projects and try again.
  4:                           Exit debugger, returning to top level.

((LABELS QUICKLISP-CLIENT::RECURSE :IN QUICKLISP-CLIENT::COMPUTE-LOAD-STRATEGY) "prompter")
   source: (CERROR "Try again" 'SYSTEM-NOT-FOUND :NAME NAME)
0] 

Any suggestions on how to resolve that issue?

Hello! So the thing is that not all of our libraries are yet in Quicklisp, so what you can do is manually clone the prompter library and place it in a place that Quicklisp will find it!

Additionally, what might be a lot easier is just doing a recursive clone of the project with all of the submodules and copying those to a place that Quicklisp will find them. That way, you can be sure you have all of the correct modules.

Thank you for the quick answer. I am not sure I understood you correctly. However I hadn’t had SBCL installed yet so I did this, installed quicklisp, then cloned prompter into the quicklisp/local-projects/ folder and also extracted nyxt into that.

Not working however. Sorry for the inconvenience. Any further lead would be much appreciated.

Try putting it into ~/common-lisp/ folder. ~quicklisp/local-projects/ is Quicklisp-specific, while ~/common-lisp/ is also working for ASDF, which we’re using in our default build procedure.