Upgrading Python to newer version
Currently I am running Python version 1.5.2 found at /usr/bin/python, Python version 2.2.2 found at /usr/bin/python2, Python version 2.2.2 found at /usr/bin/python2.2 on a mitel SME Server version 6.0 (www.e-smith.org ) which is based on redhat 7.3.
My goal is to have Python 2.3.2 or later installed somewhere in the system PATH to meet the (plone 2.0 CMS ) system requirements.
There are rpm builds of python for fedora core 1 available here but I'm not sure if they're compatible with redhat 7.3/SME server.
I tried installing the newest version of python from source tarball to see if that would work but I got the following error:
compiling is out of the question since I just read this on the sme server FAQ's
I can't seem to find make, gcc or other compiler tools?
The SME Server is not a general purpose Linux operating system - it's a specialized distribution designed to act as a workgroup server and internet gateway. We do not provide compiler tools, including "make" as they are not required for the operation of the system and should not be installed on production gateways in order to preserve the integrity and security of the system.
A system running RedHat linux (or compatible) should be used for preparing any software for installation onto the server. Preferably the RPM binary format should be used to package the software and install it on the server. Please see Questions 5 and 6 for more details.
Please note that you can still develop RPMS on your SME Server without these tools.
I'm grabbing at straws here but...
This is the method I decided to try to upgrade my python libraries on SME 6.0 to the newest version
----------taken from http://www.python.org/2.3.3/rpms.html-----------
RPMs For Other Platforms
For platforms in which binaries aren't available here, you can easily build binary RPMs directly from the Python SRPM. Simply download one of the .src.rpm files below, and run "rpmbuild --rebuild python-<version>.src.rpm". Note toward the end of the output, the lines starting with "Wrote:" indicate where the binary RPMs were written.
The benefit of building binary RPMs in this way is that they are built using exactly the set of libraries and versions of packages that you have installed on your system. Because the SRPMs encompass all the steps required to build binary RPMs, it is a "fire and forget" process -- the simplest source build ever.
1) downloaded python2.3-2.3.3-2pydotorg.src.rpm and tried the suggestion above to build my own binary rpm directly from the python source rpm. I got an error because of failed dependancies and because I was also missing gcc or other tools to compile
2) I did Fresh installation of sme 6.0 on a seperate machine to try and create the binary rpm for my SME Server.
3) I downloaded all the necessary package dependancies and necessary files
needed to compile programs in sme 6.0 and to create a python rpmbuild
--rebuild for the python source rpm including all the following files:
4) Once everything was installed that I believed was necessary to create the binary RPM from the python RPM source I tried it again
Someone has pointed me to some redhat 7.3 rpm updates for python that will save me the trouble of building my own RPM's.
here's a link to the rpm to update the python packages
here's the helpful post
|All times are GMT -5. The time now is 11:56 AM.|