| 1 | |
| 2 | <chapter id="Configuring"> |
| 3 | |
| 4 | <title>Configuring</title> |
| 5 | <para>Once you have either unpacked a binary distribution, or built |
| 6 | Csound from sources, you will need to configure Csound so that it will run properly on your system. Installers usually perform these steps for you automatically. |
| 7 | </para> |
| 8 | <para>On all platforms, make sure the directory or directories |
| 9 | containing Csound's plugin libraries are in an |
| 10 | <literal>OPCODE6DIR</literal> or <literal>OPCODE6DIR64</literal> |
| 11 | environment variable depending on the precision of the compiled |
| 12 | binary. |
| 13 | (Note that for csound5 these environment variables were |
| 14 | <literal>OPCODEDIR</literal> and <literal>OPCODEDIR64</literal>.) |
| 15 | </para> |
| 16 | <para>The Python opcodes currently require Python 3.x, which can be downloaded from <ulink url="http://www.python.org">www.python.org</ulink> if it is not already on your system. You can check if it is available by typing 'python' on a command prompt or DOS window. |
| 17 | </para> |
| 18 | <bridgehead>Windows</bridgehead> |
| 19 | <para>On Windows, make sure the directory or directories (normally the <filename>C:\Program Files\Csound</filename> directory) containing the Csound executables directory are in your <literal>PATH</literal> variable, or else copy all the executable files to your Windows <filename>system32</filename> directory. Depending on your installation method, you might also need to set the <literal>OPCODE6DIR</literal> and <literal>OPCODE6DIR64</literal> environment variables. Assuming that Csound is installed to the default location of <filename>C:\Program Files\Csound</filename> you can use (otherwise set the paths accordingly): |
| 20 | </para> |
| 21 | <screen>set OPCODE6DIR=C:\Program Files\Csound\plugins |
| 22 | set OPCODE6DIR64=C:\Program Files\Csound\plugins64 |
| 23 | set PATH=%PATH%;C:\Program Files\Csound\bin</screen> |
| 24 | |
| 25 | <bridgehead>Unix and Linux</bridgehead> |
| 26 | <para>On Unix and Linux, either install the Csound program in one of the system <filename>bin</filename> directories, typically <filename>/usr/local/bin</filename>, and the Csound and plugin shared libraries in places like <filename>/usr/local/lib/csound/plugins</filename> or <filename>/usr/local/lib/csound/plugins64</filename> and make sure that <literal>OPCODE6DIR</literal> and <literal>OPCODE6DIR64</literal> environment variable are set correctly. |
| 27 | </para> |
| 28 | |
| 29 | <bridgehead>CsoundAC</bridgehead> |
| 30 | |
| 31 | <para>CsoundAC requires some additional configuration. On all |
| 32 | platforms, CsoundAC requires that you have Python installed on your |
| 33 | computer. The directory containing the <filename>_csoundAC</filename> shared |
| 34 | library and the <filename>CsoundAC.py</filename> file must be in your |
| 35 | <literal>PYTHONPATH</literal> environment variable, so that the Python runtime |
| 36 | knows how to load these files.</para> |
| 37 | |
| 38 | </chapter> |