mijn-design

a developer\’s life

Archive for the ‘SBCL’ Category

SBCL x86-64 working (suse64)

Posted by Michael on March 4, 2008

Finally I managed to get a working 64 bit threaded sbcl enviroment working with hunchentoot on SUSE64 /w 400 MB RAM.

Necessary changes :

  • forget about cffi and uffi tests (at least for now) got them at least partially working
  • in cffi/src/libraries.lisp had to change (defparameter *cffi-feature-suffix-map* … (cffi-features:unix . “.so.0”))
    I don’t like this change, cause now every lib needs to be symlinked but haven’t found other working solutions yet
  • run sbcl with “–dynamic-space-size 256

Problems

  • no make’ing of any *.so (needed by clsql for example) make them by hand
  • no database or any storage backend yet got clsql installed, made needed *.so’s by hand

Now I leave it running for some days to check for memory consumption and errors.

Edit /March 06

  • 2 days working, so far no errors, adding basic pages again
  • clsql connects to a MySQL database
Advertisements

Posted in Development, Linux, LISP, MySQL, SBCL, VirtualHost | Leave a Comment »

*FRUSTRATION* with SBCL on Virtuozzo Virtual Hosts

Posted by Michael on March 1, 2008

Yes, it is frustrating, can only run a 32Bit SBCL on the V-Server. But then no persistent data-storage library works.

With a 64Bit SBCL I run into those memory problems with only 400 MB RAM on the V-Server (Virtuzzo).
Running SBCL with –dynamic-space-size is possible but then I get heap errors on installing libraries like uffi or clsql.
The only alternative I can see is move to another service which offers more RAM.
But all I found yet are quite expensive.

I tried to get back to my previous installation but it doesn’t work anymore 😦 Sometimes I hate computers, when I don’t understand what’s going on. :-/ It’s really strange: Initially I installed a binary sbcl, asdf-install’d needed libs one after the other and finally hunchentoot. Had only a problem with cl+ssl cause it could find the libssl.so but ignored that (don’t use SSL yet).
Now there is already a problem with cffi with tests bypassing them I can compile everthing but it’s not 100% cause I get errors on starting the server enviroment.

I’m getting really confused now: I setup a Gentoo 64 in a VM, installed binary sbcl-10.0.15-x86-64-linux and tried installing few libs. cffi doesn’t install at all, just hangs and doesn’t return from make tests.

Looking around for Lisp friendly webhosting I wonder how sbcl runs with memory as low as 128 MB when I can’t run it with 400 MB RAM or is it related to 64bit ?

Posted in Development, Linux, LISP, SBCL, VirtualHost | Leave a Comment »

clsql, elephant and suse-linux-x64

Posted by Michael on February 27, 2008

Now that I’m getting a little bit more comfort with Emacs/Slime and remote development, a new, big problem hit me :
Neither clsql nor elephant will work. Both come with some C source which compiles fine to *.so but either a function (atol64) is not found or the *.so can’t be loaded at all.
So for the moment I’m a bit lost in the dark, don’t really know how to solve these problems. Searching the internet up and down gave me no hints yet, but I keep trying.

Edit: Tried it and I can load clsql without problems on gentoo, on Mac OS X Leopard but not on SUSE64. What the heck is the reason for it ???
Edit2: Low memory …

Posted in Database, Development, Linux, LISP, SBCL, VirtualHost | Leave a Comment »