473,378 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

2.3 or 2.4 on linux

We are in the process of standardizing ~10 Linux servers on Lineox 4.x,
which is a variant of RedHat Enterprise server I'm told. Part of that
process is to standardize python.

The baseline install includes python 2.3 which is adequate, but I would like
to standardize on 2.4.1, because it is the latest and greatest and has a few
modules that would be nice to have. I installed python 2.4.1 ok, creating
a python24 directory alongside the pyhton23 directory. The problems started
when I tried to install MySQLdb.

My problem is that all the rpm installs seem to impact the 2.3 that's there.
When I check the 2.3 site-packages directory, I find alot of goodies like

Alchemist.py kudzu.py rpmdb
authconfigmodule.so rpmmodule.so CacheBlackBox.py libusermodule.so
_snackmodule.so
mod_python snack.py CompatMysqldb.py mx
CompatMysqldb.pyc MySQLdb FileBlackBox.py _mysql_exceptions.py
URLBlackBox.py
ForgeBlackBox.py _mysql.so xf86config.py ForgeBlackBox.pyo
pyalchemist_python.py
_xmlplus
ixf86configmodule.so

I assume some system tools must use them, even if I don't. I don't know if
I can just copy all this into the 2.4 site-packages (deleting .pyc and .pyo)
and get what I need.

I'm not a sysadmin hotshot, and our sysadmin is not a python hotshot, so
between us we can really screw up a system. We would really like to stick
with either apt-get or rpm installs to keep our sysadmin issues under
control. Has anyone hit this wall already and found a reasonable solution?.

---------------------------------------------------------------------------
The information contained in this message may be privileged and / or
confidential and protected from disclosure. If the reader of this message is
not the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please notify the sender
immediately by replying to this message and deleting the material from any
computer.
---------------------------------------------------------------------------
Aug 4 '05 #1
2 1196
Sells, Fred wrote:
We are in the process of standardizing ~10 Linux servers on Lineox 4.x,
which is a variant of RedHat Enterprise server I'm told. Part of that
process is to standardize python.

The baseline install includes python 2.3 which is adequate, but I would like
to standardize on 2.4.1, because it is the latest and greatest and has a few
modules that would be nice to have. I installed python 2.4.1 ok, creating
a python24 directory alongside the pyhton23 directory. The problems started
when I tried to install MySQLdb.

My problem is that all the rpm installs seem to impact the 2.3 that's there.
When I check the 2.3 site-packages directory, I find alot of goodies like

Alchemist.py kudzu.py rpmdb
authconfigmodule.so rpmmodule.so CacheBlackBox.py libusermodule.so
_snackmodule.so
mod_python snack.py CompatMysqldb.py mx
CompatMysqldb.pyc MySQLdb FileBlackBox.py _mysql_exceptions.py
URLBlackBox.py
ForgeBlackBox.py _mysql.so xf86config.py ForgeBlackBox.pyo
pyalchemist_python.py
_xmlplus
ixf86configmodule.so

I assume some system tools must use them, even if I don't. I don't know if
I can just copy all this into the 2.4 site-packages (deleting .pyc and .pyo)
and get what I need.

I'm not a sysadmin hotshot, and our sysadmin is not a python hotshot, so
between us we can really screw up a system. We would really like to stick
with either apt-get or rpm installs to keep our sysadmin issues under
control. Has anyone hit this wall already and found a reasonable solution?.

---------------------------------------------------------------------------
The information contained in this message may be privileged and / or
confidential and protected from disclosure. If the reader of this message is
not the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please notify the sender
immediately by replying to this message and deleting the material from any
computer.
---------------------------------------------------------------------------


Since you have two versions of Python on the machine, which one is first
in the execution path? What is the output of the 'python -V' command?

You might also try 'which python' or 'whence python' commands.
Aug 4 '05 #2
> I assume some system tools must use them, even if I don't. I don't know if
I can just copy all this into the 2.4 site-packages (deleting .pyc and .pyo)
and get what I need.


Copying pure python site-packages from python23 to python24 should be
safe, but the binaries (.so) will not work because they're linked to
libpython2.3.so. If you're determined to stick to RPMs, you will need
to find an RPM that is built specifically for Python 2.4 for any
package that involves a C extension (e.g. mysqldb).

RedHat does use some Python scripts internally, so you will want to
make sure that everything it needs is present in the new installation
before you switch /usr/bin/python to 2.4.

Aug 4 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jhuola Hoptire | last post by:
Just installed J2RE 1.4.2 on a Linux server. I am very knew to the POSIX world. I couldn't dig-up much in the docs or via google about the following: 1 - Is there a standard way to make sure...
0
by: Eric Raymond | last post by:
When installing the rpms (or the tar file) onto Red Hat Enteprise Linux AS Beta 1 (Taroon), we get the follwing error: Installing all prepared tables /usr/bin/mysql_install_db: line 1: 7690...
6
by: gnu | last post by:
Rationale to use Linux ======================= - I can't afford paying for $199 for the license of an OS that's arguably better thank Linux for each of 10 computers I have. - I want to be...
21
by: Travis 'Bailo' Bickel | last post by:
Lately, I have been having a bear of a time trying to acquire a Linux driver for my S3/ProSavage chipset -- but that quest is now almost at an end as I have located a noble band of people who are...
1
by: srihari | last post by:
Hai, I am trying to install IBM DB2 8.1 on Red Hat linux 8.0. My machine is Intel XEON 64bit. The installation went well except for the creation of tools catalog. When I tried to install the tools...
0
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
5
by: cranium.2003 | last post by:
hi, Here is my code #include <iostream.h> int main() { cout <<"HI"; return 0; } and using following command to compile a C++ program g++ ex1.cpp -o ex1
1
by: rada.lambretha | last post by:
Configuring Linux as a Firewall * Making installation choices * Introducing iptables * Using iptables commands * Simplifying things with firewall GUIs * Adding proxy functionality As...
1
Nepomuk
by: Nepomuk | last post by:
You might have heard about Linux, but you don't know what it is? Or you know a few things about it, but they terrify you? Well, then this article is for you. Don't be afraid - Everyone can use Linux!...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.