quicklisp-client
quicklisp-client copied to clipboard
ql:add-to-init-file fails silently on CLisp/Ubuntu10.04
ql:add-to-init-file fails with CLisp 2.48, built from source, on Ubuntu10.04. I call it, and the file is unchanged afterwards. I thought it was just that you weren't calling finish-output on the stream (I've had that issue with CLisp before), but I tried fixing it and couldn't get it to work.
Could you please paste in a transcript of what happens after you call (ql:add-to-init-file)?
Sure:
[4]> (ql:add-to-init-file)
I will append the following lines to #P"/home/main/.clisprc.lisp":
;;; The following lines added by ql:add-to-init-file:
#-quicklisp
(let ((quicklisp-init (merge-pathnames "quicklisp\\setup.lisp" (user-homedir-pathname))))
(when (probe-file quicklisp-init)
(load quicklisp-init)))
Press Enter to continue.
#P"/home/main/.clisprc.lisp"
[5]>
And then I restart clisp, and quicklisp isn't loaded.
... but that's probably not very helpful. I found the problem - my clisp init file is ".clisprc", not ".clisprc.lisp", despite what the clisp documentation says. So quicklisp was writing to the wrong file, and this file wasn't loaded by clisp. I passed #P".clisprc" to ql:add-to-init-file and it worked fine.
Reproduced on Windows XP, CLisp 2.48. My init file is "C:\Documents and Settings\Owner\.clisprc"
, but quicklisp writes to "C:\Documents and Settings\Owner\Application Data\.clisprc.lisp".
, which isn't loaded.
Confirmed with clisp 2.49 on ubuntu 13.10