Redhat 7.0 and Python 2.0 - SUCCESS
Glenn R. Williams
gloonie at netscape.net
Thu Apr 5 22:15:55 EDT 2001
Hi All,
I tried Sean's suggestion for installing Python 2.1b on Redhat 7.0
Linux, and so far so good! A few minor adjustments were needed, but I
can now start control-panel and ximian red-carpet.
Summary:
1. The dependencies listed were as follows:
failed dependencies:
python = 1.5.2 is needed by python-tools-1.5.2-27
python = 1.5.2 is needed by tkinter-1.5.2-27
python = 1.5.2 is needed by python-devel-1.5.2-27
/usr/bin/python is needed by kernelcfg-0.6-9
/usr/bin/python is needed by netcfg-2.36-1
/usr/bin/python is needed by up2date-2.1.7-1
/usr/bin/python is needed by rhn_register-1.0-7
/usr/bin/python is needed by postgresql-python-7.0.2-17
/usr/bin/python is needed by xinetd-2.1.8.9pre11-1
/usr/bin/python is needed by anaconda-7.0.1-6
/usr/bin/python is needed by rpmlint-0.14-4
/usr/bin/python is needed by rhn_register-gnome-1.0-7
/usr/bin/python is needed by up2date-gnome-2.1.7-1
2. I downloaded Sean's SRPM, and did a rpm -bb on the spec file.
3. I went into the /usr/src/redhat/BUILD/Python-2.1b2/Modules and
uncommented
the line
#crypt cryptmodule.c # -lcrypt # crypt(3);
to:
crypt cryptmodule.c -lcrypt # crypt(3);
4. I did a make install from /usr/src/redhat/BUILD/Python-2.1b2. This
placed
the crypto module in the lib-dynload library.
5. Just to update the rpm db, I then did rpm -Uvv on the binary. Since I
had
already installed crypt, this just completed the rest of the
settings.
6. When I first ran Redhat's control-panel, I got an error on two
statements in
redhat modules:
In /usr/lib/rhs/python/rhentry.py and
/usr/lib/rhs/python/PasswordCrypt.py,
change 'import rand' to 'import random'.
7. Two references to regex and regsub were listed as deprecated, but
worked.
8. One final note: I had to use --nodeps on the rpm option when
installing the
rpm binary I created to override the first three message.
Many thanks to Sean for his suggestions. I will post any new troubles,
should any arise.
Glenn
Sean Reifschneider wrote:
>
> On Tue, Apr 03, 2001 at 09:12:10PM -0400, Glenn R. Williams wrote:
> >I am having trouble using Python 2.0. Redhat 7.0 system configuration
> >programs like control-panel are written in Python (which is good), but
> >their cryptographic module in lib-dynlink doesn't work with Python 2.0.
> >Has ayone else experienced this problem?
>
> Seems like you need to enable the "crypt" module when building Python.
> Alternatively you might want to try my 2.0 SRPM from
> ftp://ftp.tummy.com/pub/tummy/RPMS/SRPMS -- install it and comment out the
> line in "/usr/src/redhad/SPECS/python-2.0.spec" for "binsuffix", then do
> "rpm -ba /usr/src/redhad/SPECS/python-2.0.spec" to build the binary RPM.
>
> Sean
> --
> A ship in port is safe, but that is not what ships are for.
> -- Rear Admiral Grace Murray Hopper
> Sean Reifschneider, Inimitably Superfluous <jafo at tummy.com>
> tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python
--
Glenn R. Williams
Director, Special Projects
RSG Systems, Inc.
More information about the Python-list
mailing list