diff --git a/CHANGELOG.md b/CHANGELOG.md index f29981a9..fe6b3c64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 [Unreleased]: https://github.com/Finschia/finschia/compare/v1.0.0...HEAD diff --git a/docs/finschia-tutorials/installation.md b/docs/finschia-tutorials/installation.md index ecb0ec54..367a68b4 100644 --- a/docs/finschia-tutorials/installation.md +++ b/docs/finschia-tutorials/installation.md @@ -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