LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2011, 11:32 AM   #1
yaximik
Member
 
Registered: Nov 2010
Posts: 90

Rep: Reputation: 0
Question Adding safely other python version


Moving away from previous tread (using rpm).
The issue: I need to add python2.6 to RHEL55/SL55 that is based on python2.4.3 to utilize the full functionality of another program. Since I already killed one system by replacing the default python version (previous tread), I asked developers how to safely enable already installed 2.6 without crashing the system. Here is the quoted reply:

******
You could install 'python26' from EPEL[1], presumably this does not break /usr/bin/python since it installs the new version as /usr/bin/python2.6. Then as the user which runs Galaxy, do something like this:

$ mkdir $HOME/bin
$ ln -s /usr/bin/python2.6 $HOME/bin/python $ export PATH=$HOME/bin:$PATH $ echo 'export PATH=$HOME/bin:$PATH' >> $HOME/.bash_profile

*****
Two questions:

-what is your opinion about safety of this action? I was already advised to keep 2.6 out of system's sight.

- in /usr/bin I already found 4 files python2, pythion2.4, python2.6 and python26. The active version (python -V) is 2.4.3. Why I have 2.6 and 26 there after one installation and how to figure out which is actually needed if I want to enable 2.6 (or is it 26)?

Thanks a lot.
 
Old 05-04-2011, 11:49 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

The developers on the project I work for use python26-2.6.5-3.el5.x86_64.rpm. I install it using kickstart on a RHEL 5.5 system in production environment without any problems as a regular RPM with
Code:
rpm -ivh python26-2.6.5-3.el5.x86_64.rpm
It installs without any problem besides the default in RHEL included version 2.4.3-27. Executing
Code:
which python
gives me
Code:
/usr/bin/python
while
Code:
which python26
gives as output
Code:
/usr/bin/python26
In all their code they use the python26 environment and we haven't encountered problems yet. Of course, the more versions you install, the more complicated and confusing your environment will be. Try to stick what you need and you shouldn't have any problems.

Kind regards,

Eric
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding python after initial install joeshmo Slackware 2 04-14-2011 10:11 AM
[Python] 'None' being displayed after adding feature LinuxCrayon Programming 3 03-27-2008 11:10 PM
Python: adding LIBDVDCSS possible? J3N7iL Programming 2 03-12-2006 11:25 AM
python problem - compiled from source - python -V still showing old version txm123 Linux - Newbie 1 02-15-2006 11:05 AM
can you apply 2.6.x kernel config to 2.4.x safely/somewhat safely? silex_88 Linux - Software 3 12-09-2005 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration