From: Piotr Chamera on
Haris Bogdanovic pisze:
> I tried to install packages from the web like for example
> (asdf-install:install :cffi)
> Then I press 1 for system wide install
> Then it starts downloading and when it finshes it says
> "Downloading 182805 bytes from
> http://common-lisp.net/project/cffi/releases/cffi_latest.tar.gz ..."
> Then after pressing 0 for skip-gpg-check option it says
> "Installing c:\lisp\CFFI.asdf-install-tmp in
> C:\lisp\sbcl\site\,C:\lisp\sbcl\site-systems\"
> and then I get error:
> "couldn't fork child process: No such file or directory"
> The "c:\lisp\CFFI.asdf-install-tmp" is there after downloading
>
> I really don't know where the problem is ?
>
> For local files I tried all combinations of slashes (\\, \, /) in path name
> to the package
> but nothing works.
>
> How can I check that some package is installed and/or loaded ?

Probably asdf-install can't find or execute external program „tar”
to extract archive.
From: Haris Bogdanovi� on
> Probably asdf-install can't find or execute external program "tar"
> to extract archive.

Yes, that was the reason for the error. I installed "tar" and put it in
path.
Now I get:
"Installing WXCL in C:\lisp\sbcl\site\,C:\lisp\sbcl\site-systems\
NIL"
There is nothing in those two directories after install and when I try
(require 'wxcl) in REPL I get the following error:
"Don't know how to REQUIRE WXCL.
[Condition of type SB-INT:EXTENSION-FAILURE]"

Tried same for cffi package, the same thing happens.
There is noting installed in those two directories and cannot "require"
package.

What is the problem now ?


From: Haris Bogdanovic on
I downloaded wxcl package with all its dependancies and
extracted that to the same folder where asdf can see it
("c:\lisp\sbcl\site-systems")
but every time I end up with different error.
Perhaps some files overlap others when extracting to the same folder.
How do I add folders ?
I tried following from the manual:

(setf asdf:*central-registry*
'(*default-pathname-defaults*
#p"my-folder-1"
#p"my-folder-2"))

but it doesn't work.
Typing *default-pathname-defaults* in REPL gives me c:\\lisp\\..
By typing "asdf:*central-registry*" I get:
((MERGE-PATHNAMES ".sbcl/systems/" (USER-HOMEDIR-PATHNAME))
(LET ((ASDF::HOME (POSIX-GETENV "SBCL_HOME")))
(WHEN (AND ASDF::HOME (NOT (STRING= ASDF::HOME "")))
(MERGE-PATHNAMES "site-systems/" (TRUENAME ASDF::HOME))))
*DEFAULT-PATHNAME-DEFAULTS*)

Where can I see my newly added folders ?

I would like to add "C:\lisp\sbcl\site-systems\<package-name>" directories
for each package. How do I do it ?


From: Haris Bogdanovi� on
> (setf asdf:*central-registry*
> '(*default-pathname-defaults*
> #p"my-folder-1"
> #p"my-folder-2"))

I missunderstood those two "#p".
I'm new to lisp.
I wrote now:

(setf asdf:*central-registry*
'(*default-pathname-defaults*
"c:/lisp/sbcl/site-systems/wxcl"
"c:/lisp/sbcl/site-systems/cffi"))

and when I type "asdf:*central-repository*" I get:

(*DEFAULT-PATHNAME-DEFAULTS* "c:/lisp/sbcl/site-systems/wxcl"
"c:/lisp/sbcl/site-systems/cffi")

I unpacked wxcl package in "c:/lisp/sbcl/site-systems/wxcl"
and tried (asdf:operate 'asdf:load-op 'wxcl)
but it replies with:

component "wxcl" not found
[Condition of type ASDF:MISSING-COMPONENT

What now ?
Is *default-pathname-defaults* a prefix for all other folders ?
When *default-pathname-defaults* is "c:/lisp" should I then just add
"/sbcl/site-systems/wxcl" to have "c:/lisp/sbcl/site-systems/wxcl" as my
additional folder ?


From: Haris Bogdanovi� on
> (setf asdf:*central-registry*
> '(*default-pathname-defaults*
> "c:/lisp/sbcl/site-systems/wxcl"
> "c:/lisp/sbcl/site-systems/cffi"))

The pathnames have to have a forward slash at the end like this:

(setf asdf:*central-registry*
'(*default-pathname-defaults*
"c:/lisp/sbcl/site-systems/wxcl/"
"c:/lisp/sbcl/site-systems/cffi/"))

Now asdf installs everything.
I installed all dependancies of "wxcl".
Then when I try to install "wxcl" I get the following error:

The constant WXCL:+LIBRARY-NAME+ is being redefined (from
"../lib/wxc-msw2.6.2.dll" to "../lib/wxc-msw2.6.2.dll")
[Condition of type DEFCONSTANT-UNEQL]

What that means ? Is that an error within the package itself or it has to do
with something else?