quicklisp

How to use packages installed by quicklisp?

邮差的信 提交于 2020-01-12 03:20:31
问题 I've installed the CL-PNG package using quicklisp. (ql:quicklisp 'png) Now I want to define my own package which depends on the CL-PNG package. Like so: (defpackage :FOO (:use :CL :PNG) (:export :BAR)) When compiling it I get this error: The name "PNG" does not designate any package. [Condition of type SB-KERNEL:SIMPLE-PACKAGE-ERROR] It seems that I have to call (require :PNG) on the REPL before compiling my package. What do I have to do to make the CL-PNG package available for the compiler

How do I manage common lisp dependencies?

一个人想着一个人 提交于 2020-01-02 03:17:17
问题 What's the lisp equivalent of a pip requirement file, ruby gemfile, node package.json, etc? I'm not entirely sure how asdf and quicklisp relate if those are the proper things to use. 回答1: A .asd file is a requirements file. Use quicklisp to install requirements. Use ASDF to define a "system". Create a my-system.asd file. (asdf:defsystem #:my-system :serial t :description "Describe my-system here" :author "My Name <my.name@example.com>" :license "Specify license here" :depends-on (#

loading quicklisp in a program

扶醉桌前 提交于 2020-01-02 02:54:26
问题 What's the correct way to load quicklisp at the start of my program? I'm currently copy/pasting in the block that quicklisp inserted into my .eclrc, e.g. ;;; quicklisp (let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" (user-homedir-pathname)))) (when (probe-file quicklisp-init) (load quicklisp-init))) (ql:quickload "iterate") but it seems like there has to be a less messy way to do things. 回答1: There isn't really a good way to do that. It's more part of the development environment

How to use buildapp in combination with quicklisp

只愿长相守 提交于 2019-12-30 00:40:14
问题 I want to use buildapp to make the curl-lisp executable given as an example: buildapp --output lisp-curl --asdf-path ~/src/clbuild/systems/ \ --load-system drakma \ --eval '(defun main (args) (write-string (drakma:http-request (second args))))' \ --entry main This will most definitly not work, as I got no path "~/src/clbuild/systems/", as I use quicklisp my systems should be at "~/quicklisp/dists/quicklisp/software", but when I execute: buildapp --output lisp-curl \ --asdf-path ~/quicklisp

Using packages installed from quicklisp with clisp

和自甴很熟 提交于 2019-12-25 17:00:30
问题 I installed cl-yacc from quick lisp: (ql:quickload "yacc") I checked it is available. [12]> (ql:system-apropos "yacc") #<SYSTEM lispbuilder-yacc / lispbuilder-20130312-svn / quicklisp 2013-08-13> #<SYSTEM yacc / cl-yacc-20101006-darcs / quicklisp 2013-08-13> I tried to use the package, but I got errors. [18]> (use-package '#:yacc) *** - USE-PACKAGE: There is no package with name "YACC" The following restarts are available: USE-VALUE :R1 Input a value to be used instead. ABORT :R2 Abort main

How to properly save Common Lisp image using SBCL?

馋奶兔 提交于 2019-12-20 20:40:35
问题 If I want to create a Lisp-image of my program, how do I do it properly? Are there any prerequisites? And doesn't it play nicely with QUICKLISP? Right now, if I start SBCL (with just QUICKLISP pre-loaded) and save the image: (save-lisp-and-die "core") And then try to start SBCL again with this image sbcl --core core And then try to do: (ql:quickload :cl-yaclyaml) I get the following: To load "cl-yaclyaml": Load 1 ASDF system: cl-yaclyaml ; Loading "cl-yaclyaml" ....... debugger invoked on a

Common Lisp Package and Module Management [closed]

醉酒当歌 提交于 2019-12-13 09:16:17
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I am currently trying to understand how Common Lisp manages its packages and modules. Consider this code: (in-package :cl-user) (ql:quickload :cl-who) (ql:quickload :hunchentoot) (ql:quickload :parenscript) (defpackage :retro-games (:use :cl :cl-who :hunchentoot :parenscript)) (in

Where should a Quicklisp QUICKLOAD go in my source? Nowhere?

白昼怎懂夜的黑 提交于 2019-12-09 10:39:26
问题 Let's say I build an application on top of net.aserve and bordeaux-threads . My package declaration might look like this: (defpackage :my-package (:use :cl :net.aserve :bordeaux-threads) (:export …)) I use Quicklisp, so I run (ql:quickload "aserve") (ql:quickload "bordeaux-threads") in SLIME before compiling my package, and everything is fine. Of course, tomorrow I start up SLIME again and I have to remember to issue the QUICKLOAD s before I compile, otherwise I'm in for trouble. I could put

Problems installing Common Lisp Sketch into Windows 10

戏子无情 提交于 2019-12-08 08:28:42
问题 I had trouble getting through errors for missing SDL DLL's and an FFI.H file while installing sketch with quicklisp. Posting my solution for this Windows 10 specific trouble, maybe there are other solutions too. I ended up using Chocolatey and Cmder for my mingw64 environment. 回答1: This is what I had to do in order to get through several errors for missing SDL DLL's and FFI.H header. 1. Install Cmder using Chocolatey: https://chocolatey.org/packages/Cmder 2. Download and copy all the SDL, SDL

Problems installing Common Lisp Sketch into Windows 10

感情迁移 提交于 2019-12-07 09:15:30
I had trouble getting through errors for missing SDL DLL's and an FFI.H file while installing sketch with quicklisp. Posting my solution for this Windows 10 specific trouble, maybe there are other solutions too. I ended up using Chocolatey and Cmder for my mingw64 environment. This is what I had to do in order to get through several errors for missing SDL DLL's and FFI.H header. 1. Install Cmder using Chocolatey: https://chocolatey.org/packages/Cmder 2. Download and copy all the SDL, SDL_image and SDL_ttf DLL's to SBCL's .exe folder: a. https://www.libsdl.org/download-2.0.php b. https://www