我正在尝试安装GNU Scientific 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.发布于 2015-02-25 00:00:09
我使用的是OS,但这可能会对你有所帮助。我可以通过(ql:quickload "gsll")加载lib,但我必须进行调整:
GSLs动态库的路径由一个名为gsl-config --prefix的外壳程序找到。
对我来说,这个调用返回/usr/local/Cellar/gsl/1.16,但是我的dynlib位于/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 ...)并调整路径。
也许这会有帮助。
https://stackoverflow.com/questions/28692610
复制相似问题