Guile-2.0.3

Introduction to Guile

The Guile package contains the Project GNU's extension language library. Guile also contains a stand alone Scheme interpreter.

This package is known to build and work properly using an LFS-7.0 platform.

Package Information

Guile Dependencies

Required

GC-7.1 and libunistring-0.9.3

Optional

Emacs-22.1

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/guile

Installation of Guile

Install Guile by running the following commands:

sed -i 's/gc_version.h/gc.h/' \
    test-suite/standalone/test-pthread-create-secondary.c &&

./configure --prefix=/usr &&
make                      &&
make html                 &&

makeinfo --plaintext -o doc/r5rs/r5rs.txt   doc/r5rs/r5rs.texi   &&
makeinfo --plaintext -o doc/ref/guile.txt   doc/ref/guile.texi

If you have TeX Live-20110705 installed and wish to build alternate formats (PDF and postscript) of the documentation, issue the following commands:

for DIRNAME in r5rs ref 
do
  make -k -C doc/${DIRNAME} pdf ps 
done &&
unset DIRNAME

To test the results, issue: make check.

Now, as the root user:

make install &&

find examples -name "Makefile*" -exec rm {} \; &&
install -v -m755 -d /usr/share/doc/guile-2.0.3 &&
cp -vR examples   /usr/share/doc/guile-2.0.3 &&

for DIRNAME in r5rs ref
do
  install -v -m755 -d /usr/share/doc/guile-2.0.3/${DIRNAME} &&
  install -v -m644    doc/${DIRNAME}/*.txt \
                      /usr/share/doc/guile-2.0.3/${DIRNAME} &&
  if [ -d             doc/${DIRNAME}/${DIRNAME}.html ]; then
    cp -v -R          doc/${DIRNAME}/${DIRNAME}.html \
                      /usr/share/doc/guile-2.0.3/${DIRNAME}
  fi
done &&

cp -v -R doc/ref/guile.html /usr/share/doc/guile-2.0.3/ref

If you built the alternate formats of the documentation, install them using the following commands issued by the root user:

for DIRNAME in r5rs ref 
do
  install -v -m644 doc/${DIRNAME}/*.{pdf,ps,dvi} \
                   /usr/share/doc/guile-2.0.3/${DIRNAME}
done

Command Explanations

sed -i 's/gc_version.h/gc.h/' test-suite/...-secondary.c: This command corrects an error that prevents the test suite from running.

Contents

Installed Programs: guild, guile, guile-config, guile-snarf, and guile-tools
Installed Libraries: libguile-2.0.{so,a} and /libguilereadline-v-18.{so,a}
Installed Directories: /usr/include/guile, /usr/lib/guild, /usr/share/doc/guile-2.0.3 and /usr/share/guile

Short Descriptions

guile

is a stand-alone Scheme interpreter for Guile.

guile-config

is a Guile script which provides the information necessary to link your programs against the Guile library, in much the same way PkgConfig does.

guile-snarf

is a script to parse declarations in your C code for Scheme visible C functions, i Scheme objects to be used by C code, etc.

guile-tools

is a wrapper program installed along with guile which knows where a particular module is installed and calls it passing its args to a program.

Last updated on 2011-12-05 22:58:00 +0000