Skip to content

Commit 964cf33

Browse files
committed
add install instructions
1 parent 3d4bb61 commit 964cf33

File tree

2 files changed

+110
-15
lines changed

2 files changed

+110
-15
lines changed

INSTALL

Lines changed: 54 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,54 @@
1-
== Installing from a git checkout ==
2-
$ autoreconf -i
3-
$ ./configure
4-
$ make
5-
$ su -
6-
$ make install
7-
8-
== Installing from a released source tarball ==
9-
10-
$ tar xzvf snp-sites-1.0.tar.gz
11-
$ cd snp-sites-1.0
12-
$ ./configure
13-
$ make
14-
$ su -
15-
$ make install
1+
# Installation
2+
There are a few ways to install snp-sites. The simpliest way is using apt (Debian/Ubuntu), HomeBrew (OSX) or LinuxBrew.
3+
4+
## Linux - Ubuntu/Debian
5+
If you have a recent version of Ubuntu or Debian then you can install it using apt.
6+
7+
apt-get install snp-sites
8+
9+
## Linux - CentOS/RHEL
10+
The easiest way to install on CentOS/RHEL is to use [LinuxBrew](http://brew.sh/linuxbrew/). Enable EPEL and make sure compilers are installed.
11+
```
12+
sudo yum install epel-release gcc gcc-c++ automake ruby-irb
13+
```
14+
Install [LinuxBrew](http://brew.sh/linuxbrew/).
15+
```
16+
brew tap homebrew/science
17+
ln -s $(which gcc) ~/.linuxbrew/bin/gcc-4.4
18+
ln -s $(which g++) ~/.linuxbrew/bin/g++-4.4
19+
brew install snp-sites
20+
```
21+
22+
## Linux - using LinuxBrew
23+
Install [LinuxBrew](http://brew.sh/linuxbrew/).
24+
```
25+
brew tap homebrew/science
26+
brew install snp-sites
27+
```
28+
29+
## OSX - using HomeBrew
30+
Install [HomeBrew](http://brew.sh/). It requires a minimum of Xcode 5.1.1 (xcodebuild -version). Then run:
31+
```
32+
brew tap homebrew/science
33+
brew install snp-sites
34+
```
35+
## OSX/Linux - from source
36+
This is a difficult method and is only suitable for someone with advanced unix skills. No support is provided with this method, since you have advanced unix skills. Please consider using HomeBrew/LinuxBrew instead. First install a standard development environment (e.g. gcc, automake, autoconf, libtool). Download the software from [GitHub](https://github.com/sanger-pathogens/snp-sites).
37+
38+
```
39+
autoreconf -i -f
40+
./configure
41+
make
42+
sudo make install
43+
```
44+
45+
## OSX/Linux - from a release tarball
46+
This is a difficult method and is only suitable for someone with advanced unix skills. No support is provided with this method, since you have advanced unix skills. Please consider using HomeBrew/LinuxBrew instead. First install a standard development environment (e.g. gcc, automake, autoconf, libtool).
47+
48+
```
49+
tar xzvf snp-sites-x.y.z.tar.gz
50+
cd snp-sites-x.y.z
51+
./configure
52+
make
53+
sudo make install
54+
```

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,59 @@ This contains the position of each SNP in the reference sequence, and the occurr
6060

6161
### Relaxed Phylip format
6262
All the SNP sites in a format for RAxML and other tree building applications.
63+
64+
# Installation
65+
There are a few ways to install snp-sites. The simpliest way is using apt (Debian/Ubuntu), HomeBrew (OSX) or LinuxBrew.
66+
67+
## Linux - Ubuntu/Debian
68+
If you have a recent version of Ubuntu or Debian then you can install it using apt.
69+
70+
apt-get install snp-sites
71+
72+
## Linux - CentOS/RHEL
73+
The easiest way to install on CentOS/RHEL is to use [LinuxBrew](http://brew.sh/linuxbrew/). Enable EPEL and make sure compilers are installed.
74+
```
75+
sudo yum install epel-release gcc gcc-c++ automake ruby-irb
76+
```
77+
Install [LinuxBrew](http://brew.sh/linuxbrew/).
78+
```
79+
brew tap homebrew/science
80+
ln -s $(which gcc) ~/.linuxbrew/bin/gcc-4.4
81+
ln -s $(which g++) ~/.linuxbrew/bin/g++-4.4
82+
brew install snp-sites
83+
```
84+
85+
## Linux - using LinuxBrew
86+
Install [LinuxBrew](http://brew.sh/linuxbrew/).
87+
```
88+
brew tap homebrew/science
89+
brew install snp-sites
90+
```
91+
92+
## OSX - using HomeBrew
93+
Install [HomeBrew](http://brew.sh/). It requires a minimum of Xcode 5.1.1 (xcodebuild -version). Then run:
94+
```
95+
brew tap homebrew/science
96+
brew install snp-sites
97+
```
98+
## OSX/Linux - from source
99+
This is a difficult method and is only suitable for someone with advanced unix skills. No support is provided with this method, since you have advanced unix skills. Please consider using HomeBrew/LinuxBrew instead. First install a standard development environment (e.g. gcc, automake, autoconf, libtool). Download the software from [GitHub](https://github.com/sanger-pathogens/snp-sites).
100+
101+
```
102+
autoreconf -i -f
103+
./configure
104+
make
105+
sudo make install
106+
```
107+
108+
## OSX/Linux - from a release tarball
109+
This is a difficult method and is only suitable for someone with advanced unix skills. No support is provided with this method, since you have advanced unix skills. Please consider using HomeBrew/LinuxBrew instead. First install a standard development environment (e.g. gcc, automake, autoconf, libtool).
110+
111+
```
112+
tar xzvf snp-sites-x.y.z.tar.gz
113+
cd snp-sites-x.y.z
114+
./configure
115+
make
116+
sudo make install
117+
```
118+

0 commit comments

Comments
 (0)