我正在尝试为Guile 2.0加载 Graphviz 扩展。Graphviz 的文档建议的这行方案代码在Guile 1.8中工作:
(load-extension "/usr/lib/graphviz/guile/libgv_guile.so" "SWIG_init")
但是,它会在Guile 2.0中失败,并出现以下错误:
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 a new prompt. Type `,bt' for a backtrace or `,q' to continue.
我也尝试过使用以下替代路径:
/usr/lib/graphviz/guile/libgv_guile
libgv_guile
结果相同。我怎么做?