1 : |
mblume |
1348 |
I have not packaged the win32 port as an InstallShield(tm)
|
2 : |
|
|
bundle. Instead, I simply made a .zip file (smlnj.zip) that
|
3 : |
mblume |
1362 |
one can unzip to a location of one's choice. There are two
|
4 : |
mblume |
1348 |
things to do "by hand" afterwards:
|
5 : |
|
|
|
6 : |
|
|
- set the environment variable SMLNJ_HOME to
|
7 : |
|
|
the name of the directory that you unzip'd smlnj.zip
|
8 : |
|
|
into
|
9 : |
|
|
- add %SMLNJ_HOME%\bin to your path
|
10 : |
|
|
|
11 : |
|
|
[Example: Suppose you unzip'd the .zip file into
|
12 : |
|
|
|
13 : |
|
|
c:\sml\blume\smlnj
|
14 : |
|
|
|
15 : |
|
|
Then the value of SMLNJ_HOME should be that, i.e.,
|
16 : |
|
|
the moral equivalent of
|
17 : |
|
|
|
18 : |
|
|
set SMLNJ_HOME=c:\sml\blume\smlnj
|
19 : |
|
|
|
20 : |
|
|
needs to be carried out. Moreover, you need to add the
|
21 : |
|
|
string
|
22 : |
|
|
|
23 : |
|
|
;c:\sml\blume\smlnj\bin
|
24 : |
|
|
|
25 : |
|
|
to the end of your path variable, i.e., you need to execute
|
26 : |
|
|
|
27 : |
|
|
path %PATH%;c:\sml\blume\smlnj
|
28 : |
|
|
|
29 : |
|
|
]
|
30 : |
|
|
|
31 : |
|
|
(Under win9x you need to either do this locally using the
|
32 : |
|
|
command prompt before you run sml, or you edit autoexec.bat
|
33 : |
|
|
and reboot. In WinXP you can do it by going to
|
34 : |
|
|
|
35 : |
|
|
Control Panel->Performance and Maintenance->System->
|
36 : |
|
|
Advanced->Environment Variables
|
37 : |
|
|
|
38 : |
|
|
From there it is obvious what needs to be done. Since I don't have
|
39 : |
|
|
access to other versions of win32 (NT, 2000, ...), I am not sure how to do
|
40 : |
|
|
things there. (But I am sure everything is similar to the XP case.)
|
41 : |
|
|
|
42 : |
|
|
Once the two variables are properly set, you should be able to
|
43 : |
|
|
launch sml/nj by typing "sml" into a command prompt...
|
44 : |
mblume |
1362 |
|
45 : |
|
|
--------------------------------------------------------------------------
|
46 : |
|
|
|
47 : |
|
|
To compile from scratch, assuming Microsoft Visual Studio:
|
48 : |
|
|
|
49 : |
|
|
- set path to include C compiler bin directory
|
50 : |
|
|
(e.g., path %PATH%;"c:\Program Files\Microsoft Visual Studio\VC98\Bin")
|
51 : |
|
|
- run "vcvars32" command
|
52 : |
|
|
- create the full SML/NJ source hierarchy
|
53 : |
|
|
(most convenient: do a CVS checkout; alternative: unzip and untar
|
54 : |
|
|
all the source archives)
|
55 : |
|
|
- unzip and untar boot.x86-win32.tgz into the root of the source tree
|
56 : |
|
|
- set environment variable SMLNJ_HOME to root of source tree
|
57 : |
|
|
- edit config\targets to one's taste (careful: don't enable the
|
58 : |
|
|
ml-nlffi stuff as it is not ready for win32 yet!)
|
59 : |
|
|
- run config\install.bat
|