Info

Programmer by day, artist by night

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 🙂

Comments

16 Comments

Post a comment
  1. September 22, 2014

    I can’t run clisp…can you make a simple video for the installation instrucctions?

    • September 22, 2014

      Hi Javier, sure will do. Will include in this article, so watch out for the update. However, the video won’t be very glamorous since it’s so dead-easy with brew. 🙂

      • chef88val #
        September 23, 2014

        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.

      • chef88val #
        September 23, 2014

        I can’t upload the screencaputre

  2. chef88val #
    September 23, 2014

    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.

    • September 23, 2014

      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.

  3. March 22, 2015

    Yes, it works. You rock, thanks

    • March 23, 2015

      Awesome @Alfathan! Hope you enjoy the Lisp ride 🙂

  4. April 19, 2016

    I can’t use the define function like this: (define a 3) it said undefined define function.

  5. May 9, 2016

    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?

    • May 9, 2016

      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

      • May 9, 2016

        Thanks so much for telling me how to get it going. Worked like a charm!

  6. March 5, 2017

    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?

  7. prihandanajati #
    October 7, 2017

    thanks for this post, save my time

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 )

w

Connecting to %s

Basic HTML is allowed. Your email address will not be published.

Subscribe to this comment feed via RSS