* Readme refine
1. update libsodium version
2. remove some duplicate information
3. move some building suggestion to other part of document
Signed-off-by: Simon <simonsmh@gmail.com>
* mbedtls
* fix
1. distributions
2. usage
3. typo
You can build shadowsocks-libev and all its dependencies by script:
You can build shadowsocks-libev and all its dependencies by script:
```bash
```bash
@ -141,8 +108,13 @@ cd ~/build-area
./build_deb.sh
./build_deb.sh
```
```
Otherwise, try to build and install directly from source. See the [Linux](#linux)
section below.
Otherwise, try to build and install directly from source. See the [Linux](#linux) section below.
**Note for Debian 8 (Jessie) users**:
We strongly encourage you to install shadowsocks-libev from `jessie-backports`. If you insist on building from source, you will need to manually install libsodium from `jessie-backports`, **NOT** libsodium in main repository.
Please follow the instructions on [Debian Backports Website](https://backports.debian.org).
- RHEL 6, 7 and derivatives (including CentOS, Scientific Linux)
Supported distributions:
* Fedora 22, 23, 24
* RHEL 6, 7 and derivatives (including CentOS, Scientific Linux)
#### Build from source with centos
#### Build from source with centos
If you are using CentOS 7, you need to install these prequirement to build from source code
If you are using CentOS 7, you need to install these prequirement to build from source code:
```bash
```bash
yum install epel-release -y
yum install epel-release -y
@ -241,16 +214,42 @@ In general, you need the following build dependencies:
* asciidoc (for documentation only)
* asciidoc (for documentation only)
* xmlto (for documentation only)
* xmlto (for documentation only)
For Unix-like systems, especially Debian-based systems,
e.g. Ubuntu, Debian or Linux Mint, you might install build dependencies like this:
If your system is too old to provide libmbedtls and libsodium (later than **v1.0.8**), you will need to either install those libraries manually or upgrade your system.
If your system provides with those libraries, you **should not** install them from source. You should jump this section and install them from distribution repository instead.
For some of the distributions, you might install build dependencies like this: