Error to call dbi-open on fedora using guile 3:
(use-modules (dbi dbi))
dbi-open
Unbound variable: dbi-open
We need guile-snarf to compile dbi. On fedora, the bin is on /usr/bin/guile-snarf3.0, so you need create a symbolic link:
sudo ln -sf /usr/bin/guile-snarf3.0 /usr/bin/guile-snarf
now configure and compile again
try again:
cd build && \
PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/share/pkgconfig \
GUILE_EFFECTIVE_VERSION=3.0 \
GUILE_LIBS="$(pkg-config --libs guile-3.0)" \
GUILE_CFLAGS="$(pkg-config --cflags guile-3.0)" \
GUILE="/usr/bin/guile" \
../configure --prefix=/usr/local --libdir=/usr/lib64
PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/share/pkgconfig \
GUILE_EFFECTIVE_VERSION=3.0 \
GUILE_LIBS="$(pkg-config --libs guile-3.0)" \
GUILE_CFLAGS="$(pkg-config --cflags guile-3.0)" \
GUILE="/usr/bin/guile" \
../configure --prefix=/usr/local --libdir=/usr/lib64
try again:
─$ guile
GNU Guile 3.0.9
Copyright (C) 1995-2023 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
scheme@(guile-user)> (use-modules (dbi dbi))
;;; note: source file /usr/share/guile/site/3.0/dbi/dbi.scm
;;; newer than compiled /home/ricardo/.cache/guile/ccache/3.0-LE-8-4.6/usr/share/guile/site/3.0/dbi/dbi.scm.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling /usr/share/guile/site/3.0/dbi/dbi.scm
;;; compiled /home/ricardo/.cache/guile/ccache/3.0-LE-8-4.6/usr/share/guile/site/3.0/dbi/dbi.scm.go
scheme@(guile-user)> dbi-open
$1 = #<procedure dbi-open (_ _)>
scheme@(guile-user)>
GNU Guile 3.0.9
Copyright (C) 1995-2023 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
scheme@(guile-user)> (use-modules (dbi dbi))
;;; note: source file /usr/share/guile/site/3.0/dbi/dbi.scm
;;; newer than compiled /home/ricardo/.cache/guile/ccache/3.0-LE-8-4.6/usr/share/guile/site/3.0/dbi/dbi.scm.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling /usr/share/guile/site/3.0/dbi/dbi.scm
;;; compiled /home/ricardo/.cache/guile/ccache/3.0-LE-8-4.6/usr/share/guile/site/3.0/dbi/dbi.scm.go
scheme@(guile-user)> dbi-open
$1 = #<procedure dbi-open (_ _)>
scheme@(guile-user)>
Clear the guile cache if need:
rm -rf /home/ricardo/.cache/guile/ccache