Common lisp 使用Quicklisp在SBCL上安装GSLL
我正在尝试为Lisp安装GNU科学库(GSLL)。 我已经看到了一个类似问题的答案,但我没有发现与我的案例中发生的事情有关的联系 谁能帮我离开这里Common lisp 使用Quicklisp在SBCL上安装GSLL,common-lisp,gsl,sbcl,quicklisp,Common Lisp,Gsl,Sbcl,Quicklisp,我正在尝试为Lisp安装GNU科学库(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/quickli
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.
我在OSX上,但也许这对你有帮助。我可以通过
(ql:quickload“gsll”)
加载lib,但我必须进行调整:
GSLs动态库的路径可以通过shell调用gsl config--prefix
找到
对我来说,这个调用返回/usr/local/cillar/gsl/1.16
,但我的动态库位于/usr/local/cillar/gsl/1.16/lib
。因此,我必须对文件~/quicklisp/dists/quicklisp/software/gsll-20140211-git/init/init.lisp
中的路径名进行一些调整
搜索(cffi:define foreign libgslcblas…
和(cffi:define foreign libgsl…
)并在那里调整路径
这可能会有所帮助。这看起来很像是您在C编译方面遇到了问题。尝试在命令行上运行命令
cc-m64…
,并将其粘贴到错误描述中。我天真的猜测是,您缺少一些用于编译的C依赖项(库和/或头)。谢谢Frank。就这样。