[Gsll-devel] Snow Leopard install

Liam Healy lhealy at common-lisp.net
Wed Aug 18 01:37:03 UTC 2010


OK, good.  You can also run the tests
(require :gsll-tests)
(in-package :gsl)
(lisp-unit:run-tests)
Don't be worried if there are a few failures.

I think if you use the patch that was posted, you don't need 1 and 2.
None of my systems use asdf-install.  I'm not sure what your
slime/swank loading procedure is doing, I prefer to start it
within emacs, and that's pretty smooth.  But anyway, it all works
for you and that's good.

Liam
.
On Tue, Aug 17, 2010 at 10:19 AM, David Dreisigmeyer
<david.dreisigmeyer at gmail.com> wrote:
> This works on Snow Leopard with sbcl 1.0.40.  To summarize:
> 1) Added the following to dependencies:
> gsll gsd cffi trivial-garbage lisp-unit fsbv static-vectors iterate
> asdf-system-connections babel alexandria trivial-features split-sequence
> 2) Added the following to wnpp-projects:
> # **** FOR GSLL ****
> gsll               get_git git://repo.or.cz/gsll.git
> gsd                get_git git://repo.or.cz/gsd.git
> fsbv               get_git git://repo.or.cz/fsbv.git
> lisp-unit          get_git git://repo.or.cz/lisp-unit.git
> static-vectors     get_git git://gitorious.org/iolib/static-vectors.git
> 3) Ran clbuild install gsll
> 4) Had the following .sbclrc:
> (require 'asdf)
> (require 'asdf-install)
> (pushnew #P"/path/to/your/emacs/stuff/.emacs.d/site-lisp/slime/"
> asdf:*central-registry* :test #'equal)
> (push "/path/to/your/emacs/stuff/.emacs.d/site-lisp/slime/"
> asdf:*central-registry*)
> (pushnew #P"//path/to/your/clbuild/stuff/clbuild/systems/"
> asdf:*central-registry* :test #'equal)
> (push "/path/to/your/clbuild/stuff/clbuild/systems/"
> asdf:*central-registry*)
> (asdf:oos 'asdf:load-op 'swank)
> (asdf:operate 'asdf:load-op :gsll)
> ;; start swank
> (setf swank:*use-dedicated-output-stream* nil)
> (setf swank:*communication-style* :fd-handler)
> (swank:create-server :port 4007 :dont-close t)
> 5) In the sbcl repl entered (in-package gsll)
> 6) Ran the examples from http://common-lisp.net/project/gsll/ and they all
> worked.
> Thanks Liam!
> -Dave
>
>
> On Tue, Aug 17, 2010 at 9:17 AM, David Dreisigmeyer
> <david.dreisigmeyer at gmail.com> wrote:
>>
>> Hi Liam,
>> I'll try it out soon.
>> This is (or was) a bug in clbuild (at least I believe it would be
>> clbuild).
>> 1) Install macports -- which by default is in /opt/local
>> 2) Now install ccl with macports (it goes into /opt/local).  (This same
>> situation may work with other ports installed, I didn't try that out.  It
>> doesn't happen if sbcl is installed with macports.)
>> 3) Run clbuild check.  It will complain that no sbcl has been found.
>> 4) Now /opt/local has been removed.  The only way this can happen from the
>> command line is by sudo rm -rf /opt/local.
>> Thanks for all your help on this,
>> -Dave
>>
>> On Mon, Aug 16, 2010 at 11:10 PM, Liam Healy <lhealy at common-lisp.net>
>> wrote:
>>>
>>> OK I've committed a modified version of this patch.  I hope
>>> it works better for OS X.
>>>
>>> On Mon, Aug 16, 2010 at 11:15 AM, Leo <sdl.web at gmail.com> wrote:
>>> > 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
>>> >
>>> >
>>> > _______________________________________________
>>> > Gsll-devel mailing list
>>> > Gsll-devel at common-lisp.net
>>> > http://common-lisp.net/cgi-bin/mailman/listinfo/gsll-devel
>>> >
>>>
>>> _______________________________________________
>>> Gsll-devel mailing list
>>> Gsll-devel at common-lisp.net
>>> http://common-lisp.net/cgi-bin/mailman/listinfo/gsll-devel
>>
>
>




More information about the gsll-devel mailing list