Skip to content

Commit

Permalink
Update Compilation.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-iniguez-goya authored Dec 13, 2024
1 parent 63c3c05 commit 421ac66
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions wiki/Compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Make sure you have a correctly configured **Go** environment and then:
# install dependencies
sudo apt-get install git libnetfilter-queue-dev libpcap-dev protobuf-compiler python3-pip pyqt5-dev-tools qttools5-dev-tools qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools python3-pyqt5.qtsql python3-notify2

go install google.golang.org/protobuf@latest
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.32.0
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.3.0

export GOPATH=~/go #you may want to change this if your Go directory is different
export PATH=$PATH:$GOPATH/bin

Expand All @@ -31,6 +31,20 @@ sudo systemctl enable --now opensnitchd
opensnitch-ui &
```

***grpcio and protobuf conflicts***

Installing latest grpcio and protobuf packages may cause compilation errors.

```
go install google.golang.org/protobuf@latest
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
```

As of today (13/12/2024), the versions that work are specified in the installation steps (protoc-gen-go@v1.32.0, protoc-gen-go-grpc@v1.3.0).

More info: https://github.com/evilsocket/opensnitch/discussions/1222#discussioncomment-11531525

***Note for Fedora users***

There is no `lrelease` binary on Fedora, which is needed to build the UI properly. There is a "`lrelease-qt5` binary, which is part of the package "qt5-linguist".
Expand Down

0 comments on commit 421ac66

Please sign in to comment.