Koozali.org: home of the SME Server

Upgrading Python with the Unofficial Upgrade Script

Offline pwgsc1

  • ****
  • 93
  • +0/-0
Upgrading Python with the Unofficial Upgrade Script
« on: December 20, 2004, 10:06:54 PM »
Hi All,

My goal is to get Rdiff-Backup working on 6.0.1.  One of it's dependencies is that Python version 2.2 or great has to be installed.  To achieve this I did an upgrade using the unofficial script, everything went fine with no errors.

When I now Install Rdiff-Backup it still says that I still require Python 2.2 or great to be installed.  When I type python at the command prompt is says it's version 1.5.2.

As a double check of the install I went to the /root/plus/apache directory and did a "rpm -Uvh *.rpm" to make sure all the rpm's installed.  It came back that all the programs where already installed.

So Python2.3 is on there, why can't Rdiff-backup see it and why when I run python does it still say it's 1.5.2?  Am I mising a symlink, should have unistalled previous version(s), etc?

Thanks for any help,

Craig

Offline stefan24

  • *****
  • 483
  • +0/-0
    • www.sme-server.de
Re: Upgrading Python with the Unofficial Upgrade Script
« Reply #1 on: December 22, 2004, 06:57:17 PM »
Hi!

If you say "whereis python", you can see python 1.5 and 2.2 both installed.
When starting "python" it starts Python 1.5.2, when starting "python2" it starts Python 2.2.2.

Code: [Select]
[root@hermes root]# cd /usr/bin/
[root@hermes bin]# ls py* -l
-rwxr-xr-x    1 root     root           51 Jan 31  2003 pydoc2
-rwxr-xr-x    1 root     root        18175 Jan 31  2003 pygettext2.py
-rwxr-xr-x    1 root     root           64 Jan 31  2003 pynche2
-rwxr-xr-x    2 root     root       413032 Jan 31  2003 python
-rwxr-xr-x    2 root     root       413032 Jan 31  2003 python1.5
-rwxr-xr-x    2 root     root       887296 Jan 31  2003 python2
-rwxr-xr-x    2 root     root       887296 Jan 31  2003 python2.2


Maybe you could fake RDiff-Backup by copying python2 to python!?

Offline pwgsc1

  • ****
  • 93
  • +0/-0
Python version fixed but (I think) I need Python-devel now
« Reply #2 on: December 25, 2004, 08:39:04 PM »
Hey Stefan,

Thanks,  I got the source for rdiff-backup and am trying to install it that way.  Only had to change a few lines and it's using python2.3 now.  But when the app tries to install or build I get the error /usr/lib/python2.3/config/Makefile (no suck file or directory).   From what I could gleam by searching the web it appears I need the Python Devel installed.

Any problems you know of installing that package?

Thanks,

Craig

Offline stefan24

  • *****
  • 483
  • +0/-0
    • www.sme-server.de
Upgrading Python with the Unofficial Upgrade Script
« Reply #3 on: December 25, 2004, 09:11:08 PM »
Quote
Any problems you know of installing that package?


Sorry, no. Never tried it, and I don't think, that I will need it either (and therefore won't test it)

Offline gregswallow

  • *
  • 651
  • +1/-0
Upgrading Python with the Unofficial Upgrade Script
« Reply #4 on: December 25, 2004, 10:26:41 PM »
Just install the matching python2.3-devel rpm.  Sounds like your application does need it to be installed.

Info about it is here:
http://rpm.pbone.net/index.php3/stat/4/idpl/1565478/com/python2.3-devel-2.3.4-2.norlug.i386.rpm.html

...it does contain /usr/lib/python2.3/config/Makefile.

Offline pwgsc1

  • ****
  • 93
  • +0/-0
Itall the Devel package opened a kettle of fish.
« Reply #5 on: December 26, 2004, 06:04:43 PM »
Hi Guys,

Thanks for the help.  Appreciated it.

It was on a test server so I said what the hay!  I installed the python-devel package and then to compile it it now needs GCC.   I"m sure if I installed that then I would need something something else and something else, etc.   Where's it all going to end!!  ha ha

I'll try it from a different angle,  Maybe if I use the source RPM and rebuild it with python 2.3 it might work.....maybe???  

Once again thanks and happy holidays,

Craig