[Gsll-devel] Snow Leopard install

Leo sdl.web at gmail.com
Mon Aug 16 15:15:29 UTC 2010


On 2010-08-16 15:51 +0100, David Dreisigmeyer wrote:
> I tried this -- no go, including using gsl-devel.  Also installed gsl from
> source and gsll still won't install.  I'm going to try with ccl now.

If you install gsl and have 'gsl-config' accessible from your terminal,
then gsll will try to find the install location using that tool.

I have found that I also need to apply the following patch for it to
work.

commit 024e7551bd9ee968b47ca1cb33e106090291c5f7
Date:   Sat Jul 3 13:32:51 2010 +0100

    Make gsl-config actually work on :DARWIN

	Modified init/init.lisp
diff --git a/init/init.lisp b/init/init.lisp
index 5c14ced..866f48f 100644
--- a/init/init.lisp
+++ b/init/init.lisp
@@ -31,6 +31,8 @@
    #:cl-array #:dimensions #:element-type #:dim0 #:dim1
    #:copy))
 
+(in-package :gsl)
+
 (eval-when (:compile-toplevel :load-toplevel :execute)
   (defun gsl-config (arg)
     "A wrapper for tool `gsl-config'."
@@ -41,8 +43,9 @@
       (read-line s))))
 
 (cffi:define-foreign-library libgslcblas
+  (:darwin #.(merge-pathnames "lib/libgslcblas.dylib"
+                              (pathname (concatenate 'string (gsl-config "--prefix") "/"))))
   (:unix (:or "libgslcblas.so.0" "libgslcblas.so"))
-  (:darwin "libgslcblas.dylib")
   (:cygwin "cyggslcblas-0.dll")
   (t (:default "libgslcblas")))
    
@@ -55,8 +58,9 @@
 (cffi:load-foreign-library "/lib/lapack/cygblas.dll")
 
 (cffi:define-foreign-library libgsl
+  (:darwin #.(merge-pathnames "lib/libgsl.dylib"
+                              (pathname (concatenate 'string (gsl-config "--prefix") "/"))))
   (:unix (:or "libgsl.so.0" "libgsl.so"))
-  (:darwin "libgsl.dylib")
   (:cygwin "cyggsl-0.dll")
   (t (:default "libgsl")))
    

Leo





More information about the gsll-devel mailing list