ClusterLabs / pcs

Pacemaker command line interface and GUI
GNU General Public License v2.0
250 stars 114 forks source link

debian squeeze #11

Closed samlabs821 closed 10 years ago

samlabs821 commented 11 years ago

I can not compile it on debian.

chmod: cannot access `/usr/lib/python2.6/dist-packages/pcs/pcs.py': No such file or directory

feist commented 11 years ago

Thanks for the report, I'll get this fixed ASAP.

feist commented 11 years ago

Can you post the output from the following command?

python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"

Can you also paste the full output from the 'make install' command?

guidtz commented 11 years ago

Hello, I have the same issue in Debian Squeeze.

Output commands : /usr/src/pcs-0.9.26# python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" /usr/lib/python2.6/dist-packages

And all the output of make install : make install

python setup.py install --prefix /usr running install running build running build_py file pcs.py (for module pcs) not found creating build creating build/lib.linux-x86_64-2.6 creating build/lib.linux-x86_64-2.6/pcs copying pcs/stonith.py -> build/lib.linux-x86_64-2.6/pcs copying pcs/cluster.py -> build/lib.linux-x86_64-2.6/pcs copying pcs/utils.py -> build/lib.linux-x86_64-2.6/pcs copying pcs/status.py -> build/lib.linux-x86_64-2.6/pcs copying pcs/init.py -> build/lib.linux-x86_64-2.6/pcs copying pcs/prop.py -> build/lib.linux-x86_64-2.6/pcs copying pcs/pcs.py -> build/lib.linux-x86_64-2.6/pcs copying pcs/constraint.py -> build/lib.linux-x86_64-2.6/pcs copying pcs/usage.py -> build/lib.linux-x86_64-2.6/pcs copying pcs/resource.py -> build/lib.linux-x86_64-2.6/pcs copying pcs/corosync.conf.template -> build/lib.linux-x86_64-2.6/pcs copying pcs/corosync.conf.fedora.template -> build/lib.linux-x86_64-2.6/pcs file pcs.py (for module pcs) not found running install_lib creating /usr/lib/python2.6/site-packages creating /usr/lib/python2.6/site-packages/pcs copying build/lib.linux-x86_64-2.6/pcs/corosync.conf.template -> /usr/lib/python2.6/site-packages/pcs copying build/lib.linux-x86_64-2.6/pcs/stonith.py -> /usr/lib/python2.6/site-packages/pcs copying build/lib.linux-x86_64-2.6/pcs/cluster.py -> /usr/lib/python2.6/site-packages/pcs copying build/lib.linux-x86_64-2.6/pcs/utils.py -> /usr/lib/python2.6/site-packages/pcs copying build/lib.linux-x86_64-2.6/pcs/status.py -> /usr/lib/python2.6/site-packages/pcs copying build/lib.linux-x86_64-2.6/pcs/init.py -> /usr/lib/python2.6/site-packages/pcs copying build/lib.linux-x86_64-2.6/pcs/prop.py -> /usr/lib/python2.6/site-packages/pcs copying build/lib.linux-x86_64-2.6/pcs/pcs.py -> /usr/lib/python2.6/site-packages/pcs copying build/lib.linux-x86_64-2.6/pcs/corosync.conf.fedora.template -> /usr/lib/python2.6/site-packages/pcs copying build/lib.linux-x86_64-2.6/pcs/constraint.py -> /usr/lib/python2.6/site-packages/pcs copying build/lib.linux-x86_64-2.6/pcs/usage.py -> /usr/lib/python2.6/site-packages/pcs copying build/lib.linux-x86_64-2.6/pcs/resource.py -> /usr/lib/python2.6/site-packages/pcs byte-compiling /usr/lib/python2.6/site-packages/pcs/stonith.py to stonith.pyc byte-compiling /usr/lib/python2.6/site-packages/pcs/cluster.py to cluster.pyc byte-compiling /usr/lib/python2.6/site-packages/pcs/utils.py to utils.pyc byte-compiling /usr/lib/python2.6/site-packages/pcs/status.py to status.pyc byte-compiling /usr/lib/python2.6/site-packages/pcs/init.py to init.pyc byte-compiling /usr/lib/python2.6/site-packages/pcs/prop.py to prop.pyc byte-compiling /usr/lib/python2.6/site-packages/pcs/pcs.py to pcs.pyc byte-compiling /usr/lib/python2.6/site-packages/pcs/constraint.py to constraint.pyc byte-compiling /usr/lib/python2.6/site-packages/pcs/usage.py to usage.pyc byte-compiling /usr/lib/python2.6/site-packages/pcs/resource.py to resource.pyc running install_egg_info Writing /usr/lib/python2.6/site-packages/pcs-0.9.26-py2.6.egg-info mkdir -p /usr/sbin/ chmod 755 /python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"/pcs/pcs.py chmod: impossible d'accéder à « //usr/lib/python2.6/dist-packages/pcs/pcs.py »: Aucun fichier ou dossier de ce type make: *\ [install] Erreur 1

Guidtz

guidtz commented 11 years ago

The solution in Debian Squeeze remove /usr/lib/python2.6/site-packages link /usr/lib/python2.6/site-packages to /usr/lib/python2.6/dist-packages ln -s /usr/lib/python2.6/dist-packages /usr/lib/python2.6/site-packages

And after installation works. In Debian : "dist-packages instead of site-packages. Third party Python software installed from Debian packages goes into dist-packages, not site-packages. This is to reduce conflict between the system Python, and any from-source Python build you might install manually. " (Source : http://wiki.debian.org/Python)

Guidtz

feist commented 11 years ago

Guidtz,

Thanks for the feedback! With that info I should be able to get this issue fixed for Debian users in the next couple days.

feist commented 11 years ago

I think I have this fixed, can you checkout the master branch and see if you're able to install properly?

roccolord commented 10 years ago

Still same problem on Ubuntu.

roccolord commented 10 years ago

ifeq ($(PYTHON_SITELIB), /usr/lib/python2.6/dist-packages) EXTRA_SETUP_OPTS="--install-layout=deb" endif

Problem is that I now have 2.7 /usr/lib/python2.7/dist-packages

feist commented 10 years ago

This should be fixed.