Default installation location

Asked by Paulius

The documentation clearly states that Carbon and Graphite-web will be installed in /opt/graphite . However, after executing default installation steps the folders are all over the place:

for webapp and lib: /usr/lib/python2.7/site-packages/opt/graphite
for configuration files: /usr/conf

I haven't yet found the binaries.

Why the actual installation behavior is different from documentation?

The OS is CentOS 7.

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Paulius
Solved:
Last query:
Last reply:
Revision history for this message
Jason Dixon (jason-dixongroup) said :
#1

Did you install from the official project (source, pip, etc) or from distribution binaries? We don't control how the distributions choose to layout their own packages.

Revision history for this message
Paulius (paulius-lab) said :
#2

I installed using the official documentation with pip using these steps:

pip install https://github.com/graphite-project/ceres/tarball/master
pip install whisper
pip install carbon
pip install graphite-web

Revision history for this message
Paulius (paulius-lab) said :
#3

I would also like to add that /opt/graphite folder has not even been created.

Revision history for this message
Paulius (paulius-lab) said :
#4

I managed to install it under /opt/graphite by explicitly providing folder:

pip install carbon --install-option="--prefix=/opt/graphite" --install-option="--install-lib=/opt/graphite"

Now, when I try executing "pip uninstall carbon" I get "Cannot uninstall requirement carbon, not installed", probably because its carbon-0.9.13-py2.7.egg-info is now in /opt/graphite. Perhaps the issue is with pip, still looking into it.

Revision history for this message
Paulius (paulius-lab) said :
#5

Still haven't found a solution to this problem.

Revision history for this message
Mark Phillip (markphillip) said :
#6

I'm seeing the behavior after spinning up a fresh CentOS 7 box today, and installing via Pip following the same instructions.

http://graphite.readthedocs.org/en/latest/install-pip.html#installing-in-the-default-location

Revision history for this message
Paulius (paulius-lab) said :
#7

I don't know how pip works but the problem was solved by installing pip with

yum -y install python-pip

instead of wget from https://bootstrap.pypa.io/get-pip.py

Now pip sets up Graphite in the correct directory.