Lisp ja Web
Mehuwiki
Sisällysluettelo |
[muokkaa]
Steel Bank Common Lisp
$ export INSTALL_ROOT=/usr/local $ sudo sh install.sh 2>&1 | tee sbcl-install.log
$ sbcl This is SBCL 0.9.4, an implementation of ANSI Common Lisp. More information about SBCL is available at <http://www.sbcl.org/>. SBCL is free software, provided as is, with absolutely no warranty. It is mostly in the public domain; some portions are provided under BSD-style licenses. See the CREDITS and COPYING files in the distribution for more information. * (quit)
[muokkaa]
Emacs SLIME
$ mkdir ~/src $Â cd ~/src $ export CVSROOT=:pserver:anonymous@common-lisp.net:/project/slime/cvsroot $ cvs login $ cvs checkout slime
[muokkaa]
mod_lisp
[muokkaa]
Asennus
Noudetaan tuore lähdekoodi svn:llä.
$ svn co http://www.fractalconcept.com:8000/public/open-source/mod_lisp/ mod_lisp
$ sudo apxs -i -a -c mod_lisp.c 2>&1 | tee install.log
gcc -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -g -Os -pipe -DHARD_SERVER_LIMIT=2048 -DEAPI -DSHARED_MODULE -I/usr/include/httpd -c mod_lisp.c
In file included from /usr/include/httpd/ap_config.h:1129,
from /usr/include/httpd/httpd.h:29,
from mod_lisp.c:182:
/usr/include/httpd/hsregex.h:22:1: warning: "ap_private_extern" redefined
In file included from /usr/include/httpd/httpd.h:29,
from mod_lisp.c:182:
/usr/include/httpd/ap_config.h:1025:1: warning: this is the location of the previous definition
cc -bundle -undefined suppress -flat_namespace -Wl,-bind_at_load -o mod_lisp.so mod_lisp.o
[activating module `lisp' in /private/etc/httpd/httpd.conf]
cp mod_lisp.so /usr/libexec/httpd/mod_lisp.so
chmod 755 /usr/libexec/httpd/mod_lisp.so
cp /private/etc/httpd/httpd.conf /private/etc/httpd/httpd.conf.bak
cp /private/etc/httpd/httpd.conf.new /private/etc/httpd/httpd.conf
rm /private/etc/httpd/httpd.conf.new
Muokataan tiedostoa /etc/httpd/httpd.conf
Varmistetaan, että tiedostosta löytyvät rivit:
xxx
Ja lisätään loppuun seuraavat
<IfModule mod_lisp.c>
LispServer 127.0.0.1 3000 "spookygoose"
<Location /lisp>
SetHandler lisp-handler
</Location>
</IfModule>
Jossa portin ja prosessin nimen voi valita melkein oman pään mukaan.
$ sudo apachectl restart /usr/sbin/apachectl restart: httpd restarte
[muokkaa]
Aiheeseen liittyviä linkkejä
Luokat: Nörttinurkka | Web | Lisp

