It all began when I wanted to install python 2.6 in my RHEL system.
I could not get python 2.6 working with source install.
So I used "Extra Packages for Enterprise Linux".
With a hint from a member (knudfl, hats off), I added a repository to RHEL like this:
Code:
rpm -Uvh
http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Then yum update.
Then I did
yum install python26 python26-ldap
This took care of python 2.6 and python-ldap.
But when I ran a bootstrap.py (which was in an application I am supposed to run) like this:
Code:
python26 bootstrap.py
Now, says "permission denied".
File permission at /usr/lib/python2.6/site-packages/.. is rwxr-xr-x and the owner is root.
I am doing this as a non-root user, and echo $PATH gives:
Code:
/home/user1/bin:/usr/bin/python26:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/user1/bin
I reproduce the error message:
Code:
[user1@localhost testDir]$ python26 bootstrap.py
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.19.tar.gz
Extracting in /tmp/tmp8zxcDH
Now working in /tmp/tmp8zxcDH/distribute-0.6.19
Building a Distribute egg in /tmp/tmppyNcRW
/tmp/tmppyNcRW/distribute-0.6.19-py2.6.egg
Getting distribution for 'distribute==0.6.14'.
Before install bootstrap.
Scanning installed packages
No setuptools distribution found
After install bootstrap.
Creating /usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info
error:
/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:
Permission denied
An error occurred when trying to install distribute 0.6.14. Look above
this message for any errors that were output by easy_install.
While:
Bootstrapping.
Getting distribution for 'distribute==0.6.14'.
Error: Couldn't install: distribute 0.6.14
Please give me a hint or two.
Thanks.
PS: I have these openldap related packages installed (from the beginning, when I installed the OS):
Code:
openldap-2.3.43-12.el5_5.3.3.i386
openldap-devel-2.3.43-12.el5_5.3.3.i386
python-ldap-2.2.0-2.1.i386