Olivier Dion <[email protected]> writes:
>   $ GUILE_LOAD_PATH=/usr/local/lib/slib guile

While that should work, the error sounds like the instructions in Guix
may be incorrect:

>> In procedure open-file: No such file or directory:
>> "/usr/share/guile/site/3.0/slibcat"
>>
>> So the problem is the "site" in /usr/share/guile/site/3.0/.  I didn't find
>> "/site" or "site/" in the files in /usr/share/guile/3.0/.

The instruction is:

ln -s /usr/local/lib/slib /usr/local/share/guile/3.0/slib

But slib needs to be in

/usr/share/guile/site/3.0/slib

> then everything should load correctly.  Though, I do have some warnings
> here about declarative modules and there is an issue with the include of
> guile-2.init.

Warnings about declarative modules are a hint that mutation may be used
that requires the module marked as non-declarative in guile-3 to stay
working.

That means, guile.init may need a guile-3.init with

(cond-expand (guile-3 (include "guile-3.init")) …)

that explicitly specifies #:declarative? #f in define-module.

    (define-module (ice-9 slib)
               #:declarative? #f
               #:use-module ((ice-9 popen) #:select (open-input-pipe 
close-pipe))
    …

https://viewvc.cvs.savannah.gnu.org/viewvc/slib/slib/guile.init?view=markup

See https://www.gnu.org/software/guile/manual/Declarative-Modules.html

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
https://www.draketo.de

Attachment: signature.asc
Description: PGP signature

Reply via email to