We provide a Microsoft Installer package for SML/NJ: smlnj-110.94.msi. The installer contains a full installation including nearly all optional components except for "mlrisc-tools" and "nowhere".
You can choose the installation directory. The default
is C:\Program Files\SMLNJ
. The bin directory containing
the sml
command is added to the default PATH
, though
note that you will need to re-open a command window to see
the binding. The SMLNJ_HOME
environment variable is also
set to point at the location where SML/NJ was installed.
You can either launch the interactive top-level directly from the
Start Menu entry or by opening a command prompt and
typing "sml
".
Note: The instructions below for building from sources on Windows using
Visual Studio are no longer current. Current, tested instructions
can be found at
http://www.smlnj.org/local/build-release.html
.
Follow steps 1 through 14 in the section "Building a Windows installer (MSI)".
To compile from sources, we assume Microsoft Visual Studio or
at least the Visual C++ Express Edition and the Platform SDK:
config\install.bat
.
config\WinSetup\buildSetup.bat
.
Note: The instructions below are incomplete and do not currently work for Release 110.94. Stay tuned for updated instructions for building under 32-bit Cygwin. [DBM, 2019.11.4]In releases before 110.77, the default behavior of config/install.sh on Cygwin was to build and use the Win32 runtime system. As of 110.77, the default behavior is to build and use the Cygwin (i.e., Unix) version of the runtime. For the old behavior, one should set the environment variable SMLNJ_WINDOWS_RUNTIME:
export SMLNJ_WINDOWS_RUNTIME SMLNJ_WINDOWS_RUNTIME=1
SMLNJ_CYGWIN_RUNTIME=1 export SMLNJ_CYGWIN_RUNTIMEin Bourne sh and variants. Or
setenv SMLNJ_CYGWIN_RUNTIME 1in csh and variants. When this is set SML/NJ will select the Cygwin runtime instead of the default Windows runtime.