All Manuals > LispWorks Release Notes and Installation Guide > 13 Configuration on SPARC Solaris

NextPrevUpTopContentsIndex

13.7 Configuring your LispWorks installation

Once you have successfully installed and run LispWorks, you can configure it to suit your local conditions and needs, producing an image that is set up the way you want it to be every time you start it up.

There are two levels of configuration: configuring and resaving the image, thereby creating a new image that is exactly as you want it at startup, and configuring certain aspects of LispWorks as it starts up.

These two levels are available for good reason: while some configuration details may be of use to all LispWorks users on your site (for instance, having a particular library built in to the image where before it was only load-on-demand) others may be a matter of personal preference (for instance how many editor windows are allowed on-screen, or the colors of tool windows).

In the first case, you alter the global LispWorks image and global settings files in the config directory to achieve your aims.

In the second case, you make entries in a file in your home directory called .lispworks. This is a file read every time LispWorks starts up, and it can contain any valid Common Lisp code. (Most of the configurable settings in LispWorks can be controlled from Common Lisp.)

13.7.1 Multiple-platform installations

You can install copies of LispWorks for more than one platform in the same directory hierarchy. All platform-specific files are supplied with platform-specific names.

13.7.2 Configuration files available

There are four files in the LispWorks library containing settings you can change in order to configure images:

config/configure.lisp contains settings governing fundamental issues like where to find the LispWorks run time directory structure, and so on. You should read through configure.lisp and check that you are happy with all the settings therein. The most common change required is to *lispworks-directory*, which points to the root of the installation hierarchy.

config/siteinit.lisp contains any forms that are appropriate to the whole site but which are to be loaded afresh each time the image is started. The sample siteinit file distributed with LispWorks contains only the form:

(load-all-patches)

private-patches/load.lisp is loaded by load-all-patches, and should contain forms to load any private (named) patches that Lisp Support might send you.

config/a-dot-lispworks.lisp is a sample .lispworks file. You might like to copy this into your home directory and use it as a basis for your own .lispworks file.

Both configure.lisp and a-dot-lispworks.lisp are preloaded into the image before it is shipped, so if you are happy with the settings in these files, you need not change them.

On startup, the image loads siteinit.lisp and your .lispworks file, in that order. The command line options -siteinit and -init can be used to specify loading of different files or to suppress them altogether. See the example in Saving and testing the configured image below, and see also LispWorks initialization arguments for further details.

13.7.3 Saving and testing the configured image

It is not usually necessary to save an image merely to preload patches and your configuration, because these load very quickly on modern machines.

However, if you want to save an image to reduce startup time for a complex configuration (such as large application code) or to save a windowing image, then proceed as described in this section.

13.7.4 Create a configuration file

Make a copy of config/configure.lisp called /tmp/my-configuration.lisp. When you have made any desired changes in my-configuration.lisp you can save a new LispWorks image, as described in Create and use a save-image script.

13.7.5 Create and use a save-image script

  1. Change directory to the installation directory, for example:
  2. unix% cd /usr/lib/lispworks
  3. Start the supplied image, without loading any initialization files. For example:
  4. unix% lispworks-7-1-0-sparc-solaris -init - -siteinit -

    If the image will not run at this stage, it is probably not finding a valid key. See Keyfiles and how to obtain them.

  5. Wait for the prompt. Load your local configuration file:
  6. CL-USER 1 > (load "/tmp/my-configuration.lisp")

    Now load all current patches:

    CL-USER 2 > (load-all-patches)
  7. Save the new version of the image. For example:
CL-USER 3 > (save-image "/usr/local/bin/lispworks")

Saving the image takes some time.

You can now use the new image by starting it just as you did the generic image. The generic image will not be required after the installation process has been completed successfully.

Do not try to save a new image over an image that is currently running. Instead, save an image under a unique name, and then, if necessary, replace the new image with the old one after the call to save-image has returned.

13.7.5.1 Testing the newly saved image

You should now test the new LispWorks image. To test a configured version of LispWorks, do the following:

  1. Change directory out of the installation directory.
  2. Run the new image.
  3. Test the load-on-demand system. Type:
  4. CL-USER 1 > (inspect 1)

    Before information about the fixnum 1 is printed, the system should load the inspector from the load-on-demand directory.

  5. Next, test the ability of the system to interface to a local X server. If necessary, start an X server either on the local machine or on a machine networked to it. Type:
CL-USER 2 > (env:start-environment :display "serverhostname")

Where serverhostname is the name of the machine running the X server. The window-based environment should now initialize--during initialization an X window displaying a copyright notice will appear on the screen.

You can work through some of the examples in the LispWorks User Guide and Reference Manual to check further that the configured image has successfully built.


LispWorks Release Notes and Installation Guide - 19 Oct 2017

NextPrevUpTopContentsIndex