mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
Merge pull request #19 from braydonf/doc/install
doc: add install notes
This commit is contained in:
commit
9544306f5b
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,6 +6,8 @@
|
||||
*.pb
|
||||
TAGS
|
||||
ccan/tools/configurator/configurator
|
||||
ccan/ccan/cdump/tools/cdump-enumstr
|
||||
libsecp256k1.a
|
||||
libsecp256k1.la
|
||||
gen_*
|
||||
daemon/lightning-cli
|
||||
|
29
INSTALL.md
Normal file
29
INSTALL.md
Normal file
@ -0,0 +1,29 @@
|
||||
Build on Ubuntu 15.10
|
||||
---------------------
|
||||
|
||||
Build protobuf-c dependency (>= 1.1.0):
|
||||
```
|
||||
sudo apt-get install libprotoc-dev
|
||||
git clone https://github.com/protobuf-c/protobuf-c.git
|
||||
cd protobuf-c
|
||||
./autogen.sh
|
||||
./configure
|
||||
make
|
||||
make install
|
||||
cd ../
|
||||
```
|
||||
|
||||
Clone lightning and initialize submodules:
|
||||
```
|
||||
git clone https://github.com/ElementsProject/lightning.git
|
||||
cd lighting
|
||||
git submodule init
|
||||
git submodule update
|
||||
```
|
||||
|
||||
Build lightning:
|
||||
```
|
||||
make
|
||||
export LD_LIBRARY_PATH=/usr/local/lib
|
||||
./daemon/lightningd
|
||||
```
|
2
Makefile
2
Makefile
@ -204,7 +204,7 @@ CWARNFLAGS := -Werror -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations
|
||||
CDEBUGFLAGS := -g -fstack-protector
|
||||
CFLAGS := $(CWARNFLAGS) $(CDEBUGFLAGS) -I $(CCANDIR) -I secp256k1/include/ -I . $(FEATURES)
|
||||
|
||||
LDLIBS := -lcrypto -lprotobuf-c
|
||||
LDLIBS := -lcrypto -lprotobuf-c -lgmp
|
||||
$(PROGRAMS): CFLAGS+=-I.
|
||||
|
||||
default: $(PROGRAMS) daemon-all
|
||||
|
Loading…
Reference in New Issue
Block a user