X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=doc%2Fintro.sgml;h=4ee389efd7bb264db0537600f8b90353c089f74d;hp=25c672ea4429c990335d493de3aecac286b5b58e;hb=d211aedbcb8ab72a35ec8a457bba2e368da97ba3;hpb=01e78fad2d9c4c18f11ec032c80afa59212ba109 diff --git a/doc/intro.sgml b/doc/intro.sgml index 25c672e..4ee389e 100644 --- a/doc/intro.sgml +++ b/doc/intro.sgml @@ -60,7 +60,7 @@ of &clsql;. &uffi; - &clsql; uses &clsql; uses &uffi; as a Foreign Function Interface (FFI) to support multiple &cl; @@ -72,6 +72,16 @@ are zip files for Microsoft Windows systems and gzipped tar files for other systems. + + XPTest (optional) + The test suite for &clsql; uses the onShore Development's +XPTest package. onShore has graciously put the package in the public +domain. You can download the package from onShore's web site. +This package is not required except if you wish to run the &clsql; +test suite. + + Supported Common Lisp Implementation @@ -114,35 +124,35 @@ the following implementations are supported: - Build <filename>clsql-mysql</filename> helper library - &mysql; uses functions that require 64-bit integer + Build &c; helper libraries + &clsql; uses functions that require 64-bit integer parameters and return values. The &ffi; in most &clsql; -implementations do not support 64-bit integers. Thus, a C helper -library is required to break these 64-bit integers into two compatible +implementations do not support 64-bit integers. Thus, C helper +libraries are required to break these 64-bit integers into two compatible 32-bit integers. -Makefile's for Microsoft Windows and GNU/Solaris systems -are supplied to build this library. In addition, the DLL and LIB +Makefiles for Microsoft Windows and GNU/Solaris systems +are supplied to build the libraries. Since many Microsoft Windows +users don't have access to a compiler, the DLL and LIB files for Microsoft Windows are supplied with the distribution. -To build the library, first move to the directory -interfaces/mysql directory. You may need to -edit Makefile or Makefile.msvc to -correctly specify the location of your &mysql; installation. On UNIX systems, use -the command: - make -On a Microsoft Windows system, -use the command: - -nmake /f -Makefile.msvc - +To build the libraries on a GNU or Solaris, use the shell and +change to the root directory of &clsql;. You may need to edit the file +interfaces/mysql/Makefile to specify the location of your +MySQL installation. Then, you can give the command + +make libs + +in the root directory of &clsql; to build the libraries +interfaces/mysql/clsql-mysql.so and +interfaces/clsql-uffi/clsql-uffi.so. + Load &uffi; - Unpack the appropriate &uffi; version for your system which creates a directory + Unzip or untar the &uffi; distribution which creates a directory for the &uffi; files. Add that directory to Defsystem's mk:*central-registry*. You can do that by either pushing the pathname of the directory onto this variable, or use the new add-registry-location present in the newest versions of @@ -155,6 +165,27 @@ use the new add-registry-location present in the newest ver + + Load &clsql; modules + + Unzip or untar the &clsql; distribution which creates a directory +for the &clsql; files. Add that directory to Defsystem's mk:*central-registry*. +You can do that by either pushing the pathname of the directory onto this variable, or +use the new add-registry-location present in the newest versions of +&defsystem;. The following example code assumes the &clsql; files reside in the +/usr/local/src/lisp/clsql directory. You need to load, at a minimum, +the main :clsql system and at least one interface system. + +(mk:add-registry-location #P"/usr/local/src/lisp/clsql") +(mk:load-system :clsql) ; main clsql package +(mk:load-system :clsql-mysql) ; MySQL interface +(mk:load-system :clsql-postgresql) ; PostgreSQL interface +(mk:load-system :clsql-postgresql-socket) ; Socket PGSQL interface +(mk:load-system :clsql-aodbc) ; Allegro ODBC interface + + + +