Installing Common Lisp (CLISP) on Mac OS X

The original motivation behind installing Common Lisp was to try the book: Land of Lisp. Even if you don’t use Lisp in your daily life or workplace, you should give it a try, for they say, coding in Lisp will not only enhance your programming skills but also fundamentally change the way you think!

land-of-lisp

Operating System: Mac OS X Mavericks
Homebrew: Version 0.9.5
GNU CLISP: Version 2.49

The best way to install CLISP on a Mac in our opinion is via Homebrew.

First make sure you have Homebrew installed. You can find the installation instructions at http://brew.sh

You can install Homebrew on your Mac by running the following command in the Terminal:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

We like Homebrew because it’s very easy to maintain and update packages. Besides Homebrew installs packages under the user’s home directory so there is little chance of messing up the Mac system directories and the base packages that come with it.

Once Homebrew is installed and running well, installing CLISP is trivial. Issue the command:

brew install clisp

If you like verbose output, issue the command:

brew -v install clisp

Wait for the packages to download and if necessary follow any recommendations provided by brew.

Once CLISP is installed you can run the following command to get the interactive console:

clisp

lisp_run_—_120×25_and_Object_Coder

Here’s a video that shows CLISP installation in action! The video shows the download and CLISP compiling process.  Warning: Might be boring like watching paint dry 🙂

16 thoughts on “Installing Common Lisp (CLISP) on Mac OS X

      1. My proble is that i have some Warnings.
        For example:Warning: You have an outdated version of /usr/bin/install_name_tool installed.
        This will cause binary package installations to fail.
        This can happen if you install osx-gcc-installer or RailsInstaller.
        To restore it, you must reinstall OS X or restore the binary from
        the OS packages.

  1. This is the 2 Warnings
    Warning: You seem to have osx-gcc-installer installed.
    Homebrew doesn’t support osx-gcc-installer. It causes many builds to fail and
    is an unlicensed distribution of really old Xcode files.
    Please run `xcode-select –install` to install the CLT.
    Warning: You have an outdated version of /usr/bin/install_name_tool installed.
    This will cause binary package installations to fail.
    This can happen if you install osx-gcc-installer or RailsInstaller.
    To restore it, you must reinstall OS X or restore the binary from
    the OS packages.

    1. Try running `brew doctor` for a more detailed analysis. `brew doctor` will provide suggestions based on its analysis. The OS X-gcc warning is providing a clue that you will most likely need CLANG since gcc is deprecated in OS X. Getting the latest version of Xcode and then installing Command Line Tools might fix your problem.

  2. I’ve installed clisp, but “it’s just not linked” and is “keg-only.”
    When I give the command: clisp at the prompt, I get the following:

    -bash: clisp: command not found

    I’m assuming I must need a slightly different command to load clisp. Any suggestions?

    1. Hi, thanks for your comment. If you installed clisp as “keg-only” then you will have to provide the full path to clisp to run it.

      For example, if you have clisp version 2.49 installed, you would run: /usr/local/Cellar/clisp/2.49/bin/clisp

  3. Nice to meet you Hello, ObjectCoder
    Your Technical Note Installing Common Lisp (CLISP) on Mac OS X
    May I translate it on my blog in Japanese and post it?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s