summaryrefslogtreecommitdiff
path: root/system/doc/installation_guide/install.xml
blob: c1b930a4bdc7d84c035c2c7a99d63bffbe1269c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?xml version="1.0" encoding="latin1" ?>
<!DOCTYPE chapter SYSTEM "chapter.dtd">

<chapter>
  <header>
    <copyright>
      <year>2000</year><year>2010</year>
      <holder>Ericsson AB. All Rights Reserved.</holder>
    </copyright>
    <legalnotice>
      The contents of this file are subject to the Erlang Public License,
      Version 1.1, (the "License"); you may not use this file except in
      compliance with the License. You should have received a copy of the
      Erlang Public License along with this software. If not, it can be
      retrieved online at http://www.erlang.org/.

      Software distributed under the License is distributed on an "AS IS"
      basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
      the License for the specific language governing rights and limitations
      under the License.

    </legalnotice>

    <title>Installation</title>
    <prepared>Peter H&ouml;gfeldt</prepared>
    <responsible>Peter H&ouml;gfeldt</responsible>
    <docno></docno>
    <approved>(Peter H&ouml;gfeldt</approved>
    <checked></checked>
    <date>1997-05-26</date>
    <rev>C</rev>
    <file>install.xml</file>
  </header>

  <section>
    <title>Source</title>
      <p>This document describes installation procedures for
         binary releases. Documentation of build and installation
	 procedures for the source release can be found in the source
	 tree at the following locations:</p>
      <taglist>
	 <tag>Building and Installing Erlang/OTP</tag>
         <item><url href="source/INSTALL.html"><c>$ERL_TOP/INSTALL.md</c></url></item>
	 <tag>Cross Compiling Erlang/OTP</tag>
         <item><url href="source/INSTALL-CROSS.html"><c>$ERL_TOP/INSTALL-CROSS.md</c></url></item>
	 <tag>How to Build Erlang/OTP on Windows</tag>
         <item><url href="source/INSTALL-WIN32.html"><c>$ERL_TOP/INSTALL-WIN32.md</c></url></item>
      </taglist>
      <p>Where <c>$ERL_TOP</c> is the top directory in the source tree.</p>
  </section>

  <section>
    <title>UNIX</title>

    <section>
      <title>Introduction</title>
      <p>The system is delivered as a single compressed tar file.</p>
      <p>To browse the on-line HTML documentation, Netscape or an equivalent
        browser supporting frames is needed.</p>
    </section>

    <section>
      <title>Installation Procedure</title>
      <p>When installed, the entire system, except for a small start-up
        script, resides in a single directory tree. The location of this
        directory tree can be chosen arbitrarily by the installer, and it
        does not need to be in the user's <c>$PATH</c>. The only requirements
        are that the file system where it is placed has enough free space,
        and that the users who run Erlang/OTP have read access to it. In the
        example below, the directory tree is assumed to be located at
        <c>/usr/local/erlang</c>, which is here called the <em>top-level directory</em>.</p>
      <p>It is assumed that you have the compressed tar file, the name of
        which is <c><![CDATA[<PREFIX>.tar.gz]]></c>, where <c><![CDATA[<PREFIX>]]></c> is a string
        denoting the particular Erlang/OTP release, e.g.
        <c>otp_LXA_11930_sunos5_R9B</c>.</p>
      <p>Wherever the string <c><![CDATA[<PREFIX>]]></c> is used below, it should 
        be replaced by the actual name prefix of the compressed tar file.</p>
      <p>The tape archive file does not have one single directory in which
        all other files are rooted. Therefore the tape archive file must be
        extracted into an empty (newly created) directory.</p>
      <list type="ordered">
        <item>
          <p>If the <em>top-level directory</em> does not already exist,
            create it:</p>
          <pre>
mkdir /usr/local/erlang</pre>
        </item>
        <item>
          <p>Change the current directory to the <em>top level directory</em>:</p>
          <pre>
cd /usr/local/erlang</pre>
        </item>
        <item>
          <p>Create the <em>installation directory</em> with an appropriate
            name. For example:</p>
          <pre>
mkdir otp_r7b</pre>
        </item>
        <item>
          <p>Change to the <em>installation directory</em>, e.g.</p>
          <pre>
cd otp_r7b</pre>
        </item>
        <item>
          <p>Assuming the compressed tar file resides in the directory
            <c><![CDATA[<SOME-DIR>]]></c>,. extract the compressed tar file into the
            current directory:</p>
          <pre>
gunzip -c &lt;SOME-DIR&gt;/&lt;PREFIX&gt;.tar.gz | tar xfp -</pre>
        </item>
        <item>
          <p>Read the <c>README</c> file in the installation directory for
            last minute updates, before proceeding.</p>
        </item>
        <item>
          <p>Run the <c>Install</c> script in the installation directory,
            with the absolute path of the installation directory as argument,</p>
          <pre>
./Install /usr/local/erlang/otp_r7b</pre>
          <p>and supply answers to the prompts.</p>
          <p>In most cases, there is a default answer in square brackets
            (<c>[]</c>). If the default is satisfactory, just press
            <c><![CDATA[<Return>]]></c>. In general you are only prompted for one thing:</p>
          <list type="bulleted">
            <item>
              <p>"Do you want to use a minimal system startup instead of the
                SASL startup?"                <br></br>

                In a minimal system, only the Kernel and STDLIB applications
                are loaded and started. If the SASL startup is used, the SASL
                application is included as well. Normally, the minimal system
                is enough.</p>
            </item>
          </list>
        </item>
        <item>
          <p>Make Erlang/OTP available for users, either by putting the path
            <c>/usr/local/erlang/otp_r7b/bin</c> in users <c>$PATH</c>
            variable, or link the executable
            <c>/usr/local/erlang/otp_r7b/bin/erl</c> accordingly, e.g.:</p>
          <pre>
ln -s /usr/local/erlang/otp_r7b/bin/erl /usr/local/bin/erl </pre>
        </item>
      </list>
    </section>
  </section>

  <section>
    <title>Windows</title>

    <section>
      <title>Introduction</title>
      <p>The system is delivered as a single <c>.exe</c> file.</p>
      <p>To browse the on-line HTML documentation, Netscape or an equivalent
        browser supporting frames is needed.</p>
    </section>

    <section>
      <title>Installation Procedure</title>
      <p>The installation procedure is is automated. Double-click the
        <c>.exe</c> file icon and follow the instructions.</p>
    </section>
  </section>
</chapter>