在 LispBox 中安裝 aserve 的最簡單辦法--使用 quicklisp

在 LispBox 中安裝 aserve 的最簡單辦法--使用 quicklisp html

終於解決一個困擾好久的問題,之前一直沒辦法正確安裝 aserve (就是那個免費版的 portableaserve),不是這裏報錯就是那裏報錯,老是提示流相關的問題,當時用 quicklisp 安裝了一些流,可是最終仍是沒能安裝好 aserve (當時貌似沒有直接用 quicklisp 安裝 aserve). git

昨天突然想到爲何不直接試試拿 quicklisp 安裝 aserve, 也許其中須要修改的代碼已經被修改過了(改天有時間了能夠對照一下代碼,看看修改了哪些地方), 今天試了一下,果真OK! web

終於不用忍受ACL那個醜陋的界面, 能夠直接在個人 Emacs 環境下調試 Web 程序了! :) shell

CL-USER> (ql:quickload "aserve")
To load "aserve":
  Install 5 Quicklisp releases:
    cl-ppcre ironclad nibbles portableaserve puri
; Fetching #<URL "http://beta.quicklisp.org/archive/puri/2010-10-06/puri-20101006-git.tgz">
; 33.99KB
==================================================
34,803 bytes in 0.03 seconds (1166.39KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/archive/nibbles/2013-03-12/nibbles-20130312-git.tgz">
; 20.58KB
==================================================
21,075 bytes in 0.01 seconds (1448.45KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/archive/ironclad/2013-01-28/ironclad_0.32.1.tgz">
; 504.70KB
==================================================
516,817 bytes in 2.97 seconds (169.93KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/archive/cl-ppcre/2013-04-20/cl-ppcre-2.0.4.tgz">
; 154.37KB
==================================================
158,070 bytes in 0.68 seconds (225.40KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/archive/portableaserve/2013-04-20/portableaserve-20130420-git.tgz">
; 579.26KB
==================================================
593,163 bytes in 2.32 seconds (250.14KB/sec)
; Loading "aserve"
..................................................
[package nibbles].................................
[package ironclad]................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
..................................................
[package cl-ppcre]................................
..................................................
..................................................
[package puri]....................................
[package acl-compat.excl].........................
[package acl-compat.mp]...........................
[package de.dataheaven.chunked-stream-mixin]......
[package acl-compat.socket].......................
[package acl-compat.system].......................
[package gray-stream].............................
[package net.html.generator]......................
[package net.aserve]..............................
[package net.aserve.client].......................
..................................................
..................................................
...............
("aserve")
CL-USER>
能夠來這個地址 

http://www.quicklisp.org/beta/releases.html socket

查詢須要安裝的包 ui

如下爲試驗程序: 調試

CL-USER> (defpackage :com.gigamonkeys.web
	   (:use :cl :net.aserve))
#<Package "COM.GIGAMONKEY.WEB">
CL-USER> (in-package :com.gigamonkeys.web)
#<Package "COM.GIGAMONKEYS.WEB">
WEB> (start :port 2001)
127.0.0.1 - - [Mon, 12 Aug 2013 05:44:19 GMT] "GET / HTTP/1.1" 404 -1
127.0.0.1 - - [Mon, 12 Aug 2013 05:44:20 GMT] "GET /favicon.ico HTTP/1.1" 404 -1
#<WSERVER port 2001 #x3020015CCCED>
WEB>
相關文章
相關標籤/搜索