Pregunta

Estoy tratando de evaluar la respuesta. proporcionado aquí, y recibo el error: "A file with name ASDF-INSTALL does not exist" cuando se usa clip:

dsm@localhost:~$ clisp -q
[1]> (require :asdf-install)

*** - LOAD: A file with name ASDF-INSTALL does not exist
The following restarts are available:
ABORT          :R1      ABORT
Break 1 [2]> :r1
[3]> (quit)

dsm@localhost:~$ 

cmucl arroja un error similar:

dsm@localhost:~$ cmucl -q
Warning:  #<Command Line Switch "q"> is an illegal switch
CMU Common Lisp CVS release-19a 19a-release-20040728 + minimal debian patches, running on crap-pile
With core: /usr/lib/cmucl/lisp.core
Dumped on: Sat, 2008-09-20 20:11:54+02:00 on localhost
For support see http://www.cons.org/cmucl/support.html Send bug reports to the debian BTS.
or to pvaneynd@debian.org
type (help) for help, (quit) to exit, and (demo) to see the demos

Loaded subsystems:
    Python 1.1, target Intel x86
    CLOS based on Gerd's PCL 2004/04/14 03:32:47
* (require :asdf-install)


Error in function REQUIRE:  Don't know how to load ASDF-INSTALL
   [Condition of type SIMPLE-ERROR]

Restarts:
  0: [ABORT] Return to Top-Level.

Debug  (type H for help)

(REQUIRE :ASDF-INSTALL NIL)
Source: 
; File: target:code/module.lisp
(ERROR "Don't know how to load ~A" MODULE-NAME)
0] (quit)
dsm@localhost:~$ 

Pero sbcl funciona perfectamente:

dsm@localhost:~$ sbcl -q
This is SBCL 1.0.11.debian, 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.
* (require :asdf-install)

; loading system definition from
; /usr/lib/sbcl/sb-bsd-sockets/sb-bsd-sockets.asd into #<PACKAGE "ASDF0">
; registering #<SYSTEM SB-BSD-SOCKETS {AB01A89}> as SB-BSD-SOCKETS
; registering #<SYSTEM SB-BSD-SOCKETS-TESTS {AC67181}> as SB-BSD-SOCKETS-TESTS
("SB-BSD-SOCKETS" "ASDF-INSTALL")
* (quit)

¿Alguna idea sobre cómo solucionar este problema?encontré esta publicación en Internet, pero usarlo tampoco funcionó.

¿Fue útil?

Solución

utilice clc:clc-require en clisp.Consulte 'man common-lisp-controller'.Tuve el mismo error en clisp y lo resolví usando clc:clc-require.Sin embargo, sbcl funciona bien con solo requerir.

Otros consejos

Las instrucciones que recibió mencionaron SBCL explícitamente, por lo que se espera que funcionen mejor usando SBCL, supongo.Algunos otros Lisps no vienen con ASDF o no lo conectan a CL:REQUIRE.En el primer caso, tendrás que cargar ASDF tú mismo de antemano.En el último caso, deberá llamar a (asdf:oos 'asdf:load-op ) en lugar de (require ).

obtener http://cclan.cvs.sourceforge.net/verificar/cclan/asdf/asdf.lisp

Vale la pena echarle un vistazo a clbuild. http://common-lisp.net/project/clbuild/

Para poner en funcionamiento un servidor web Lisp.Solo necesitas:

darcs get http://common-lisp.net/project/clbuild/clbuild
cd clbuild
chmod +x ./clbuild
./clbuild check
./clbuild build slime hunchentoot
./clbuild preloaded

Ahora comenzará una respuesta de ceceo.Ahí escribes:

* (hunchentoot:start-server :port 8080)

Probando que el servidor responda:

wget -O - http://localhost:8080/

<html><head><title>Hunchentoot</title></head>
 <body><h2>Hunchentoot Default Page</h2>
  <p>This is the Hunchentoot default page....

prueba esto antes que nada:

(require :asdf)

Puedes robar algunas ideas del entorno que utilizamos.está disponible en: darcsweb

consulte Environment.lisp que carga y configura asdf por nosotros.(sbcl ya tiene asdf cargado)

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top