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 <[email protected]> 于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
> [image: ttp://www.hotyellow.com/deximages/dex-thryv-logo.jpg]
> <http://www.dexyp.com/>
>
>
>
> *From:* ceph-users [mailto:[email protected]] *On Behalf
> Of *Ch Wan
> *Sent:* Monday, June 18, 2018 2:40 AM
> *To:* [email protected]
> *Subject:* [ceph-users] 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
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__pythonhosted.org_setuptools_easy-5Finstall.html-23custom-2Dinstallation-2Dlocations&d=DwMFaQ&c=5m9CfXHY6NXqkS7nN5n23w&r=5r9bhr1JAPRaUcJcU-FfGg&m=D9Y9vRcLlWJsho9Pp4xohRrTlM6umW-xbhP2lKzSDvQ&s=qGT16TMi6kVN1JQ9JrwgagRtGZPOreA9SVaelVZBVzQ&e=>
>
>
>
> 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?
>
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to