From 3e719a63b4bbae57d774c34e6c8cff882a328e14 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Tue, 16 Jan 2018 10:50:11 +0100 Subject: Only one location for dependencies install instructions. Signed-off-by: Sebastien Douheret --- docs/part-2/1_xds-server.md | 34 +++++++++------------------------- 1 file changed, 9 insertions(+), 25 deletions(-) (limited to 'docs/part-2/1_xds-server.md') diff --git a/docs/part-2/1_xds-server.md b/docs/part-2/1_xds-server.md index b4022b2..2c31b1e 100644 --- a/docs/part-2/1_xds-server.md +++ b/docs/part-2/1_xds-server.md @@ -401,29 +401,9 @@ See also [xds-agent documentation](2_xds-agent.html) for more details. ### Dependencies -- Install and setup [Go](https://golang.org/doc/install) version 1.8.1 or higher to compile this tool. -- Install [npm](https://www.npmjs.com/) -- Install [nodejs](https://nodejs.org/en/) - -Ubuntu: - -```bash - sudo apt-get install golang npm curl git zip unzip - sudo npm install --global n @angular/cli # Angular Command Line Interface - # Install LTS version of nodejs - sudo n lts -``` - -openSUSE: - -```bash - sudo zypper install go npm git curl zip unzip - sudo npm install --global n @angular/cli # Angular Command Line Interface - # Install LTS version of nodejs - sudo n lts -``` - -Don't forget to open new user session after installing the packages. +Install [Go](https://golang.org/doc/install), [npm](https://www.npmjs.com/), +[nodejs](https://nodejs.org/en/) and some other tools. +Refer to [Prerequisites chapter](./0_Abstract.html#prerequisites) for more details. ### Building @@ -434,12 +414,16 @@ Create a GOPATH variable(must be a full path): ```bash export GOPATH=$(realpath ~/workspace_go) ``` +SEB Rework GOPATH inscrutions + Clone this repo into your `$GOPATH/src/gerrit.automotivelinux.org/gerrit/src/xds` and use delivered Makefile: ```bash - mkdir -p $GOPATH/src/gerrit.automotivelinux.org/gerrit/src/xds - cd $GOPATH/src/gerrit.automotivelinux.org/gerrit/src/xds +export GOPATH=${GOPATH}:${ROOTDIR} + + mkdir -p $ROOTDIR/src/gerrit.automotivelinux.org/gerrit/src/xds + cd $ROOTDIR/src/gerrit.automotivelinux.org/gerrit/src/xds git clone https://gerrit.automotivelinux.org/gerrit/src/xds/xds-server # or git clone ssh://YOUR_USERNAME@gerrit.automotivelinux.org:29418/src/xds/xds-server cd xds-server -- cgit 1.2.3-korg