Guile will use its load path to determine where to check.  I think that
if you just do:

  $ GUILE_LOAD_PATH=/usr/local/lib/slib guile

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.  But I am on Guix and I assume this might be a problem to
you on Ubuntu.

Thanks,
Olivier

On Tue, 11 Aug 2026, Aubrey Jaffer via "Bug reports for GUILE, GNU's Ubiquitous 
Extension Language" <[email protected]> wrote:
> I am the SLIB maintainer in the process of making a new release.  Following
> the instructions in
> https://doc.guix.gnu.org/guile/3.0.9/en/html_node/SLIB-installation.html on
> Ubuntu-24.04 revealed several path problems.  I tried looking in the bug
> reporting system, but didn't find any mention of "slib".
> SCHEME_LIBRARY_PATH=/usr/local/lib/slib/ had the same behavior.
>
> jaffer@jaffer-Vivobook-ASUSLaptop-X1703ZA-K1703ZA:~/slib$
> SCHEME_LIBRARY_PATH=/usr/local/lib/slib
> export SCHEME_LIBRARY_PATH
> jaffer@jaffer-Vivobook-ASUSLaptop-X1703ZA-K1703ZA:~/slib$
> jaffer@jaffer-Vivobook-ASUSLaptop-X1703ZA-K1703ZA:~/slib$
> jaffer@jaffer-Vivobook-ASUSLaptop-X1703ZA-K1703ZA:~/slib$ guile
> GNU Guile 3.0.9
> scheme@(guile-user)> (use-modules (ice-9 slib))
> While compiling expression:
> In procedure primitive-load-path: Unable to find file "slib/guile.init" in
> load path
>
> jaffer@jaffer-Vivobook-ASUSLaptop-X1703ZA-K1703ZA:~/slib$ ln -s
> /usr/local/lib/slib /usr/local/share/guile/3.0/slib
> ln: failed to create symbolic link '/usr/local/share/guile/3.0/slib': No
> such file or directory
> jaffer@jaffer-Vivobook-ASUSLaptop-X1703ZA-K1703ZA:~/slib$ sudo ln -s
> /usr/local/lib/slib /usr/share/guile/3.0/slib
> jaffer@jaffer-Vivobook-ASUSLaptop-X1703ZA-K1703ZA:~/slib$ guile
> GNU Guile 3.0.9
> scheme@(guile-user)> (use-modules (ice-9 slib))
> scheme@(guile-user)> (require 'new-catalog)
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> In procedure open-file: No such file or directory:
> "/usr/share/guile/site/3.0/slibcat"
>
> jaffer@jaffer-Vivobook-ASUSLaptop-X1703ZA-K1703ZA:~/slib$ sudo mkdir
> /usr/share/guile/3.0/site
> jaffer@jaffer-Vivobook-ASUSLaptop-X1703ZA-K1703ZA:~/slib$ guile
> GNU Guile 3.0.9
> scheme@(guile-user)> (use-modules (ice-9 slib))
> scheme@(guile-user)> (require 'new-catalog)
> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
> 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/.
-- 
Olivier Dion



  • bug#81603: SLIB... Bug reports for GUILE, GNU's Ubiquitous Extension Language
    • bug#81603:... Olivier Dion

Reply via email to