Re: Install ceph manually with some problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your reply, Michael Kuriger.
But it's not possible for me to run yum install at production-environment. Now I'm trying to build a rpm package from source code. Hope it works.

Michael Kuriger <mk7193@xxxxxxxxx> 于2018年6月19日周二 上午2:38写道:

Don’t use the installer scripts.  Try  yum install ceph

 

Mike Kuriger
Sr. Unix Systems Engineer
T: 818-649-7235 M: 818-434-6195
ttp://www.hotyellow.com/deximages/dex-thryv-logo.jpg

 

From: ceph-users [mailto:ceph-users-bounces@xxxxxxxxxxxxxx] On Behalf Of Ch Wan
Sent: Monday, June 18, 2018 2:40 AM
To: ceph-users@xxxxxxxxxxxxxx
Subject: Install ceph manually with some problem

 

Hi, recently I'm trying to build&install ceph luminous on centos-7, following the documents:

sudo ./install-deps.sh  

./do_cmake.sh 

cd build && sudo make install 

 

But when I run /usr/local/bin/ceph -v, it failed with there error:

Traceback (most recent call last):
  File "/usr/local/bin/ceph", line 125, in <module>
    import rados
ImportError: No module named rados

 

I noticed that where are some warn messages while make install 

Copying /data/ceph/ceph/build/src/pybind/rgw/rgw.egg-info to /usr/local/lib64/python2.7/site-packages/rgw-2.0.0-py2.7.egg-info
running install_scripts
writing list of installed files to '/dev/null'
running install
Checking .pth file support in /usr/local/lib/python2.7/site-packages/
/bin/python2.7 -E -c pass
TEST FAILED: /usr/local/lib/python2.7/site-packages/ does NOT support .pth files
error: bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from.  The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
    /usr/local/lib/python2.7/site-packages/
and your PYTHONPATH environment variable currently contains:
    ''
Here are some of your options for correcting the problem:
* You can choose a different installation directory, i.e., one that is
  on PYTHONPATH or supports .pth files
* You can add the installation directory to the PYTHONPATH environment
  variable.  (It must then also be on PYTHONPATH whenever you run
  Python and want to use the package(s) you are installing.)
* You can set up the installation directory to support ".pth" files by
  using one of the approaches described here:
  https://pythonhosted.org/setuptools/easy_install.html#custom-installation-locations

 

But there is not rados.py under  /usr/local/lib/python2.7/site-packages/

[ceph@ceph-test ceph]$ ll /usr/local/lib/python2.7/site-packages/
total 132
-rw-r--r-- 1 root root 43675 Jun  8 00:21 ceph_argparse.py
-rw-r--r-- 1 root root 14242 Jun  8 00:21 ceph_daemon.py
-rw-r--r-- 1 root root 17426 Jun  8 00:21 ceph_rest_api.py
-rw-r--r-- 1 root root 51076 Jun  8 00:21 ceph_volume_client.py

 

Would someone help me please?

JPEG image

JPEG image

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux