Having some problems getting asdf to work with lispworks personal...
Having downloaded and extracted asdf and asdf install into directories
I've followed the tutorial on
http://www.weitz.de/asdf-install/#intro
And it's fine up until
(asdf:operate 'asdf:compile-op :asdf-install)
(asdf:operate 'asdf:load-op :asdf-install)
neither of which worked, so I tried loading load-asdf-install.lisp as
the asdf-install README suggests, and that seemed to compile or eval
fine
But if I try and install something, from a local or web file, I get
this error which I cannot fathom
(ARRAY NIL) is an illegal type specifier.
Justin
From: Edi Weitz
Subject: Re: Using asdf with lispworks personal
Date:
Message-ID: <uacf9e28y.fsf@agharta.de>
On 9 Dec 2005 19:55:00 -0800, "justinhj" <········@gmail.com> wrote:
> Having some problems getting asdf to work with lispworks personal...
>
> Having downloaded and extracted asdf and asdf install into
> directories I've followed the tutorial on
>
> http://www.weitz.de/asdf-install/#intro
>
> And it's fine up until
>
> (asdf:operate 'asdf:compile-op :asdf-install)
> (asdf:operate 'asdf:load-op :asdf-install)
>
> neither of which worked
How? What message did you get?
> so I tried loading load-asdf-install.lisp as the asdf-install README
> suggests, and that seemed to compile or eval fine
>
> But if I try and install something, from a local or web file, I get
> this error which I cannot fathom
>
> (ARRAY NIL) is an illegal type specifier.
You need to be a bit more specific. Which OS do you use? Are you
using the latest version of LW?
I suspect you might be running into the problem that the Personal
Edition doesn't load the initialization file. Bill Clementson
describes a workaround for Windows here:
<http://bc.tech.coop/blog/040315.html>
HTH,
Edi.
--
Lisp is not dead, it just smells funny.
Real email: (replace (subseq ·········@agharta.de" 5) "edi")
Edi Weitz wrote:
> On 9 Dec 2005 19:55:00 -0800, "justinhj" <········@gmail.com> wrote:
>
> > Having some problems getting asdf to work with lispworks personal...
> >
> > Having downloaded and extracted asdf and asdf install into
> > directories I've followed the tutorial on
> >
> > http://www.weitz.de/asdf-install/#intro
> >
> > And it's fine up until
> >
> > (asdf:operate 'asdf:compile-op :asdf-install)
> > (asdf:operate 'asdf:load-op :asdf-install)
> >
> > neither of which worked
>
> How? What message did you get?
It's saying
component "asdf-install" not found
I wonder if it's a path issue.
From: Edi Weitz
Subject: Re: Using asdf with lispworks personal
Date:
Message-ID: <u64pwlnu9.fsf@agharta.de>
On 10 Dec 2005 11:28:17 -0800, "justinhj" <········@gmail.com> wrote:
> I wonder if it's a path issue.
Might as well be. Post the exact steps of what you did before you got
the error message and maybe someone can help.
--
Lisp is not dead, it just smells funny.
Real email: (replace (subseq ·········@agharta.de" 5) "edi")
Edi Weitz wrote:
> On 10 Dec 2005 11:28:17 -0800, "justinhj" <········@gmail.com> wrote:
>
> > I wonder if it's a path issue.
>
> Might as well be. Post the exact steps of what you did before you got
> the error message and maybe someone can help.
>
> --
>
> Lisp is not dead, it just smells funny.
>
> Real email: (replace (subseq ·········@agharta.de" 5) "edi")
I'm trying to follow the steps on your page
http://www.weitz.de/asdf-install/
I wonder if anyone out there has asdf and lispworks personal and could
tell me the steps they use to get it working?
Justin
From: Edi Weitz
Subject: Re: Using asdf with lispworks personal
Date:
Message-ID: <u64pwctdl.fsf@agharta.de>
On 10 Dec 2005 16:53:37 -0800, "justinhj" <········@gmail.com> wrote:
> I wonder if anyone out there has asdf and lispworks personal and
> could tell me the steps they use to get it working?
I wonder why you expect people to help you if you don't even bother to
answer questions.
--
Lisp is not dead, it just smells funny.
Real email: (replace (subseq ·········@agharta.de" 5) "edi")
Edi Weitz wrote:
> On 10 Dec 2005 16:53:37 -0800, "justinhj" <········@gmail.com> wrote:
>
> > I wonder if anyone out there has asdf and lispworks personal and
> > could tell me the steps they use to get it working?
>
> I wonder why you expect people to help you if you don't even bother to
> answer questions.
>
> --
>
> Lisp is not dead, it just smells funny.
>
> Real email: (replace (subseq ·········@agharta.de" 5) "edi")
I'm trying to answer your questions, I've given two specific error
messages so far.
Firstly (load (compile-file "asdf.lisp"))
this works so far so good
my first problem is that I can't get the automatic startup of asdf and
asdf-install because doing something like the suggested ...
lispworks.exe -init .lispworks
Does not load the .lispworks file on start up
Ok so if I can't do that it's no big deal if I have to load up a file
manually and run it.
But what should that file contain...
Is the cygwin and ln stuff really necessary, because I want to run asdf
from within the lispworks IDE and that's not possible from within a
cygwin environment, afaik???
Erm what else can I add to help...
The biggest problem is the error message I posted about not being able
to find asdf-install, I think if I could crack that I would be able to
use asdf.
So where is it looking? Is there a special variable I can check the
value of to see why my set up is not working?
I've made a directory asdf-registry and done the following
(pushnew "/path/where/you/unpacked/asdf-install/"
asdf:*central-registry* :test #'equal)
and it's just not working.
I am trying to help you to help me you know, it's just that unless you
know the asdf system intimatly you really have no idea what the hell
it's trying to do.
Justin
From: Edi Weitz
Subject: Re: Using asdf with lispworks personal
Date:
Message-ID: <uacf8uxwf.fsf@agharta.de>
On 10 Dec 2005 18:53:53 -0800, "justinhj" <········@gmail.com> wrote:
> I'm trying to answer your questions, I've given two specific error
> messages so far.
I asked you to post the /exact/ steps that lead to your error
messages. You haven't done that so far.
> my first problem is that I can't get the automatic startup of asdf
> and asdf-install because doing something like the suggested ...
>
> lispworks.exe -init .lispworks
I posted a link to a workaround for Windows. Did you try that one?
> Is the cygwin and ln stuff really necessary, because I want to run
> asdf from within the lispworks IDE and that's not possible from
> within a cygwin environment, afaik???
All of these questions are answered in the tutorial which I suspect
you haven't really read.
1. "If you want to use ASDF-INSTALL on Windows you must install Cygwin
first."
The Cygwin stuff is necessary because ASDF-INSTALL wants to call
GnuPG.
2. "Windows note: You can leave out the ln command."
3. You don't have to start LW from within Cygwin. Nobody said that.
> I've made a directory asdf-registry and done the following
>
> (pushnew "/path/where/you/unpacked/asdf-install/"
> asdf:*central-registry* :test #'equal)
>
> and it's just not working.
Where exactly have you created that directory? And did you really
copy the example path "/path/where/you/unpacked/asdf-install/" and
executed the command like above? If you haven't I wonder what's so
complicated about posting what you /really/ did instead.
--
Lisp is not dead, it just smells funny.
Real email: (replace (subseq ·········@agharta.de" 5) "edi")
Edi Weitz wrote:
> On 10 Dec 2005 18:53:53 -0800, "justinhj" <········@gmail.com> wrote:
>
> > I'm trying to answer your questions, I've given two specific error
> > messages so far.
>
> I asked you to post the /exact/ steps that lead to your error
> messages. You haven't done that so far.
Yes I have. I'm following the tutorial. Those are the steps I'm trying
to follow. The first thing I did was follow those steps, and I posted
the errors that created. Now I'm trying many random variations on them
to see if I can get it to work.
> > my first problem is that I can't get the automatic startup of asdf
> > and asdf-install because doing something like the suggested ...
> >
> > lispworks.exe -init .lispworks
>
> I posted a link to a workaround for Windows. Did you try that one?
No, because it seemed to be a long process required to get slime
working with lispworks which I don't need to do right now. I guess if
that's required then I'll have a look at getting it working.
> > Is the cygwin and ln stuff really necessary, because I want to run
> > asdf from within the lispworks IDE and that's not possible from
> > within a cygwin environment, afaik???
>
> All of these questions are answered in the tutorial which I suspect
> you haven't really read.
I actually have.
> 1. "If you want to use ASDF-INSTALL on Windows you must install Cygwin
> first."
>
> The Cygwin stuff is necessary because ASDF-INSTALL wants to call
> GnuPG.
But you can use asdf without GnuPG just by ignoring the PG checks which
I do with CLISP without any trouble.
> 2. "Windows note: You can leave out the ln command."
>
> 3. You don't have to start LW from within Cygwin. Nobody said that.
I was under the impression you need cygwin for the ln usage, but since
I missed the line that says you don't need ln on windows thats fine.
> > I've made a directory asdf-registry and done the following
> >
> > (pushnew "/path/where/you/unpacked/asdf-install/"
> > asdf:*central-registry* :test #'equal)
> >
> > and it's just not working.
>
> Where exactly have you created that directory? And did you really
> copy the example path "/path/where/you/unpacked/asdf-install/" and
> executed the command like above? If you haven't I wonder what's so
> complicated about posting what you /really/ did instead.
>
not that you should need the actual directroy I'm using to answer the
question but here...
(pushnew "C:\\home\\asdf-registry" asdf:*central-registry* :test
#'equal)
justinhj wrote:
>
>
> not that you should need the actual directroy I'm using to answer the
> question but here...
>
> (pushnew "C:\\home\\asdf-registry" asdf:*central-registry* :test
> #'equal)
>
Have you tried the trailing slash solution?
(pushnew "C:\\home\\asdf-registry\\" asdf:*central-registry* :test #'equal)
or
(pushnew "C:/home/asdf-registry/" asdf:*central-registry* :test
#'string-equal)
Wade
Wade Humeniuk wrote:
> justinhj wrote:
>
> >
> >
> > not that you should need the actual directroy I'm using to answer the
> > question but here...
> >
> > (pushnew "C:\\home\\asdf-registry" asdf:*central-registry* :test
> > #'equal)
> >
>
> Have you tried the trailing slash solution?
>
> (pushnew "C:\\home\\asdf-registry\\" asdf:*central-registry* :test #'equal)
>
> or
>
> (pushnew "C:/home/asdf-registry/" asdf:*central-registry* :test
> #'string-equal)
>
> Wade
Yeah that was a problem thanks! I needed to do this...
(setf ASDF-INSTALL::*CYGWIN-BASH-PROGRAM* "C:\\Cygwin\\bin\\bash.exe")
Next problems, although hello-lisp installed correctly in the registry
directory
I get this.,.,
CL-USER 6 > (asdf:operate 'asdf:load-op :hello-lisp)
Error: component "hello-lisp" not found
1 (abort) Return to level 0.
2 Return to top loop level 0.
I also tried the thing Ed advised about getting slime and lispworks
working
That doesn't work out of the box either.
I downloaded the wsh scripting component listed on the website and when
I run the exact script I get the following output when running from
emacs
/home/xxxx/lw-slime.vbs: line 1: Dim: command not found
/home/xxxx/lw-slime.vbs: line 2: syntax error near unexpected token `('
/home/xxxx/lw-slime.vbs: line 2: `Set Wsh =
Wscript.CreateObject("Wscript.Shel\
l")'
I'm getting to the stage I can't remember what I was actually going to
do when I get all this stuff working :-)
From: Edi Weitz
Subject: Re: Using asdf with lispworks personal
Date:
Message-ID: <ulkyrcyee.fsf@agharta.de>
On 11 Dec 2005 05:45:27 -0800, "justinhj" <········@gmail.com> wrote:
> not that you should need the actual directroy I'm using to answer
> the question but here...
Well, your actual directory already reveals an error (see below), so
obviously it makes a difference whether you post your actual stuff or
just example code from the website. But hey, if you think you know
better it's fine...
> (pushnew "C:\\home\\asdf-registry" asdf:*central-registry* :test
> #'equal)
From the tutorial:
"Note: It is important that you add a directory here, not a file, so
make sure the namestring ends with a slash!"
--
Lisp is not dead, it just smells funny.
Real email: (replace (subseq ·········@agharta.de" 5) "edi")
Edi Weitz wrote:
> On 11 Dec 2005 05:45:27 -0800, "justinhj" <········@gmail.com> wrote:
>
> > not that you should need the actual directroy I'm using to answer
> > the question but here...
>
> Well, your actual directory already reveals an error (see below), so
> obviously it makes a difference whether you post your actual stuff or
> just example code from the website. But hey, if you think you know
> better it's fine...
>
> > (pushnew "C:\\home\\asdf-registry" asdf:*central-registry* :test
> > #'equal)
>
> From the tutorial:
>
> "Note: It is important that you add a directory here, not a file, so
> make sure the namestring ends with a slash!"
>
Fair enough although to be fair I'd tried various combinations of slash
direction and slashes either at the end or not, and it doesn't make
much difference until you get everything right at the same time...
(load "c:/jhj/asdf/asdf.lisp")
(pushnew "C:/Documents and Settings/Justin
Heyes-Jones/.asdf-install-dir/" asdf:*central-registry* :test #'equal)
(pushnew "c:/jhj/asdf-install/" asdf:*central-registry* :test #'equal)
(asdf:operate 'asdf:compile-op :asdf-install)
(asdf:operate 'asdf:load-op :asdf-install)
(pushnew 'asdf-install:sysdef-source-dir-search
asdf:*system-definition-search-functions*)
Anyway I'm now up and running again if I just load and eval the above ^
What I finally figured out was that line which I missed in the tutorial
and after reading the special instructions for the CLISP version (which
you link to), which is also required for the lispworks personal version
(I guess unless you put cygwin in "program files" everyone will need to
patch "installer.lisp" to get this working)
Thanks for the help
Justin
> Thanks for the help
>
> Justin
>
Glad you finally got it working!
These things can be a pig to get up..
John
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
On 10 Dec 2005 16:53:37 -0800, "justinhj" <········@gmail.com> wrote:
>
> I wonder if anyone out there has asdf and lispworks personal and could
> tell me the steps they use to get it working?
In case it helps, I'm using ASDF but not ASDF-INSTALL. Nevertheless
here's a transcript of me loading ASDF and then CFFI (pardon the paths
specific to my machine):
CL-USER 1 > (lisp-implementation-type)
"LispWorks Personal Edition"
CL-USER 2 > (lisp-implementation-version)
"4.4.6"
CL-USER 3 > (load "c:/projects/third_party/asdf/asdf.lisp")
; Loading text file c:\projects\third_party\asdf\asdf.lisp
; Loading fasl file C:\Program Files\LispWorks Personal\lib\4-4-0-0\load-on-demand\pcl\macros\loop.fsl
#P"c:/projects/third_party/asdf/asdf.lisp"
CL-USER 4 > (pushnew "c:/projects/third_party/asdf-repo/cffi-luis-051205-0148/" asdf:*central-registry* :test #'equal)
("c:/projects/third_party/asdf-repo/cffi-luis-051205-0148/" *DEFAULT-PATHNAME-DEFAULTS*)
CL-USER 5 > (asdf:operate 'asdf:load-op :cffi)
; loading system definition from c:\projects\third_party\asdf-repo\cffi-luis-051205-0148\cffi.asd into #<PACKAGE ASDF8902>
; Loading text file c:\projects\third_party\asdf-repo\cffi-luis-051205-0148\cffi.asd
; registering #<SYSTEM CFFI 206882E4> as CFFI
;;; Compiling file c:\projects\third_party\asdf-repo\cffi-luis-051205-0148\src\utils.lisp ...
;;;
;;; ...compiler messages etc...
;;;
; Loading fasl file c:\projects\third_party\asdf-repo\cffi-luis-051205-0148\src\objects.fsl
NIL
CL-USER 6 >
--
Jack Unrue
Jack Unrue wrote:
> On 10 Dec 2005 16:53:37 -0800, "justinhj" <········@gmail.com> wrote:
> >
> > I wonder if anyone out there has asdf and lispworks personal and could
> > tell me the steps they use to get it working?
>
> In case it helps, I'm using ASDF but not ASDF-INSTALL. Nevertheless
> here's a transcript of me loading ASDF and then CFFI (pardon the paths
> specific to my machine):
>
> CL-USER 1 > (lisp-implementation-type)
> "LispWorks Personal Edition"
>
> CL-USER 2 > (lisp-implementation-version)
> "4.4.6"
>
> CL-USER 3 > (load "c:/projects/third_party/asdf/asdf.lisp")
> ; Loading text file c:\projects\third_party\asdf\asdf.lisp
> ; Loading fasl file C:\Program Files\LispWorks Personal\lib\4-4-0-0\load-on-demand\pcl\macros\loop.fsl
> #P"c:/projects/third_party/asdf/asdf.lisp"
>
> CL-USER 4 > (pushnew "c:/projects/third_party/asdf-repo/cffi-luis-051205-0148/" asdf:*central-registry* :test #'equal)
> ("c:/projects/third_party/asdf-repo/cffi-luis-051205-0148/" *DEFAULT-PATHNAME-DEFAULTS*)
>
> CL-USER 5 > (asdf:operate 'asdf:load-op :cffi)
> ; loading system definition from c:\projects\third_party\asdf-repo\cffi-luis-051205-0148\cffi.asd into #<PACKAGE ASDF8902>
> ; Loading text file c:\projects\third_party\asdf-repo\cffi-luis-051205-0148\cffi.asd
> ; registering #<SYSTEM CFFI 206882E4> as CFFI
> ;;; Compiling file c:\projects\third_party\asdf-repo\cffi-luis-051205-0148\src\utils.lisp ...
> ;;;
> ;;; ...compiler messages etc...
> ;;;
> ; Loading fasl file c:\projects\third_party\asdf-repo\cffi-luis-051205-0148\src\objects.fsl
> NIL
>
> CL-USER 6 >
>
> --
> Jack Unrue
Ah, that got me a little further thanks.
First I was using \ for pathnames, and doubling it up to give \\ which
I do in lispworks usually. But if I use / for pathnames then I get a
lot further...
Following the exact steps below I'm now able to load asdf and
asdf-install
(load "c:/jhj/asdf/asdf.lisp")
#-:asdf (load "c:/jhj/asdf")
(pushnew "C:/Documents and Settings/xxxx/.asdf-install-dir"
asdf:*central-registry* :test #'equal)
(pushnew "c:/xxxx/asdf-install/" asdf:*central-registry* :test #'equal)
(asdf:operate 'asdf:compile-op :asdf-install)
(asdf:operate 'asdf:load-op :asdf-install)
Now I can try and do install operations, but they don't work.
I think I have more path problems.
CL-USER 21 > (asdf-install:install "C:/download/hello-lisp-0.2.tar.gz")
Install where?
0) System-wide install:
System in \usr\local\asdf-install\site-systems\
Files in \usr\local\asdf-install\site\
1) Personal installation:
System in C:\Documents and Settings\xxxx\.asdf-install-dir\systems\
Files in C:\Documents and Settings\xxxx\.asdf-install-dir\site\
2) Abort installation.
--> 1
;;; ASDF-INSTALL: Installing C:/download/hello-lisp-0.2.tar.gz in
C:\Documents and Settings\xxxx\.asdf-install-dir\site\, C:\Documents
and Settings\xxxx\.asdf-install-dir\systems\
Error: System Call WIN32-CREATE-PROCESS failed: 3: The system cannot
find the path specified.
command: C:\PROGRA~1\Cygwin\bin\bash.exe -l -c "tar -C \"`cygpath
'C:\Documents and Settings\xxxx\.asdf-install-dir\site\'`\" -xzvf
\"`cygpath 'C:\download\hello-lisp-0.2.tar.gz'`\""
1 (abort) Return to level 0.
2 Return to top loop level 0.
Type :b for backtrace, :c <option number> to proceed, or :? for other
options
CL-USER 22 : 1 > :b
Call to WIN32::CREATE-PROCESS
Call to WIN32::OPEN-PIPE
Call to ASDF-INSTALL::RETURN-OUTPUT-FROM-PROGRAM
Call to ASDF-INSTALL::INSTALL-PACKAGE
Call to (SUBFUNCTION (LABELS ASDF-INSTALL::ONE-ITER)
ASDF-INSTALL:INSTALL)
Call to ASDF-INSTALL:INSTALL
Call to SPECIAL::%EVAL-NOHOOK
Call to IV:PROCESS-TOP-LEVEL
Call to CAPI::CAPI-TOP-LEVEL-FUNCTION
Call to CAPI::INTERACTIVE-PANE-TOP-LOOP
Call to (SUBFUNCTION MP::PROCESS-SG-FUNCTION
MP::INITIALIZE-PROCESS-STACK)
On 11 Dec 2005 06:55:00 -0800, "justinhj" <········@gmail.com> wrote:
>
> Ah, that got me a little further thanks.
Cool!
> [snip]
>
> Now I can try and do install operations, but they don't work.
>
> I think I have more path problems.
>
> CL-USER 21 > (asdf-install:install "C:/download/hello-lisp-0.2.tar.gz")
> Install where?
> 0) System-wide install:
> System in \usr\local\asdf-install\site-systems\
> Files in \usr\local\asdf-install\site\
> 1) Personal installation:
> System in C:\Documents and Settings\xxxx\.asdf-install-dir\systems\
> Files in C:\Documents and Settings\xxxx\.asdf-install-dir\site\
> 2) Abort installation.
> --> 1
> ;;; ASDF-INSTALL: Installing C:/download/hello-lisp-0.2.tar.gz in
> C:\Documents and Settings\xxxx\.asdf-install-dir\site\, C:\Documents
> and Settings\xxxx\.asdf-install-dir\systems\
>
> Error: System Call WIN32-CREATE-PROCESS failed: 3: The system cannot
> find the path specified.
> command: C:\PROGRA~1\Cygwin\bin\bash.exe -l -c "tar -C \"`cygpath
Where do you have Cygwin installed? Edi has this link in the
Prerequisites section of his tutorial:
http://groups.google.com/group/comp.lang.lisp/msg/199c157e4d779658?output=gplain
I know you're on LW not CLISP, but I think issue 1) regarding the
value of *cygwin-bash-program* might be relevant :-)
> 'C:\Documents and Settings\xxxx\.asdf-install-dir\site\'`\" -xzvf
> \"`cygpath 'C:\download\hello-lisp-0.2.tar.gz'`\""
> 1 (abort) Return to level 0.
> 2 Return to top loop level 0.
>
> [snip]
--
Jack Unrue
Edi Weitz wrote:
> On 9 Dec 2005 19:55:00 -0800, "justinhj" <········@gmail.com> wrote:
>
> > Having some problems getting asdf to work with lispworks personal...
> >
> > Having downloaded and extracted asdf and asdf install into
> > directories I've followed the tutorial on
> >
> > http://www.weitz.de/asdf-install/#intro
> >
> > And it's fine up until
> >
> > (asdf:operate 'asdf:compile-op :asdf-install)
> > (asdf:operate 'asdf:load-op :asdf-install)
> >
> > neither of which worked
>
> How? What message did you get?
>
> > so I tried loading load-asdf-install.lisp as the asdf-install README
> > suggests, and that seemed to compile or eval fine
> >
> > But if I try and install something, from a local or web file, I get
> > this error which I cannot fathom
> >
> > (ARRAY NIL) is an illegal type specifier.
>
> You need to be a bit more specific. Which OS do you use? Are you
> using the latest version of LW?
>
> I suspect you might be running into the problem that the Personal
> Edition doesn't load the initialization file. Bill Clementson
> describes a workaround for Windows here:
>
> <http://bc.tech.coop/blog/040315.html>
>
> HTH,
> Edi.
>
> --
>
> Lisp is not dead, it just smells funny.
>
> Real email: (replace (subseq ·········@agharta.de" 5) "edi")
Oh and it's lispworks personal 4.4.6 under windows
"justinhj" <········@gmail.com> writes:
> (asdf:operate 'asdf:compile-op :asdf-install)
> (asdf:operate 'asdf:load-op :asdf-install)
>
> neither of which worked, so I tried loading load-asdf-install.lisp as
> the asdf-install README suggests, and that seemed to compile or eval
> fine
You may check section "How it's used - personal lisp installations" of
this page:
ASDF System
http://www.cliki.net/ASDF%20System
Paolo
--
Why Lisp? http://wiki.alu.org/RtL%20Highlight%20Film
Recommended Common Lisp libraries/tools:
- ASDF/ASDF-INSTALL: system building/installation
- CL-PPCRE: regular expressions
- CFFI: Foreign Function Interface