LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Python local instal? (https://www.linuxquestions.org/questions/linux-newbie-8/python-local-instal-4175434745/)

yaximik 10-30-2012 08:08 AM

Python local instal?
 
Hi,

My RHEL58 and SciLinux55 are based on Python 2.4, which is not supported by the current Galaxy distribution. I while ago I was advised not to mess with system Python, but being unhealthy curious, I tried to install 2.6 and then had to reinstall SciLinux55 from scratch. Question - can I make just local install of Python 2.7 without messing up the system one? How to make sure I do not get the system messed up?

knudfl 10-30-2012 10:40 AM

Python-2.6 : #yum install python26 : The EPEL repo https://fedoraproject.org/wiki/EPEL

yum search python26 : Will show all python26 packages.

I guess you can build a "python27" the same way 'python26' was built.
http://dl.fedoraproject.org/pub/epel.../python26.html
> http://dl.fedoraproject.org/pub/epel...-1.el5.src.rpm

Note : No conflicts with the system python 2.4, from the above.

.

yaximik 10-31-2012 08:49 AM

python local install [SOLVED]
 
Quote:

Originally Posted by knudfl (Post 4818243)
Python-2.6 : #yum install python26 : The EPEL repo https://fedoraproject.org/wiki/EPEL

yum search python26 : Will show all python26 packages.

I guess you can build a "python27" the same way 'python26' was built.
http://dl.fedoraproject.org/pub/epel.../python26.html
> http://dl.fedoraproject.org/pub/epel...-1.el5.src.rpm

Note : No conflicts with the system python 2.4, from the above.

.

Thanks. I still did not try to risk as yum also depends on system python and I am not sure how it works. After all, system-wide updates also done with yum. So I just downloaded the source to my home directory on the smaller SciLinux guinea pig, and README said install is going to go in /usr/local, while system's one resides in /usr/bin and /usr/lib. It also mentioned that RHEL still depends on python 1.7.x, while also uses without problem 2.1 and 2.4. So, after 'configure', 'make', and 'sudo make install' with default options I got everything installed in /usr/local, ensured that in $PATH /usr/local/bin comes before /usr/bin and everything seems fine. Then I made local install of Galaxy and it works just fine. Voila!


All times are GMT -5. The time now is 08:18 AM.