| 1 | GENERAL INFORMATION | 
|---|
| 2 | =================== | 
|---|
| 3 |  | 
|---|
| 4 | Armed Bear Common Lisp is an implementation of ANSI Common Lisp that | 
|---|
| 5 | runs in a Java virtual machine.  It compiles Lisp code directly to | 
|---|
| 6 | Java byte code. | 
|---|
| 7 |  | 
|---|
| 8 |  | 
|---|
| 9 | LICENSE | 
|---|
| 10 | ======= | 
|---|
| 11 |  | 
|---|
| 12 | Armed Bear Common Lisp is distributed under the GNU General Public | 
|---|
| 13 | License with a classpath exception (see "Classpath Exception" below). | 
|---|
| 14 |  | 
|---|
| 15 | A copy of GNU General Public License (GPL) is included in this | 
|---|
| 16 | distribution, in the file COPYING. | 
|---|
| 17 |  | 
|---|
| 18 | Linking this software statically or dynamically with other modules is | 
|---|
| 19 | making a combined work based on this software. Thus, the terms and | 
|---|
| 20 | conditions of the GNU General Public License cover the whole | 
|---|
| 21 | combination. | 
|---|
| 22 |  | 
|---|
| 23 | ** Classpath Exception  | 
|---|
| 24 |  | 
|---|
| 25 | As a special exception, the copyright holders of this software give | 
|---|
| 26 | you permission to link this software with independent modules to | 
|---|
| 27 | produce an executable, regardless of the license terms of these | 
|---|
| 28 | independent modules, and to copy and distribute the resulting | 
|---|
| 29 | executable under terms of your choice, provided that you also meet, | 
|---|
| 30 | for each linked independent module, the terms and conditions of the | 
|---|
| 31 | license of that module. An independent module is a module which is not | 
|---|
| 32 | derived from or based on this software. If you modify this software, | 
|---|
| 33 | you may extend this exception to your version of the software, but you | 
|---|
| 34 | are not obligated to do so. If you do not wish to do so, delete this | 
|---|
| 35 | exception statement from your version. | 
|---|
| 36 |  | 
|---|
| 37 |  | 
|---|
| 38 | RUNNING FROM BINARY RELEASE | 
|---|
| 39 | =========================== | 
|---|
| 40 |  | 
|---|
| 41 | After you have downloaded a binary release archive unpack it into its | 
|---|
| 42 | own directory. To run ABCL directly from this directory, make sure | 
|---|
| 43 | Java (version 1.5 or up) is in your shell's path. Then issue the | 
|---|
| 44 | following command: | 
|---|
| 45 |  | 
|---|
| 46 |     cmd$ java -jar abcl.jar | 
|---|
| 47 |  | 
|---|
| 48 | which should result in output like the following | 
|---|
| 49 |  | 
|---|
| 50 |     Armed Bear Common Lisp 0.25.0 | 
|---|
| 51 |     Java 1.6.0_21 Sun Microsystems Inc. | 
|---|
| 52 |     Java HotSpot(TM) Client VM | 
|---|
| 53 |     Low-level initialization completed in 0.3 seconds. | 
|---|
| 54 |     Startup completed in 2.294 seconds. | 
|---|
| 55 |     Type ":help" for a list of available commands. | 
|---|
| 56 |     CL-USER(1): | 
|---|
| 57 |  | 
|---|
| 58 |  | 
|---|
| 59 | BUILDING FROM SOURCE RELEASE | 
|---|
| 60 | ============================ | 
|---|
| 61 |  | 
|---|
| 62 | There are three ways to build ABCL from the source release with the | 
|---|
| 63 | preferred (and most tested way) is to being to use the Ant build tool: | 
|---|
| 64 |  | 
|---|
| 65 | * Use the Ant build tool for Java environments. | 
|---|
| 66 |  | 
|---|
| 67 | * Use the Netbeans 6.x IDE to open ABCL as a project. | 
|---|
| 68 |  | 
|---|
| 69 | * Bootstrap ABCL using a Common Lisp implementation. Supported | 
|---|
| 70 |   implementations for this process: SBCL, CMUCL, OpenMCL, Allegro | 
|---|
| 71 |   CL, LispWorks or CLISP. | 
|---|
| 72 |  | 
|---|
| 73 | In all cases you need a Java 5 or later JDK (JDK 1.5 and 1.6 have been | 
|---|
| 74 | tested).  Just the JRE isn't enough, as you need the Java compiler | 
|---|
| 75 | ('javac') to compile the Java source of the ABCL implementation. | 
|---|
| 76 |  | 
|---|
| 77 | Note that when deploying ABCL having JDK isn't a requirement for the | 
|---|
| 78 | installation site, just the equivalent JRE, as ABCL compiles directly | 
|---|
| 79 | to byte code, avoiding the need for the 'javac' compiler in deployment | 
|---|
| 80 | environments. | 
|---|
| 81 |  | 
|---|
| 82 |  | 
|---|
| 83 | Using Ant | 
|---|
| 84 | --------- | 
|---|
| 85 |  | 
|---|
| 86 | Download a binary distribution [Ant version 1.7.1 or greater][1]. | 
|---|
| 87 | Unpack the files somewhere convenient, ensuring that the 'ant' (or | 
|---|
| 88 | 'ant.bat' under Windows) executable is in your path and executable. | 
|---|
| 89 |  | 
|---|
| 90 | [1]: http://ant.apache.org/bindownload.cgi | 
|---|
| 91 |  | 
|---|
| 92 | Then simply executing | 
|---|
| 93 |  | 
|---|
| 94 |     unix$ ant | 
|---|
| 95 |  | 
|---|
| 96 | or | 
|---|
| 97 |     dos> ant.bat | 
|---|
| 98 |  | 
|---|
| 99 | from the directory containing this README file will create an | 
|---|
| 100 | executable wrapper ('abcl' under UNIX, 'abcl.bat' under Windows).  Use | 
|---|
| 101 | this wrapper to start ABCL. | 
|---|
| 102 |  | 
|---|
| 103 |  | 
|---|
| 104 | Using NetBeans | 
|---|
| 105 | -------------- | 
|---|
| 106 |  | 
|---|
| 107 | Obtain and install the [Netbeans IDE][2]. One should be able to open | 
|---|
| 108 | the ABCL directory as a project in the Netbeans 6.x application, | 
|---|
| 109 | whereupon the usual build, run, and debug targets as invoked in the | 
|---|
| 110 | GUI are available. | 
|---|
| 111 |  | 
|---|
| 112 | [2]: http://netbeans.org/downloads/ | 
|---|
| 113 |  | 
|---|
| 114 |  | 
|---|
| 115 | Building from Lisp | 
|---|
| 116 | ------------------ | 
|---|
| 117 |  | 
|---|
| 118 | Building from a Lisp is the most venerable and untested way of | 
|---|
| 119 | building ABCL.  It produces a "non-standard" version of the | 
|---|
| 120 | distribution that doesn't share build instructions with the previous | 
|---|
| 121 | two methods, but it still may be of interest to those who absolutely | 
|---|
| 122 | don't want to know anything about Java. | 
|---|
| 123 |  | 
|---|
| 124 | First, copy the file 'customizations.lisp.in' to 'customization.lisp', | 
|---|
| 125 | in the directory containing this README file, editing to suit your | 
|---|
| 126 | situation, paying attention to the comments in the file.  The critical | 
|---|
| 127 | step is to have Lisp special variable '*JDK*' point to the root of the | 
|---|
| 128 | Java Development Kit.  Underneath the directory referenced by the | 
|---|
| 129 | value of '*JDK*' there should be an exectuable Java compiler in | 
|---|
| 130 | 'bin/javac' ('bin/java.exe' under Windows). | 
|---|
| 131 |  | 
|---|
| 132 | Then, one may either use the 'build-from-lisp.sh' shell script or load | 
|---|
| 133 | the necessary files into your Lisp image by hand. | 
|---|
| 134 |  | 
|---|
| 135 | ** Using the 'build-from-lisp.sh' script | 
|---|
| 136 |  | 
|---|
| 137 | Under UNIX-like systems, you may simply invoke the | 
|---|
| 138 | 'build-from-lisp.sh' script as './build-from-lisp.sh | 
|---|
| 139 | <lisp-of-choice>', e.g. | 
|---|
| 140 |  | 
|---|
| 141 |     unix$ ./build-from-lisp.sh sbcl | 
|---|
| 142 |  | 
|---|
| 143 | After a successful build, you may use 'abcl' ('abcl.bat' on Windows) | 
|---|
| 144 | to start ABCL.  Note that this wrappers contain absolute paths, so | 
|---|
| 145 | you'll need to edit them if you move things around after the build. | 
|---|
| 146 |  | 
|---|
| 147 | If you're developing on ABCL, you may want to use | 
|---|
| 148 |  | 
|---|
| 149 |     unix$ ./build-from-lisp.sh <implementation> --clean=nil | 
|---|
| 150 |  | 
|---|
| 151 | to not do a full rebuild. | 
|---|
| 152 |  | 
|---|
| 153 | In case of failure in the javac stage, you might try this: | 
|---|
| 154 |  | 
|---|
| 155 |     unix$ ./build-from-lisp.sh <implementation> --full=t --clean=t --batch=nil | 
|---|
| 156 |  | 
|---|
| 157 | This invokes javac separately for each .java file, which avoids running | 
|---|
| 158 | into limitations on command line length (but is a lot slower). | 
|---|
| 159 |  | 
|---|
| 160 | ** Building from another Lisp by hand | 
|---|
| 161 |  | 
|---|
| 162 | There is also an ASDF definition in 'abcl.asd' for the BUILD-ABCL | 
|---|
| 163 | which can be used to load the necessary Lisp definitions, after which | 
|---|
| 164 |  | 
|---|
| 165 |     CL-USER> (build-abcl:build-abcl :clean t :full t) | 
|---|
| 166 |  | 
|---|
| 167 | will build ABCL.  If ASDF isn't present, simply LOAD the | 
|---|
| 168 | 'customizations.lisp' and 'build-abcl.lisp' files to achieve the same | 
|---|
| 169 | effect as loading the ASDF definition. | 
|---|
| 170 |  | 
|---|
| 171 |  | 
|---|
| 172 | BUGS | 
|---|
| 173 | ==== | 
|---|
| 174 |  | 
|---|
| 175 | A lot of (renewed) energy has been spent to make ABCL a compliant | 
|---|
| 176 | and practically useable Common Lisp implementation.  Because of this, | 
|---|
| 177 | ABCL 0.25.0 now fails only 28 out of 21702 tests in the ANSI CL test | 
|---|
| 178 | suite.  In addition, Maxima's test suite runs without failures now | 
|---|
| 179 | and ABCL's CLOS complete, with the exception of the long form of | 
|---|
| 180 | DEFINE-METHOD-COMBINATION - which is an ongoing effort. | 
|---|
| 181 |  | 
|---|
| 182 | The MOP implementation is incomplete. | 
|---|
| 183 |  | 
|---|
| 184 | Patches to address any of the issues mentioned above will | 
|---|
| 185 | be gladly accepted. | 
|---|
| 186 |  | 
|---|
| 187 | Please report problems to the development mailing list: | 
|---|
| 188 |  | 
|---|
| 189 |     armedbear-devel@common-lisp.net | 
|---|
| 190 |  | 
|---|
| 191 | Have fun! | 
|---|
| 192 |  | 
|---|
| 193 | On behalf of all ABCL development team and contributors, | 
|---|
| 194 | Erik Huelsmann | 
|---|
| 195 | January 20, 2011 | 
|---|