Resolveu meu problema por completo
Muito Obrigado ;)


Em 10 de agosto de 2010 20:24, Pascal J. Bourguignon
<[email protected]>escreveu:

> Cooler_ <[email protected]> writes:
>
> > Como vai pessoal o/
> > Muito legal esta lista até poco tempo não sabia de sua existência...
> >
> > Bom estou aprendendo "Common Lisp" e "Scheme",Em Scheme estou usando
> > "chicken" aconselhado pelo Mario da freenode canal "lisp-br", em
> > "Common Lisp"
> > estou usando o "CLISP", ando enfrentando um grande problema nos meus
> > estudos
> > com o CLISP,preciso trabalhar com regex, já instalei "cl-ppcre" e
> > mesmo assim
> > não consigo usar, não consigo dar LOAD para usar as funções da lib,
> > peço ajuda
> > ao pessoal da lista de forma  uma solução para sanar meu problema.
> >
> > veja último log dos meus comandos
> >
> > --------------------------console
> >
> > Welcome to GNU CLISP 2.44.1 (2008-02-23) <http://clisp.cons.org/>
> > ...
> >
> > [1]> (asdf:oos 'asdf:test-op :cl-ppcre)
> > ; loading system definition from /usr/share/common-lisp/systems/cl-
> > ppcre.asd into #<PACKAGE ASDF0>
> > ;; Loading file /usr/share/common-lisp/systems/cl-ppcre.asd ...
> > ; registering #<SYSTEM :CL-PPCRE #x21097976> as CL-PPCRE
> > ;; Loaded file /usr/share/common-lisp/systems/cl-ppcre.asd
> > 0 errors, 0 warnings
> > NIL
> >
> > [2]> (require :cl-ppcre)
> >
> > *** - LOAD: A file with name CL-PPCRE does not exist
> > The following restarts are available:
> > ABORT          :R1      Abort main loop
> >
> > Break 1 [3]> (scan-to-strings * "192.168.1.255")
> >
> > *** - EVAL: undefined function SCAN-TO-STRINGS
> >
> > ---------------------------EOF
>
> Em CLISP, REQUIRE não está conectado a ASDF.  Você teria que
> configurar CUSTOM:*USER-LIB-DIRECTORY* e CUSTOM:*LIB-DIRECTORY* e para
> encontrar arquivos com REQUIRE automaticamente. E então, teria que ser
> arquivos lisp, não de arquivos asdf.  Veja também:
> http://clisp.cons.org/impnotes/require.html
>
>
> No ínterim, você pode usar ASDF diretamente:
>
>
> CL-USER> (asdf:oos 'asdf:load-op :cl-ppcre)
> ; loading system definition from
> /data/lisp/asdf-install/site-systems/cl-ppcre.asd into #<PACKAGE ASDF0>
> ;; Loading file /data/lisp/asdf-install/site-systems/cl-ppcre.asd ...
> ; registering #<SYSTEM :CL-PPCRE #x000334829CA8> as CL-PPCRE
> ;; Loaded file /data/lisp/asdf-install/site-systems/cl-ppcre.asd
> ;; Compiling file
> /data/lisp/asdf-install/site/cl-ppcre-1.2.19/packages.lisp ...
> ;; Wrote file
> /home/pjb/.cache/common-lisp/clisp-2.48-unix-pc386/data/lisp/asdf-install/site/cl-ppcre-1.2.19/packages.fas
> ;; Loading file
> /home/pjb/.cache/common-lisp/clisp-2.48-unix-pc386/data/lisp/asdf-install/site/cl-ppcre-1.2.19/packages.fas
> ...
> ;; Loaded file
> /home/pjb/.cache/common-lisp/clisp-2.48-unix-pc386/data/lisp/asdf-install/site/cl-ppcre-1.2.19/packages.fas
> ...
> ;; Wrote file
> /home/pjb/.cache/common-lisp/clisp-2.48-unix-pc386/data/lisp/asdf-install/site/cl-ppcre-1.2.19/api.fas
> ;; Loading file
> /home/pjb/.cache/common-lisp/clisp-2.48-unix-pc386/data/lisp/asdf-install/site/cl-ppcre-1.2.19/api.fas
> ...
> ;; Loaded file
> /home/pjb/.cache/common-lisp/clisp-2.48-unix-pc386/data/lisp/asdf-install/site/cl-ppcre-1.2.19/api.fas
> 0 errors, 0 warnings
> NIL
> CL-USER> (use-package :cl-ppcre)
>
> T
> CL-USER> (scan-to-strings * "192.168.1.255")
> ; Evaluation aborted.
> CL-USER> (scan-to-strings "[0-9]*" "192.168.1.255")
> "192"
> #()
>
>
>
> Como a API do ASDF é impraticável, eu defino no meu ~ /.clisprc estas
> funções para uso interativo:
>
>
> (defun asdf-load (&rest systems)
>  (dolist (system systems systems)
>    (asdf:operate 'asdf:load-op system)))
>
> (defun asdf-load-source (&rest systems)
>  (dolist (system systems systems)
>    (asdf:operate 'asdf:load-source-op system)))
>
> (defun asdf-delete-system (system)
>  (remhash (string-downcase system) asdf::*defined-systems*)
>  (values))
>
>
> (defun asdf-install (&rest systems)
>  (dolist (system systems systems)
>    (asdf-install:install system)))
>
>
> --
> __Pascal Bourguignon__                     http://www.informatimago.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Lisp-br" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<lisp-br%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/lisp-br?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Lisp-br" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lisp-br?hl=en.

Responder a