Skip to content

Instantly share code, notes, and snippets.

@cnishina
Last active April 26, 2022 18:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cnishina/86ee1fa0deadda1de05adbbf8659eed8 to your computer and use it in GitHub Desktop.
Save cnishina/86ee1fa0deadda1de05adbbf8659eed8 to your computer and use it in GitHub Desktop.
installing pcp for vector on ubuntu
# Install PCP from source to run [Vector](http://vectoross.io/)
#
# Why this gist?
#
# Instructions were reasonable except the vectoross just directed me to [pcp.io](http://pcp.io).
# The PCP instructions were to just install directly with `apt-get install pcp`. However, deep
# within the issues I found out that `pmwebd` which is being used by Vector is only installed
# from source. And that the list of installations of dependencies are from `./qa/admin/check-vm`.
# Also like the installation says, the QA labeled dependencies from that list do not have to
# be installed.
#
# This worked for my setup. Run the following as root.
git clone git://git.pcp.io/pcp
cd pcp
# Get a list of installs (every dependency that is not QA)
./qa/admin/check-vm
# This is my list of installs
apt-get install autoconf gdb chrpath sysv-rc-conf python3-all-dev libcairo2-dev libsasl2-dev libibumad-dev libibmad-dev libavahi-common-dev libpapi-dev libpfm4-dev libreadline-dev libncurses5-dev python-json-pointer python3-json-pointer python3-setuptools libextutils-autoinstall-perl libyaml-libyaml-perl libxml-tokeparser-perl libslurm-perl librrds-perl libspreadsheet-writeexcel-perl libjson-perl libwww-perl libnet-snmp-perl avahi-utils python-requests sysstat libmicrohttpd-dev libsoqt-dev-common libcoin80-dev libsoqt4-dev libnspr4-dev libnss3-dev libnss3-tools
# Follow [installation instructions](https://github.com/performancecopilot/pcp/blob/master/INSTALL.md)
./Makepkgs —verbose
groupadd -r pcp
useradd -c "Performance Co-Pilot" -g pcp -d /var/lib/pcp -M -r -s /usr/sbin/nologin pcp
./configure --prefix=/usr --libexecdir=/usr/lib --sysconfdir=/etc \
--localstatedir=/var —with-rcdir=/etc/init.d
make
make install
# Either start or restart services.
service pmcd restart
service pmie restart
service pmlogger restart
service pmmgr restart
service pmproxy restart
service pmwebd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment