0

我正在尝试安装 GNU Scientific Library for Lisp (GSLL)。我看到已经有类似问题的答案,但我没有找到与我的案例中发生的事情的联系。

任何人都可以帮助从这里继续前进吗?

CL-USER> (lisp-implementation-type)
"SBCL"
CL-USER> (lisp-implementation-version)
"1.2.4.debian"

CL-USER> (ql:quickload "gsll")

; cc -m64 -I/lrde/home/alandi/quicklisp/dists/quicklisp/software/cffi_0.14.0/ -o /lrde/home/alandi/.cache/common-lisp/sbcl-1.2.4.debian-linux-x64/lrde/home/alandi/quicklisp/dists/quicklisp/software/cffi_0.14.0/libffi/libffi-unix /lrde/home/alandi/.cache/common-lisp/sbcl-1.2.4.debian-linux-x64/lrde/home/alandi/quicklisp/dists/quicklisp/software/cffi_0.14.0/libffi/libffi-unix.c
; 

; compilation unit aborted
;   caught 2 fatal ERROR conditions

To load "gsll":
  Load 8 ASDF systems:
    alexandria antik asdf-system-connections cffi-grovel
    cffi-libffi metabang-bind osicat trivial-garbage

  Install 1 Quicklisp gsll
    release:
; Loading "gsll"

; cc -m64 -I/lrde/home/alandi/quicklisp/dists/quicklisp/software/cffi_0.14.0/ -o /lrde/home/alandi/.cache/common-lisp/sbcl-1.2.4.debian-linux-x64/lrde/home/alandi/quicklisp/dists/quicklisp/software/cffi_0.14.0/libffi/libffi-unix /lrde/home/alandi/.cache/common-lisp/sbcl-1.2.4.debian-linux-x64/lrde/home/alandi/quicklisp/dists/quicklisp/software/cffi_0.14.0/libffi/libffi-unix.c

; 
; compilation unit aborted
;   caught 2 fatal ERROR conditions
; Evaluation aborted on Component "gsll" not found.
4

1 回答 1

2

我在 OS X 上,但也许这对你有帮助。我可以通过加载库,(ql:quickload "gsll")但我必须进行调整:

GSL 动态库的路径是通过 shell 调用找到的gsl-config --prefix

对我来说,这个调用会返回/usr/local/Cellar/gsl/1.16,但我的 dynlibs 位于/usr/local/Cellar/gsl/1.16/lib. 所以我只需要对文件中的路径名进行一些调整~/quicklisp/dists/quicklisp/software/gsll-20140211-git/init/init.lisp

在那里寻找(cffi:define-foreign-library libgslcblas ...)(cffi:define-foreign-library libgsl ...)调整你的路径。

也许这有帮助。

于 2015-02-24T16:00:09.297 回答