guile> (use-modules (ice-9 readline)) ERROR: In procedure dynamic-link: ERROR: file: "libguilereadline-v-17", message: "dlopen(libguilereadline-v-17.so, 9): image not found" ABORT: (misc-error) guile tries to load .so files instead of .dylibs. pipping@quicksand ~ $ equery f guile | grep readline /Users/pipping/gentoo/usr/include/guile/readline.h /Users/pipping/gentoo/usr/lib/libguilereadline-v-17.17.0.3.dylib /Users/pipping/gentoo/usr/lib/libguilereadline-v-17.17.dylib /Users/pipping/gentoo/usr/lib/libguilereadline-v-17.dylib /Users/pipping/gentoo/usr/lib/libguilereadline-v-17.la /Users/pipping/gentoo/usr/share/guile/1.8/ice-9/readline.scm
Creating a symlink doesn't help. pipping@quicksand ~/gentoo/usr/lib $ l libguilereadline-v-17.so lrwx------ 1 pipping staff 27 2008-11-09 14:01 libguilereadline-v-17.so -> libguilereadline-v-17.dylib guile> (use-modules (ice-9 readline)) ERROR: In procedure dynamic-link: ERROR: file: "libguilereadline-v-17", message: "dlopen(libguilereadline-v-17.so, 9): image not found" ABORT: (misc-error) guile>
That's because it looks for it in the current working dir. Is there an option to disable dso in guile? That's an easy workaround for a broken system.
not that i know of
For the MacPorts version of Guile, setting the DYLD_LIBRARY_PATH environment variable to the location of the Guile modules (in my case, /opt/local/lib) fixed this problem.
on osx, DYLD_LIBRARY_PATH is considered evil, making that a workaround rather than a fix.
I don't have a box to reproduce this on anymore. If someone cares about this and the issue persists, please reopen it.