|
| 1 | + |
| 2 | +# Installation |
| 3 | + |
| 4 | +*rss2* is a collection of command line programs run from a shell like Bash. |
| 5 | + |
| 6 | +## Compiled version |
| 7 | + |
| 8 | +This is generalized instructions for a release. |
| 9 | + |
| 10 | +Compiled versions are available for Mac OS X (amd64 processor, macosx-amd64), Linux (amd64 process, linux-amd64), |
| 11 | +Windows (amd64 processor, windows-amd64) and Rapsberry Pi (arm7 processor, raspbian-arm7) |
| 12 | + |
| 13 | +VERSION_NUMBER is a [symantic version number](http://semver.org/) (e.g. v0.1.2) |
| 14 | + |
| 15 | + |
| 16 | +For all the released version go to the project page on Github and click latest release |
| 17 | + |
| 18 | +> https://github.com/caltechlibrary/rss2/releases/latest |
| 19 | +
|
| 20 | + |
| 21 | +| Platform | Zip Filename | |
| 22 | +|-------------|--------------------------------------------| |
| 23 | +| Windows | rss2-VERSION_NUMBER-windows-amd64.zip | |
| 24 | +| Mac OS X | rss2-VERSION_NUMBER-macosx-amd64.zip | |
| 25 | +| Linux/Intel | rss2-VERSION_NUMBER-linux-amd64.zip | |
| 26 | +| Raspbery Pi | rss2-VERSION_NUMBER-raspbian-arm7.zip | |
| 27 | + |
| 28 | + |
| 29 | +## The basic recipe |
| 30 | + |
| 31 | ++ Find the Zip file listed matching the architecture you're running and download it |
| 32 | + + (e.g. if you're on a Windows 10 laptop/Surface with a amd64 style CPU you'd choose the Zip file with "windows-amd64" in the name). |
| 33 | ++ Download the zip file and unzip the file. |
| 34 | ++ Copy the contents of the folder named "bin" to a folder that is in your path |
| 35 | + + (e.g. "$HOME/bin" is common). |
| 36 | ++ Adjust your PATH if needed |
| 37 | + + (e.g. `export PATH="$HOME/bin:$PATH"`) |
| 38 | ++ Test |
| 39 | + |
| 40 | + |
| 41 | +### Mac OS X |
| 42 | + |
| 43 | +1. Download the zip file |
| 44 | +2. Unzip the zip file |
| 45 | +3. Copy the executables to $HOME/bin (or a folder in your path) |
| 46 | +4. Make sure the new location in in our path |
| 47 | +5. Test |
| 48 | + |
| 49 | +Here's an example of the commands run in the Terminal App after downloading the |
| 50 | +zip file. |
| 51 | + |
| 52 | +```shell |
| 53 | + cd Downloads/ |
| 54 | + unzip rss2-*-macosx-amd64.zip |
| 55 | + mkdir -p $HOME/bin |
| 56 | + cp -v bin/* $HOME/bin/ |
| 57 | + export PATH=$HOME/bin:$PATH |
| 58 | + csvfind -version |
| 59 | +``` |
| 60 | + |
| 61 | +### Windows |
| 62 | + |
| 63 | +1. Download the zip file |
| 64 | +2. Unzip the zip file |
| 65 | +3. Copy the executables to $HOME/bin (or a folder in your path) |
| 66 | +4. Test |
| 67 | + |
| 68 | +Here's an example of the commands run in from the Bash shell on Windows 10 after |
| 69 | +downloading the zip file. |
| 70 | + |
| 71 | +```shell |
| 72 | + cd Downloads/ |
| 73 | + unzip rss2-*-windows-amd64.zip |
| 74 | + mkdir -p $HOME/bin |
| 75 | + cp -v bin/* $HOME/bin/ |
| 76 | + export PATH=$HOME/bin:$PATH |
| 77 | + csvfind -version |
| 78 | +``` |
| 79 | + |
| 80 | + |
| 81 | +### Linux |
| 82 | + |
| 83 | +1. Download the zip file |
| 84 | +2. Unzip the zip file |
| 85 | +3. Copy the executables to $HOME/bin (or a folder in your path) |
| 86 | +4. Test |
| 87 | + |
| 88 | +Here's an example of the commands run in from the Bash shell after |
| 89 | +downloading the zip file. |
| 90 | + |
| 91 | +```shell |
| 92 | + cd Downloads/ |
| 93 | + unzip rss2-*-linux-amd64.zip |
| 94 | + mkdir -p $HOME/bin |
| 95 | + cp -v bin/* $HOME/bin/ |
| 96 | + export PATH=$HOME/bin:$PATH |
| 97 | + csvfind -version |
| 98 | +``` |
| 99 | + |
| 100 | + |
| 101 | +### Raspberry Pi |
| 102 | + |
| 103 | +Released version is for a Raspberry Pi 2 or later use (i.e. requires ARM 7 support). |
| 104 | + |
| 105 | +1. Download the zip file |
| 106 | +2. Unzip the zip file |
| 107 | +3. Copy the executables to $HOME/bin (or a folder in your path) |
| 108 | +4. Test |
| 109 | + |
| 110 | +Here's an example of the commands run in from the Bash shell after |
| 111 | +downloading the zip file. |
| 112 | + |
| 113 | +```shell |
| 114 | + cd Downloads/ |
| 115 | + unzip rss2-*-raspbian-arm7.zip |
| 116 | + mkdir -p $HOME/bin |
| 117 | + cp -v bin/* $HOME/bin/ |
| 118 | + export PATH=$HOME/bin:$PATH |
| 119 | + csvfind -version |
| 120 | +``` |
| 121 | + |
| 122 | + |
| 123 | +## Compiling from source |
| 124 | + |
| 125 | +_rss2_ is "go gettable". Use the "go get" command to download the dependant packages |
| 126 | +as well as _rss2_'s source code. |
| 127 | + |
| 128 | +```shell |
| 129 | + go get -u github.com/caltechlibrary/rss2/... |
| 130 | +``` |
| 131 | + |
| 132 | +Or clone the repstory and then compile |
| 133 | + |
| 134 | +```shell |
| 135 | + cd |
| 136 | + git clone https://github.com/caltechlibrary/rss2 src/github.com/caltechlibrary/rss2 |
| 137 | + cd src/github.com/caltechlibrary/rss2 |
| 138 | + make |
| 139 | + make test |
| 140 | + make install |
| 141 | +``` |
| 142 | + |
| 143 | + |
0 commit comments