[64d37a3] | 1 | Installing Survex on Unix |
---|
| 2 | ========================= |
---|
[8a64c35] | 3 | |
---|
[4a320aa] | 4 | If you are using Debian Linux or Ubuntu Linux or a distribution based |
---|
[0211218a] | 5 | on one of these, you will find it easier to install one of the |
---|
| 6 | prepackaged versions of Survex. |
---|
[6c7fbd5] | 7 | |
---|
[0211218a] | 8 | Otherwise building from source is very easy. First of all, you need |
---|
| 9 | to make sure you have the required libraries installed. The main |
---|
[4a320aa] | 10 | dependency is wxWidgets 2.8 or later - if there's a suitable wxWidgets |
---|
| 11 | package for your platform, then just use that (note: library packages |
---|
| 12 | are usually split into runtime and development, usually with the same |
---|
| 13 | name but with a -dev or -devel or similar suffix on the latter - you'll |
---|
[0211218a] | 14 | need both to build Survex). |
---|
| 15 | |
---|
| 16 | Otherwise download the source code from http://www.wxwidgets.org/ and |
---|
| 17 | follow their build instructions. IMPORTANT: You must enable OpenGL |
---|
| 18 | support by adding --with-opengl to the configure command line. |
---|
| 19 | |
---|
| 20 | You'll also need a working C and C++ compiler, and also the X and |
---|
| 21 | OpenGL development libraries if these aren't pulled in by installing |
---|
| 22 | wxWidgets. |
---|
| 23 | |
---|
| 24 | Then at a shell prompt, enter the following commands: |
---|
[55302e3] | 25 | |
---|
| 26 | ./configure |
---|
| 27 | make |
---|
[8a64c35] | 28 | make install |
---|
| 29 | |
---|
[0211218a] | 30 | By default 'make install' will try to install survex under /usr/local, |
---|
| 31 | which means you'll need to be root for the 'make install' stage. You |
---|
| 32 | can tell configure to install survex elsewhere (e.g. under your home |
---|
| 33 | directory) like so: |
---|
[55302e3] | 34 | |
---|
[8a64c35] | 35 | ./configure --prefix=/home/olly/survex |
---|
| 36 | make |
---|
| 37 | make install |
---|
[0211218a] | 38 | |
---|
| 39 | If your wxWidgets installation isn't picked up automatically, or you |
---|
| 40 | have more than one version installed and want to select a particular |
---|
| 41 | one, then you can specify this like so: |
---|
| 42 | |
---|
[4a320aa] | 43 | ./configure WX_CONFIG=/opt/bin/wx-config |
---|
[0211218a] | 44 | |
---|
[4a320aa] | 45 | You can use both --prefix and WX_CONFIG= if necessary. |
---|