From 2c76788aa0b10cb0ac84a0c3c2149dc2d165c004 Mon Sep 17 00:00:00 2001 From: Shannon Appelcline Date: Thu, 15 Jun 2017 12:42:26 -0700 Subject: [PATCH] Create 12_2_Accessing_Bitcoind_with_C.md --- 12_2_Accessing_Bitcoind_with_C.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/12_2_Accessing_Bitcoind_with_C.md b/12_2_Accessing_Bitcoind_with_C.md index aca8a3f..a491efe 100644 --- a/12_2_Accessing_Bitcoind_with_C.md +++ b/12_2_Accessing_Bitcoind_with_C.md @@ -25,6 +25,12 @@ You'll probably need to adjust your `$PATH`, so that you can access `/sbin/ldcon ``` $ PATH="/sbin:$PATH" ``` +You'll also want to adjust the `INSTALL_LIBPATH` in the `Makefile` to install to `/usr/lib` instead of `/usr/local/lib`: +``` +INSTALL_LIBPATH := $(INSTALL_PREFIX)/usr/lib +``` +(If you prefer not to sully your `/usr/lib`, the alternative is to change your `etc/ld.so.conf` or its dependent files appropriately ... but for a test setup on a test machine, this is probably fine.) + Then you can compile: ``` $ make