The IDA/AIICS Course on Artificial Intelligence (and Lisp)

Installation of Leonardo on Linux, Mac and Solaris


The following steps should work on any Unix-like system but it has currently only been tested on Ubuntu GNU/Linux, Mac OS X and Solaris.

Installation of Allegro-Express

This part applies only for GNU/Linux and Mac OS X. Allegro CommonLisp is already installed on the Solaris system for students at IDA.

1. Download Allegro CommonLisp Express (ACL)

2. Unpack/install the archive containing ACL

3. From the command line; in the ACL directory, start ACL by typing ./alisp

4. Create a custom lisp image by pasting the following into the ACL loop:

(build-lisp-image "mlisp.dxl" :case-mode :case-sensitive-lower :include-ide nil :restart-app-function nil :restart-init-function nil)

5. Copy the ACL executable, alisp, to a new one, mlisp, that uses our new lisp image, mlisp.dxl. Do that by pasting the following into the ACL loop:

(sys:copy-file "sys:alisp" "sys:mlisp")

6. Exit the ACL loop by typing

:exit

Installation of Leonardo Student System on your Own Computer

7. Download and unpack the Leonardo Student System, linux/mac version.

8. Change directory to the Leonardo Student System root directory.

9. Run the installation script by typing in the following:

$ sh install.sh {path-to-allegrocl-directory}{name-of-executable}

for example, sh install.sh /home/john/AllegroCL mlisp

10. Follow the instructions and finish the installation. This should create a new agent in the Leonardo Student System root.

11. Go to the directory {your new agent root}/Process/temp/

12. Type:

$ hostname > _compnam.sii

13. You are done!

Installation of Leonardo Student System on a Solaris Client at IDA

7. Download and unpack the Leonardo Student System, linux/mac version.

8. Change directory to the Leonardo Student System root directory.

9. Run the installation script by typing in the following:

$ sh install.sh /sw/allegro-8.0 mlisp

10. Follow the instructions and finish the installation. This should create a new agent in the Leonardo Student System root.

11. Go to the directory {your new agent root}/Process/temp/

12. Type:

$ hostname > _compnam.sii

13. You are done!

Starting a Session with your Leonardo Agent

To start the Leonardo Student System from now on, change directory to the root of your newly created agent, then type:

cd Process/main

then start the system by typing

{path to your mlisp} -locale latin1 -L Boot/cl/minileo.leos

for example

/home/john/AllegroCL/mlisp -locale latin1 -L Boot/cl/minileo.leos

In the case of Solaris, the path to your mlisp is /sw/allegro-8.0/mlisp


Posted on 2009-09-07 as part of the TDDC65 website. [Version history.]