Skip to content

Commit

Permalink
Add INSTALL, fix README typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
e271828- committed Apr 6, 2017
1 parent bee00a6 commit 1cb26b5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Installation
--------------------
# Install libgcrypt first, e.g. via `brew install libgcrypt` on OS X or libgcrypt-dev on Linux
# Generate the final build scripts
./autogen.sh
# Build the CLI and library
./configure && make

Troubleshooting
--------------------
If libgcrypt isn't found after install, set AM_PATH_LIBGCRYPT env var to libgcrypt path
prior to running autogen.sh. For example, on OS X with ver 1.7.6:

export AM_PATH_LIBGCRYPT="/usr/local/Cellar/libgcrypt/1.7.6/lib"
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libbase58.pc

dist_noinst_SCRIPTS = autogen.sh
dist_doc_DATA = AUTHORS COPYING README
dist_doc_DATA = AUTHORS COPYING INSTALL README

if USE_TOOL
bin_PROGRAMS = base58
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ return false. Otherwise, it returns true to indicate success.
Encoding Base58Check
--------------------

Targetting base58check is done similarly to raw base58 encoding, but you must
Targeting base58check is done similarly to raw base58 encoding, but you must
also provide a version byte:
bool b58check_enc(char *b58c, size_t *b58c_sz, uint8_t ver,
const void *data, size_t datasz)

0 comments on commit 1cb26b5

Please sign in to comment.