Skip to content

Commit 448fbad

Browse files
authored
Merge pull request #454 from thecodefactory/centos7
Update README to include CentOS 7 installation instructions.
2 parents c793bda + 8b84e6c commit 448fbad

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ $ sudo ldconfig # optional
4545

4646
Detailed instructions are provided below.
4747
* [Debian/Ubuntu](#debianubuntu)
48+
* [CentOS7](#centos-7)
4849
* [Macintosh](#macintosh)
4950
* [Windows](#windows)
5051

@@ -106,6 +107,43 @@ $ sudo ./install.sh
106107
```
107108
Libbitcoin Server is now installed in `/usr/local/bin` and can be invoked as `$ bs`.
108109

110+
### CentOS 7
111+
112+
Libbitcoin requires a C++11 compiler, currently minimum [GCC 4.8.0](https://gcc.gnu.org/projects/cxx0x.html) or Clang based on [LLVM 3.5](http://llvm.org/releases/3.5.0/docs/ReleaseNotes.html).
113+
114+
Note that CentOS 7 provides an option to install Boost 1.53.0, which is older than the required version. For this configuration, boost will be compiled by the installer.
115+
116+
Similarly, the default installation of CentOS 7 does not provide an option to install zeromq, so it will also be compiled by the installer.
117+
118+
To see your GCC version:
119+
```sh
120+
$ g++ --version
121+
```
122+
```
123+
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
124+
Copyright (C) 2015 Free Software Foundation, Inc.
125+
This is free software; see the source for copying conditions. There is NO
126+
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
127+
```
128+
If necessary, upgrade your compiler as follows:
129+
```sh
130+
$ sudo yum install gcc-c++
131+
```
132+
Next install the [build system](http://wikipedia.org/wiki/GNU_build_system) and wget, bzip2 and git:
133+
```sh
134+
$ sudo yum install autoconf automake libtool pkgconfig wget bzip2 git
135+
```
136+
Next download the [install script](https://github.com/libbitcoin/libbitcoin-server/blob/version3/install.sh) and enable execution:
137+
```sh
138+
$ wget https://raw.githubusercontent.com/libbitcoin/libbitcoin-server/version3/install.sh
139+
$ chmod +x install.sh
140+
```
141+
Finally install Libbitcoin Server with the following [build options](#build-notes-for-linux--macos):
142+
```sh
143+
$ sudo ./install.sh --build-zmq --build-boost
144+
```
145+
Libbitcoin Server is now installed in `/usr/local/bin` and can be invoked as `$ bs`.
146+
109147
### Macintosh
110148

111149
The macOS installation differs from Linux in the installation of the compiler and packaged dependencies. Libbitcoin Server supports both [Homebrew](http://brew.sh) and [MacPorts](https://www.macports.org) package managers. Both require Apple's [Xcode](https://developer.apple.com/xcode) command line tools. Neither requires Xcode as the tools may be installed independently.

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ fi
261261
# Set the prefix-based package config directory.
262262
PREFIX_PKG_CONFIG_DIR="$PREFIX/lib/pkgconfig"
263263

264-
# Augment PKG_CONFIG_PATH search path with our prefix.
265-
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$PREFIX_PKG_CONFIG_DIR"
264+
# Prioritize prefix package config in PKG_CONFIG_PATH search path.
265+
export PKG_CONFIG_PATH="$PREFIX_PKG_CONFIG_DIR:$PKG_CONFIG_PATH"
266266

267267
# Set a package config save path that can be passed via our builds.
268268
with_pkgconfigdir="--with-pkgconfigdir=$PREFIX_PKG_CONFIG_DIR"

0 commit comments

Comments
 (0)