Hunchentoot installation questions... [solved]

Discussion of Common Lisp
Post Reply
roboticist
Posts: 5
Joined: Tue Feb 14, 2012 4:29 pm

Hunchentoot installation questions... [solved]

Post by roboticist » Tue Feb 14, 2012 5:39 pm

OK, I used quicklisp to install hunchentoot, and everything seems successful except that it doesn't seem to work. Can somebody suggest where I should go next?

# cat /etc/debian_version
6.0.4

* (asdf:oos 'asdf:load-op :hunchentoot-test)
debugger invoked on a ASDF:MISSING-DEPENDENCY in thread #<THREAD
"initial thread" RUNNING
{AAE5809}>:
component :DRAKMA not found, required by #<SYSTEM "hunchentoot-test">

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
0: [RETRY]

debugger invoked on a SIMPLE-ERROR in thread #<THREAD "initial thread" RUNNING
{AAE5809}>:
There is no applicable method for the generic function
#<STANDARD-GENERIC-FUNCTION ASDF:COMPONENT-NAME (1)>
when called with arguments
(:DRAKMA).

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
0: [RETRY] Retry calling the generic function.
1: [ABORT] Exit debugger, returning to top level.

(ASDF::%DO-ONE-DEP
#<ASDF:COMPILE-OP NIL {C66CE59}>
#<ASDF:SYSTEM "hunchentoot-test">
#<CLOSURE (FLET ASDF::COLLECT) {BBD1FED}>
ASDF:COMPILE-OP
:DRAKMA
NIL)
0]

These are the dependencies and packages loaded by quicklisp. drakma does not seem to be there. My instructions may be out of date, but it seems that all of the instructions are out of date.
; Loading "hunchentoot"
..................................................
[package alexandria.0.dev]........................
[package bordeaux-threads]........................
[package split-sequence]..........................
[package usocket].................................
[package trivial-backtrace].......................
[package rfc2388].................................
[package md5].....................................
[package trivial-garbage].........................
[package trivial-gray-streams]....................
[package flexi-streams]...........................
..................................................
..................................................
[package babel-encodings].........................
[package babel]...................................
[package cffi-sys]................................
[package cffi]....................................
[package cffi-features]...........................
[package cl+ssl]..................................
[package cl-ppcre]................................
..................................................
[package cl-fad]..................................
[package cl-fad-test].............................
[package cl-base64]...............................
[package chunga]..................................
[package url-rewrite].............................
[package hunchentoot]...........................
("hunchentoot")

I couldn't find hunchentoot in the expected directory:
(/usr/share/common-lisp/source/cl-hunchentoot
/usr/share/doc/cl-hunchentoot)

or systems in:

/usr/share/common-lisp/systems/hunchentoot-test.asd
/usr/share/common-lisp/systems/hunchentoot.asd

so I did my updatedb and tried find. It doesn't look like it actually installed.

root@bostrom:~# find / -name *hunchentoot* -print &
[1] 1159
root@bostrom:~# /root/quicklisp/dists/quicklisp/software/hunchentoot-1.2.2
/root/quicklisp/dists/quicklisp/software/hunchentoot-1.2.2/doc/hunchentoot.gif
/root/quicklisp/dists/quicklisp/software/hunchentoot-1.2.2/hunchentoot.asd
/root/quicklisp/dists/quicklisp/software/hunchentoot-1.2.2/www/hunchentoot.gif
/root/quicklisp/dists/quicklisp/software/hunchentoot-1.2.2/www/hunchentoot-doc.html
/root/quicklisp/dists/quicklisp/archives/hunchentoot-1.2.2.tgz
/root/quicklisp/dists/quicklisp/installed/systems/hunchentoot.txt
/root/quicklisp/dists/quicklisp/installed/releases/hunchentoot.txt
/root/.cache/common-lisp/sbcl-1.0.40.0.debian-linux-x86/root/quicklisp/dists/quicklisp/software/hunchentoot-1.2.2

[1]+ Done find / -name *hunchentoot* -print

I presume I crossed directions somewhere and I could use some advice.

Thanks,

Mike
Last edited by nuntius on Thu Feb 16, 2012 4:34 pm, edited 1 time in total.
Reason: change subject to mark solved

ramarren
Posts: 613
Joined: Sun Jun 29, 2008 4:02 am
Location: Warsaw, Poland
Contact:

Re: Hunchentoot installation questions...

Post by ramarren » Tue Feb 14, 2012 10:36 pm

Quicklisp resolves dependencies for installation by systems. You used quicklisp to install hunchentoot system, but not hunchentoot-test, which has additional dependencies required for testing.

It seems installed under /root/quicklisp/dists/quicklisp/software/hunchentoot-1.2.2/ . This looks as if you are running your Lisp as the administrator, which is probably not really a good idea.

Up to date documentation is always on the Hunchentoot webpage. I don't know if there are current tutorials, since Hunchentoot has been significantly changed some time ago, and I don't really use it, but enough time has passed that there should be.

Kompottkin
Posts: 94
Joined: Mon Jul 21, 2008 7:26 am
Location: München, Germany
Contact:

Re: Hunchentoot installation questions...

Post by Kompottkin » Wed Feb 15, 2012 2:10 am

In addition, note that you don't need to use asdf:oos at all. (ql:quickload :hunchentoot-test) should always work fine (and is easier to type, too), regardless of whether the system in question has already been downloaded or not. It's magic! :)

roboticist
Posts: 5
Joined: Tue Feb 14, 2012 4:29 pm

Re: Hunchentoot installation questions...

Post by roboticist » Thu Feb 16, 2012 9:12 am

Thank you. It has been many years since I've used LISP and I'm still catching up. The hutchentoot web page seems a little out-of-date, but it may just mean that current LISP users are taking for granted things I ought to know.

Is it possible to mark this topic as "Solved" somehow?

nuntius
Posts: 538
Joined: Sat Aug 09, 2008 10:44 am
Location: Newton, MA

Re: Hunchentoot installation questions... [solved]

Post by nuntius » Thu Feb 16, 2012 4:36 pm

Never done it before, but I just edited your original post so the subject would say "solved".

Roboticist, as original author, can you do the same? (I'm curious)

Post Reply