| | 14 | |
| | 15 | = Installation = |
| | 16 | {{{ |
| | 17 | cdelacruz@metis:/usr/local/sm$ sudo ./set_opts |
| | 18 | I am going to ask you some questions to decide how to setup SM. If there's |
| | 19 | something in [square brackets] at the end of a line, it's the default value; |
| | 20 | to accept it just hit carriage return. If there are alternatives separated |
| | 21 | by a |, the default value is the first one. |
| | 22 | |
| | 23 | It should be safe to hit ^C at any time if you want to start again. |
| | 24 | |
| | 25 | What machine are you on? ("all" will give a list of possibilities). |
| | 26 | Choose a machine: [linux] |
| | 27 | You are on a linux using the |
| | 28 | cc -Wall -Dlinux -DNEED_SWAP |
| | 29 | compiler; is this OK? [y|n] y |
| | 30 | What debugging/optimisation flags do you want? [-g] |
| | 31 | What devices do you want to compile in? Your options are: |
| | 32 | TK X11 |
| | 33 | Choose one at a time, carriage return on an empty line to finish |
| | 34 | X11 |
| | 35 | |
| | 36 | You have selected devices: X11; ok? [y|n] y |
| | 37 | We can help you configure things for which the defaults are usually OK |
| | 38 | Do you want to do so? [n|y|list] y |
| | 39 | Choose data type for vectors, "float" or "double"? [float] |
| | 40 | Choose length of longest macro [10000] |
| | 41 | Choose length for string-valued-vector's elements [40] |
| | 42 | Do you want to treat numbers starting 0 as octal? [n] |
| | 43 | Do you want to build and install the callable parser, libparser.a? [n] |
| | 44 | Top level path to install things? [/usr/local] /usr/local/sm |
| | 45 | The commands make install (and make installinfo) will install files as follows: |
| | 46 | binaries /usr/local/sm/bin |
| | 47 | linkable libraries /usr/local/sm/lib |
| | 48 | SM files (e.g. graphcap) /usr/local/sm/lib/sm |
| | 49 | info files /usr/local/sm/info |
| | 50 | manual pages /usr/local/sm/man/man1 |
| | 51 | is this ok? [y|n] y |
| | 52 | Do you want to install SM-mode for (gnu)emacs? [y|n] y |
| | 53 | In which directory? [/usr/local/sm/emacs/site-lisp] |
| | 54 | I am about to start modifying files, proceed? [y|n] y |
| | 55 | sed: -e expression #1, char 105: unknown option to `s' |
| | 56 | Creating Makefile... |
| | 57 | Creating src/options.h... |
| | 58 | Creating src/Makefile... |
| | 59 | Creating callable/Makefile... |
| | 60 | |
| | 61 | You will be ready to make SM as soon as you have edited |
| | 62 | src/options.h to remove our copyright notice. |
| | 63 | cdelacruz@metis:/usr/local/sm$ |
| | 64 | |
| | 65 | Removed first seven lines of options.h |
| | 66 | cdelacruz@metis:/usr/local/sm/src$ sudo vi options.h |
| | 67 | |
| | 68 | Run make: |
| | 69 | |
| | 70 | cdelacruz@metis:/usr/local/sm$ sudo make |
| | 71 | cdelacruz@metis:/usr/local/sm$ sudo make install |
| | 72 | |
| | 73 | Added alias to .bashrc file: |
| | 74 | |
| | 75 | |
| | 76 | alias sm="/usr/local/sm/bin/sm" |
| | 77 | }}} |