Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add guide for static build #281

Merged
merged 3 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
14 changes: 13 additions & 1 deletion docs/finschia-tutorials/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,21 @@ source ~/.bash_profile
**Go 1.20+** is required for the Finschia SDK.
:::

## Static build(Optional)

### CentOS

```bash
# May need to install static libraries for linking
$ sudo yum install glibc-static.x86_64 libstdc++-static -y

# Build statically
LINK_STATICALLY=true make build
```

jaeseung-bae marked this conversation as resolved.
Show resolved Hide resolved
## 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
Loading