2015-02-24 47 views
0

我試圖安裝Lisp中GNU科學圖書館(GSLL)上安裝SBCL GSLL。 我看到有回答過類似的問題了,但我沒有發現什麼是在我的情況下發生的連接。與Quicklisp

任何人都可以幫助從這裏繼續前進?

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. 
+2

這看起來很像您在C編譯時遇到的問題。嘗試在命令行上運行命令'cc -m64 ...'並將其粘貼到錯誤描述中。我的無辜猜測是你錯過了一些C編譯依賴項(庫和/或頭文件)。 – schaueho 2015-02-24 10:25:49

回答

2

我在OS X上,但也許這對你有幫助。我可以通過(ql:quickload "gsll")加載庫,但我不得不作出調整:

通過shell調用gsl-config --prefix找到GSL動態庫的路徑。

對於我這個調用返回/usr/local/Cellar/gsl/1.16但我dynlibs位於/usr/local/Cellar/gsl/1.16/lib。所以我只需要對文件~/quicklisp/dists/quicklisp/software/gsll-20140211-git/init/init.lisp中的路徑名進行一些調整。

SEACH爲(cffi:define-foreign-library libgslcblas ...)(cffi:define-foreign-library libgsl ...)和調整你的路在那裏。

也許沒有什麼幫助。

+0

謝謝弗蘭克。就是這樣。 – Joe 2016-02-10 20:30:44