Skip to content

Instantly share code, notes, and snippets.

@rictorres
Last active September 8, 2016 07:34
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save rictorres/c0749f4cf548006c94d7 to your computer and use it in GitHub Desktop.
Save rictorres/c0749f4cf548006c94d7 to your computer and use it in GitHub Desktop.

How to Install Vector on Ubuntu 14

Vector is an on-host performance monitoring framework which exposes hand picked high resolution metrics to every engineer’s browser. More here.

Host machine

PCP Requirements

Vector requires PCP to collect data.

pkg-config

$ sudo apt-get install pkg-config

Lex

$ sudo apt-get install flex

Yacc (from Bison package)

$ sudo apt-get install bison

libmicrohttpd-dev

$ sudo apt-get install libmicrohttpd-dev

User

$ sudo groupadd -r pcp
$ sudo useradd -c "Performance Co-Pilot" -g pcp -d /var/lib/pcp -M -r -s /usr/sbin/nologin pcp

PCP Build & Install

$ git clone git://git.pcp.io/pcp
# alternative: git clone https://github.com/performancecopilot/pcp

$ cd pcp
$ ./configure --prefix=/usr --libexecdir=/usr/lib --sysconfdir=/etc --localstatedir=/var --with-rcdir=/etc/init.d
$ make
$ sudo make install

PCP Init

$ sudo service pmcd start
$ sudo service pmwebd start

Client

$ git clone https://github.com/Netflix/vector.git
$ cd vector
$ bower install
$ npm install
$ gulp

Available on http://localhost:8080

@Albert-Walner
Copy link

@ samof76:
I had exactly the same error, this can be solved with the following steps:

  1. Remove the pcp folder and check everything out again, this time clone "git clone https://github.com/performancecopilot/pcp" instead of "git clone https://github.com/performancecopilot/pcp"
  2. also u have to use exactly the command "./configure --prefix=/usr --libexecdir=/usr/lib --sysconfdir=/etc --localstatedir=/var --with-rcdir=/etc/init.d"
    on other Instructions this "command might look different".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment