mirror of
https://github.com/splitsh/lite.git
synced 2024-06-01 21:32:22 +02:00
Adjust manual install part in README.md
This commit is contained in:
parent
dba129b8af
commit
93e0ef1670
22
README.md
22
README.md
|
@ -135,24 +135,26 @@ Manual Installation
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
If you want to contribute to `splitsh-lite` or use it as a library, you first
|
If you want to contribute to `splitsh-lite` or use it as a library, you first
|
||||||
need to install `libgit2`:
|
need to install `libgit2` in version `1.5`, preferably using your package manager of choice.
|
||||||
|
|
||||||
```bash
|
|
||||||
go get -d github.com/libgit2/git2go
|
|
||||||
cd $GOPATH/src/github.com/libgit2/git2go
|
|
||||||
git checkout next
|
|
||||||
git submodule update --init
|
|
||||||
make install
|
|
||||||
```
|
|
||||||
|
|
||||||
Then, compile `splitsh-lite`:
|
Then, compile `splitsh-lite`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get github.com/splitsh/lite
|
go get
|
||||||
go build -o splitsh-lite github.com/splitsh/lite
|
go build -o splitsh-lite github.com/splitsh/lite
|
||||||
```
|
```
|
||||||
|
|
||||||
If everything goes fine, a `splitsh-lite` binary should be available in the
|
If everything goes fine, a `splitsh-lite` binary should be available in the
|
||||||
current directory.
|
current directory.
|
||||||
|
|
||||||
|
If you get errors about an incompatible `libgit2` library, try exporting the needed flags, e.g.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export LDFLAGS="-L/opt/homebrew/opt/libgit2@1.5/lib"
|
||||||
|
export CPPFLAGS="-I/opt/homebrew/opt/libgit2@1.5/include"
|
||||||
|
export PKG_CONFIG_PATH="/opt/homebrew/opt/libgit2@1.5/lib/pkgconfig"
|
||||||
|
```
|
||||||
|
|
||||||
|
before running `go build`.
|
||||||
|
|
||||||
[1]: https://github.com/splitsh/lite/releases
|
[1]: https://github.com/splitsh/lite/releases
|
||||||
|
|
Loading…
Reference in a new issue