[Ecls-list] simple starts for newbies...

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Wed Aug 27 08:21:45 UTC 2008


Hi Teunis,

let me answer some of your questions and correct some problems

> starting with alexandria, I build like so:  (no outside requirements,
> http://common-lisp.net/project/alexandria/ )

There are in total four packages you need: alexandria,
trivial-features, babel, cffi. Download them and place them each one
in its own directory. I assume you did so.

> echo "(require 'asdf) (asdf:make-build :alexandria :type :fasl
> :monolithic nil)" | ecl
> result:
>  > Cannot find the external symbol MAKE-BUILD in #<"ASDF" package>.
> Broken at EVAL.No restarts available.

I am pretty sure that the previous line did not cause that error. You
probably did the following
echo "(progn (require 'asdf) (asdf:make-build :alexandria :type :fasl
:monolithic nil))" | ecl
Since the package ASDF is not loaded, then ASDF package is not to be found.

> try:
> echo "(asdf:make-build :alexandria :type :fasl :monolithic nil)" | ecl \
>    -load /usr/lib/ecl/asdf.fas
> I then try something like:
>  > (require 'alexandria)
> Module error: Don't know how to REQUIRE ALEXANDRIA.
> Broken at EVAL.No restarts available.
> Broken at EVAL.

This is becaus ASDF does not know where to find the required module. I
know this sounds stupid, but since the current directory is not listed
in the list  asdf::*central-registry*, then REQUIRE does not know
where to find the module.

A much simpler way is as follows. First copy the attached file and
store it in your home directory, with the name ~/.ecl Then, initialize
the list of ASDF system files by calling (update-asdf-systems),
finally, require whatever packages you need

What this file does is to store links to all the system files in a
single, hidden directory, and tells ASDF where this directory is. From
then on, when you REQUIRE a package, ASDF will find it and build the
missing fasl files. Since we use ASDF:LOAD-FASL-OP instead of LOAD-OP,
the binary files will be monolithic and take less space / memory.

Juanjo

-- 
Instituto de Física Fundamental
CSIC, Serrano, 113, Madrid 28040 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.lisp
Type: application/octet-stream
Size: 2514 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20080827/020cbf51/attachment.obj>


More information about the ecl-devel mailing list