From 79e4151f8dd3d1b881e028899d4faf1ebac04bc1 Mon Sep 17 00:00:00 2001 From: David Zhao Date: Mon, 17 May 2021 12:59:00 -0700 Subject: [PATCH] include protoc requirement in bootstrap & readme --- README.md | 8 +++++++- bootstrap.sh | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 21922de75..546b9e8ea 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,13 @@ Server APIs: ### From source -Ensure Go 1.15+ is installed, and GOPATH/bin is in your PATH. +Pre-requisites: + +* Go 1.15+ is installed +* GOPATH/bin is in your PATH +* [protoc](https://grpc.io/docs/protoc-installation/) is installed and in PATH + +Then run ```shell git clone https://github.com/livekit/livekit-server diff --git a/bootstrap.sh b/bootstrap.sh index cd9ec37c2..6af1fb3ea 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,5 +1,11 @@ #!/bin/bash +if ! command -v protoc &> /dev/null +then + echo "protoc is required and not found. please install" + exit 1 +fi + if ! command -v mage &> /dev/null then pushd /tmp