[Tutor] Re: Installing 2.1 on RHL7.0
Stephen L Arnold
sarnold@earthling.net
Thu, 10 May 2001 23:40:25 -0700
On 10 May 01, at 20:22, Timothy M. Brauch wrote:
> Any ideas? Also, should I ditch the *.tgz file and use the rpm's instead,
> should I install all the rpm's:
> - python2-2.1-4.i386.rpm
> - python2-tkinter-2.1-4.i386.rpm
> - python2-devel-2.1-4.i386.rpm
> - python2-tools-2.1-4.i386.rpm
> I actually tried using these first, but tools gave me an error that it
> conflicted with Python1.5.2, already installed, Or, what is the deal with
> the source rpms?
I think the first guy is probably correct (it looks like a version
conflict in the header files. In general, you should try to use
source rpms if they are available; you'll find enough stuff to play
with along the way. The source rpm for python will produce all the
above binary rpms for your system. Try dropping the .srpm file in
/usr/src/redhat/SRPMS and type:
rpm --rebuild <filename>.src.rpm
If all goes well, it will unpack the the source, run configure,
make, etc, and place the rpm files in /usr/src/redhat/RPMS/i386 (or
noarch, or whatever). It seems to default to i386 for processor
type, even though I have an Athlon now. I've never looked into it,
but I suppose rpm must have a config file to set that somewhere...
There are several RedHat packages that use Python (which I suppose
is why they're still at version 1.52 of Python) so it will probably
complain about dependencies when you try to install the binaries,
whether you use the upgrade switch or not. You can run:
rpm -q python-devel
(and the others) to see which packages are installed. You should
install all of them, and for any that complain about a straight
upgrade, do this do this:
rpm -Uvh --nodeps <filename>.rpm
which will upgrade (but ignore package dependencies).
Have fun, Steve
*************************************************************
Steve Arnold sarnold@arnolds.dhs.org
Assoc. Faculty, Dept of Geography, Allan Hancock College
http://arnolds.dhs.org/geography.html
Linux: It's not just for nerds anymore...