issues installing 2.7
-bash: /etc/ld.so.conf.d/opt-python2.7.conf/opt/python2.7/lib: Not a directory
any ideas?
How I Installed:
I am not sure what a distro is. I used the package from the page googled to set up python 2.7 on centos 5.
x86_64
yum install gcc gcc-c++.x86_64 compat-gcc-34-c++.x86_64 openssl-devel.x86_64 zlib*.x86_64
install python 2.7
1 wget http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2
2 tar -xvjf Python-2.7.tar.bz2
3 cd Python*
4 ./configure --prefix=/opt/python27
5 make
6 make install
7 vi ~/.bash_profile
replace PATH=$PATH:$HOM E/bin
with PATH=$PATH:$HOM E/bin:/opt/python27/bin
reload .bash_profile
1 source ~/.bash_profile
2 echo "/opt/python27/lib" > /etc/ld.so.conf.d/python27.conf
3 ldconfig
install setuptool
1 cd ~
2 wget http://pypi.python.org/packages/2.7/...6c11-py2.7.egg
3 sh setuptools-0.6c11-py2.7.egg
MY ISSUE AT THIS POINT OF THE INSTALL IS ...
-bash: /etc/ld.so.conf.d/opt-python2.7.conf/opt/python2.7/lib: Not a directory
How to fix?
My Files
[root@sehaleys-mac ~]# ls
anaconda-ks.cfg rpmforge-release-0.5.1-1.el5.rf.x86_64 .rpm
install.log setuptools-0.6c11-py2.7.egg
install.log.sys log sqlite-3.7.3
Python-2.7 sqlite-amalgamation-3.7.3.tar.gz
Python-2.7.tgz
[root@sehaleys-mac ~]# cd /
[root@sehaleys-mac /]# ls
bin dev home lost+found misc net proc sbin srv tmp var
boot etc lib media mnt opt root selinux sys usr
[root@sehaleys-mac /]# cd opt
[root@sehaleys-mac opt]# ls
python2 python27
[root@sehaleys-mac opt]# cd python27
[root@sehaleys-mac python27]# ls
bin include lib share
[root@sehaleys-mac python27]# cd lib
[root@sehaleys-mac lib]# ls
libpython2.7.a pkgconfig python2.7
[root@sehaleys-mac lib]#
Now I am getting ...
[root@sehaleys-mac ~]# sh setuptools-0.6c11-py2.7.egg
Traceback (most recent call last):
File "<string>", line 1, in <module>
zipimport.ZipIm portError: can't decompress data; zlib not available
How to find/install zlib?
Thanks
-bash: /etc/ld.so.conf.d/opt-python2.7.conf/opt/python2.7/lib: Not a directory
any ideas?
How I Installed:
I am not sure what a distro is. I used the package from the page googled to set up python 2.7 on centos 5.
x86_64
yum install gcc gcc-c++.x86_64 compat-gcc-34-c++.x86_64 openssl-devel.x86_64 zlib*.x86_64
install python 2.7
1 wget http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2
2 tar -xvjf Python-2.7.tar.bz2
3 cd Python*
4 ./configure --prefix=/opt/python27
5 make
6 make install
7 vi ~/.bash_profile
replace PATH=$PATH:$HOM E/bin
with PATH=$PATH:$HOM E/bin:/opt/python27/bin
reload .bash_profile
1 source ~/.bash_profile
2 echo "/opt/python27/lib" > /etc/ld.so.conf.d/python27.conf
3 ldconfig
install setuptool
1 cd ~
2 wget http://pypi.python.org/packages/2.7/...6c11-py2.7.egg
3 sh setuptools-0.6c11-py2.7.egg
MY ISSUE AT THIS POINT OF THE INSTALL IS ...
-bash: /etc/ld.so.conf.d/opt-python2.7.conf/opt/python2.7/lib: Not a directory
How to fix?
My Files
[root@sehaleys-mac ~]# ls
anaconda-ks.cfg rpmforge-release-0.5.1-1.el5.rf.x86_64 .rpm
install.log setuptools-0.6c11-py2.7.egg
install.log.sys log sqlite-3.7.3
Python-2.7 sqlite-amalgamation-3.7.3.tar.gz
Python-2.7.tgz
[root@sehaleys-mac ~]# cd /
[root@sehaleys-mac /]# ls
bin dev home lost+found misc net proc sbin srv tmp var
boot etc lib media mnt opt root selinux sys usr
[root@sehaleys-mac /]# cd opt
[root@sehaleys-mac opt]# ls
python2 python27
[root@sehaleys-mac opt]# cd python27
[root@sehaleys-mac python27]# ls
bin include lib share
[root@sehaleys-mac python27]# cd lib
[root@sehaleys-mac lib]# ls
libpython2.7.a pkgconfig python2.7
[root@sehaleys-mac lib]#
Now I am getting ...
[root@sehaleys-mac ~]# sh setuptools-0.6c11-py2.7.egg
Traceback (most recent call last):
File "<string>", line 1, in <module>
zipimport.ZipIm portError: can't decompress data; zlib not available
How to find/install zlib?
Thanks
Comment