scheme - How to load an extension in Guile 2.0? -
i'm trying load graphviz extension guile 2.0. line of scheme code, suggested graphviz's documentation, works in guile 1.8:
(load-extension "/usr/lib/graphviz/guile/libgv_guile.so" "swig_init")
however, fail in guile 2.0 following error:
scheme@(guile-user)> (load-extension "/usr/lib/graphviz/guile/libgv_guile.so" "swig_init") error: in procedure load-extension: error: in procedure dynamic-link: file: "/usr/lib/graphviz/guile/libgv_guile.so", message: "file not found" entering new prompt. type `,bt' backtrace or `,q' continue.
i've tried using following alternative paths well:
/usr/lib/graphviz/guile/libgv_guile libgv_guile
same results. how do that?
the problem distribution's graphviz packages compiled against guile 1.8, , 2 versions of guile not abi compatible.
compiling graphviz linking against guile 2.0 (with guile 2.0's headers) solved it.
Comments
Post a Comment