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

@Utrinque
Copy link

Utrinque commented Aug 4, 2015

Hi Rictorres,
Running Debian 7.8
Linux Debian-Vector 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u2 x86_64 GNU/Linux

I was going great guns till I reached PCP Build & Install "make". I recieved the following errors at the end:

make[2]: g++: Command not found
make[2]: *** [pmmgr.o] Error 127
make[1]: *** [default_pcp] Error 2
make[1]: Leaving directory `/home/davisian/pcp/src'
make: *** [default_pcp] Error 2

Can you help resolve this issue.

BR / Utrinque

@georgepar
Copy link

Hi Utrinque,

You should install the g++ compiler to build the pcp project from source.

@samof76
Copy link

samof76 commented Dec 8, 2015

At the make step I get the following error

getdate.y: In function ‘LookupWord’:
getdate.y:630:7: error: dereferencing pointer to incomplete type
  lvalp->Meridian = MERam;

Note sure what the issue is!

@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