Re: how to use gsl with the guile ffi

2018-12-29 Thread tantalum
only thing is, im not sure yet what i would set LD_LIBRARY_PATH to, as the following are all the library files gsl installs: gsl /usr/lib/libgsl.so gsl /usr/lib/libgsl.so.23 gsl /usr/lib/libgsl.so.23.1.0 gsl /usr/lib/libgslcblas.so gsl /usr/lib/libgslcblas.so.0 gsl /usr/lib/libgslcblas.so.0.0.0

Re: how to use gsl with the guile ffi

2018-12-28 Thread Matt Wette
tantalum writes: im getting the error "In procedure dynamic-link: file: "libgsl", message: "file not found"" with the following code: (import (system foreign)) (define gsl (dynamic-link "libgsl")) * gsl (optionally?) depends on libgslcblas, which itself links without error, but loa

Re: how to use gsl with the guile ffi

2018-12-28 Thread Neil Jerram
tantalum writes: > so far i couldnt find the cause with strace. Well I think I'm just stating the obvious here, but clearly libgslcblas.so is OK - > openat(AT_FDCWD, "/usr/lib/libgslcblas.so", O_RDONLY|O_CLOEXEC) > = 7 - and also libgsl.so - > openat(AT_FDCWD, "/usr/lib/libg

Re: how to use gsl with the guile ffi

2018-12-28 Thread tantalum
so far i couldnt find the cause with strace. mmap(NULL, 80013, PROT_READ, MAP_PRIVATE, 7, 0) = 0x7f6a6da6b000 close(7) = 0 mprotect(0x7f6a6da7b000, 8776, PROT_READ|PROT_WRITE) = 0 openat(AT_FDCWD, "/usr/lib/libgslcblas.la", O_RDONLY)

Re: how to use gsl with the guile ffi

2018-12-28 Thread Neil Jerram
tantalum writes: > im getting the error "In procedure dynamic-link: file: "libgsl", > message: "file not found"" with the following code: > > (import (system foreign)) > (define gsl (dynamic-link "libgsl")) > > * gsl (optionally?) depends on libgslcblas, which itself links without > e

how to use gsl with the guile ffi

2018-12-28 Thread tantalum
im getting the error "In procedure dynamic-link: file: "libgsl", message: "file not found"" with the following code: (import (system foreign)) (define gsl (dynamic-link "libgsl")) * gsl (optionally?) depends on libgslcblas, which itself links without error, but loading it with (dynamic