These instructions are for installing the development version of Standard ML of New Jersey (SML/NJ) on Unix and Unix-like operating systems (including Linux and macOS).

  1. clone the repository for version 2024.2.

     git clone --depth 1 --branch v2024.2 --recurse-submodules \
       https://github.com/smlnj/smlnj.git

    Note that you can also clone the entire repository and then switch to the v2024.2 tag.

  2. cd to the cloned repository and fetch the boot files using curl or wget.

     cd smlnj
     curl -O https://smlnj.org/dist/working/2024.2/boot.amd64-unix.tgz

    We plan to incorporate this step into the build.sh script in the future.

  3. build the installation

     ./build.sh

    Use build.sh -h to see the list of options accepted by the build script.

    As before, you can modify the config/targets file to add/remove components from the build.

After successful running of the build.sh script, bin/sml will be the interactive system.