Skip to content

Commit

Permalink
docs: add guide for static build (#281)
Browse files Browse the repository at this point in the history
* docs: add static build for centOS

* chore: update CHANGELOG

* chore: update static build
  • Loading branch information
jaeseung-bae authored Oct 17, 2023
1 parent a450fb9 commit 7a6add8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (build) [\#259](https://github.com/Finschia/finschia/pull/259) change default build to be compiled as static binary

### Docs
* (docs) [\#281](https://github.com/Finschia/finschia/pull/281) Update guide for static build on CentOS

<!-- Release links -->
[Unreleased]: https://github.com/Finschia/finschia/compare/v1.0.0...HEAD
19 changes: 18 additions & 1 deletion docs/finschia-tutorials/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,26 @@ source ~/.bash_profile
**Go 1.20+** is required for the Finschia SDK.
:::

## Static build(Optional)

* Install static library(Optional)
* For CentOS, you may need to install static library

```bash
# Optional: If you don't have library installed
$ sudo yum install glibc-static.x86_64 libstdc++-static -y
```

* Build statically

```bash
# Build statically
LINK_STATICALLY=true make build
```

## Install the binaries

Next, let's install the latest version of Gaia. Make sure you `git checkout` the
Next, let's install the latest version of Finschia. Make sure you `git checkout` the
correct [released version](https://github.com/Finschia/finschia/releases).

```bash
Expand Down

0 comments on commit 7a6add8

Please sign in to comment.