Merge pull request #108 from kleetus/fedora

Fedora
This commit is contained in:
Braydon Fuller 2015-08-06 17:37:05 -04:00
commit fdba8e86e4
2 changed files with 15 additions and 3 deletions

View File

@ -55,9 +55,15 @@ Once everything is built, you can run bitcore-node via:
```bash ```bash
npm start npm start
``` ```
This will then start the syncing process for Bitcoin Core and the extended capabilities as provided by the built-in Address Module (details below). This will then start the syncing process for Bitcoin Core and the extended capabilities as provided by the built-in Address Module (details below).
### Fedora
Later versions of Fedora (>= 22) should also work with this project. The directions for Ubuntu should generally work except the installation of system utilities and libraries is a bit different. Git is already installed and ready for use without installation.
```bash
yum install libtool automake autoconf pkgconfig openssl make gcc gcc-c++ kernel-devel openssl-devel.x86_64 patch
```
### Mac OS X Yosemite ### Mac OS X Yosemite

View File

@ -61,7 +61,13 @@ if [ "${BITCORENODE_ENV}" == "test" ]; then
options=`cat ${root_dir}/bin/config_options_test.sh` options=`cat ${root_dir}/bin/config_options_test.sh`
fi fi
patch_file_sha=$(shasum -a 256 "${root_dir}/etc/bitcoin.patch" | awk '{print $1}') if hash shasum 2>/dev/null; then
shasum_cmd="shasum -a 256"
else
shasum_cmd="sha256sum"
fi
patch_file_sha=$(${shasum_cmd} "${root_dir}/etc/bitcoin.patch" | awk '{print $1}')
last_patch_file_sha= last_patch_file_sha=
if [ -e "${patch_sha}" ]; then if [ -e "${patch_sha}" ]; then
echo "Patch file sha exists, let's see if the patch has changed since last build..." echo "Patch file sha exists, let's see if the patch has changed since last build..."
@ -142,7 +148,7 @@ apply the current patch from "${root_dir}"/etc/bitcoin.patch? (y/N): "
echo "Creating the sha marker for the patching in libbitcoind..." echo "Creating the sha marker for the patching in libbitcoind..."
echo "Writing patch sha file to: \"${patch_sha}\"" echo "Writing patch sha file to: \"${patch_sha}\""
echo -n `shasum -a 256 "${root_dir}"/etc/bitcoin.patch | awk '{print $1}'` > "${patch_sha}" echo -n `${shasum_cmd} "${root_dir}"/etc/bitcoin.patch | awk '{print $1}'` > "${patch_sha}"
cache_files cache_files
echo 'Build finished successfully.' echo 'Build finished successfully.'
else else