CS2740  Knowledge Representation (ISSP 3712): LISP pages

Lisp resources found on the web

  • Lisp primer
  • Common Lisp Educational Resources
  • Lisp primer

    Access to your CS account via ssh from Windows XP

    One way to access your CS account, is to use an SSH client, such as putty, or secure ssh-client.

    After installing the SSH client on your machine, you can access your CS account by clicking the Quick Connect button, and using elements.cs.pitt.edu as the host name and supplying your username and password. Once you are logged in to the linux terminal, you can setup and run LISP installed on CS linux servers (see below). However, note that you won’t get the full X-Window interface (with multiple terminals and windows) unless you run a special program, such as X-Win or cygwin that supports X-11 interface o n Windows XP platforms.

    Access to your CS account via ssh from a Linux or Unix computer

    Remote login via ssh to elements.cs.pitt.edu. To enable the proper function of the windows interface you need to setup your display. Using the ipconfig query identify the IP address of your computer. Then type:
    setenv DISPLAY xxx.xx.xxx.xxx::0
    where xs are replaced with the actual IP address of your computer.

    Running Common Lisp installed on CS linux servers

    The CS linux servers support CMU Common Lisp . The LISP is installed in /usr/local/contrib/cmucl-19d/ directory. The executable is in the binary (bin) subdirectory. Other subdirectories include documentation, libraries and man pages.

    You can run lisp from linux by typing /usr/local/contrib/cmucl-19d/bin/lisp. However, you may want to provide a path to the lisp directory so that the executable is seen from anywhere. To do this, you need to edit your .cshrc file under your home directory and add the following line:
    set path = ($path /usr/local/contrib/cmucl-19d/bin)
    To update the path run source .cshrc

    Once you type lisp and the interpreter is ready, you will see a welcome message and a > or * prompt. You may type any lisp command and it will execute in the interpreter. Remember all the parentheses should be closed before your command is accepted and evaluated. To quit the lisp enter the (quit) command.

    If you are an emacs fan and like to use it, you may run lisp directly from emacs. Just provide the path to the lisp executable and the lisp listener lets you type and evaluate commands directly in the emacs. Use CNTR-J to invoke evaluation of the lisp expression.

    Running Lisp on CSSD machines

    Remotely login via ssh to unixs.cis.pitt.edu

    LISP is installed in the following directory: /usr/pitt/franz-lisp/

    You can run lisp from unix by typing: /usr/pitt/franz-lisp/mlisp. You may want to provide a path to the lisp directory so that the executable is seen from anywhere. To do this, edit your .cshrc file under your home directory and add the following line:
    set path = ($path /usr/pitt/franz-lisp)
    If .cshrc is read-only, then add write permission with the command:
    chmod u+w .cshrc
    Use the command (exit) to quit LISP.

    Other LISPs

    The LISP that is installed on CS and CSSD servers is the default for the course. However, there are other version of lisp you may use to write and debug your lisp programs. For example, a restricted version of Allegro Lisp is available free of charge and can be downloaded from Allegro website . Since all the programs you submit will be run on the CS and CSSD suppoted Lisps please make assure that the code you plan to submit works on them.



    Last updated by Milos on 09/03/2008