Freezing python files into executables
M.-A. Lemburg
mal at egenix.com
Tue Nov 3 14:47:01 EST 2009
Girish Venkatasubramanian wrote:
> Hey Marc-Andre,
> Ummm - I have installed python-devel.x86_64 and checked that the
> /usr/lib64/python2.4/ is populated - anything else I can/shuld do to
> check/ensure the the devel rpm is installed?
If you have the config/ sub-dir in there, things should be
fine.
However, it's possible that you need to tweek the freeze.py
script a little, since RedHat chose to split the Python
installation on x64 in two parts and they may have missed
patching freeze.py as well:
The platform independent parts are in /usr/lib, whereas the
platform dependent parts are in /usr/lib64.
Python normally doesn't support this. It only has a
prefix and an exec_prefix, but those only allow to do
things like prefix=/usr and exec_prefix=/usr64, not
changing the lib/ part in /usr/lib/.
> Thanks.
>
> On Tue, Nov 3, 2009 at 11:32 AM, M.-A. Lemburg <mal at egenix.com> wrote:
>> Rami Chowdhury wrote:
>>> On Tue, 03 Nov 2009 11:15:39 -0800, Girish Venkatasubramanian
>>> <girishvs at gmail.com> wrote:
>>>
>>>> Hello,
>>>> I have been using freeze.py on 32 bit linux distributions without a
>>>> problem. But recently I tried to do the same on RHEL5 x86_64 and ran
>>>> into some issues.
>>>>
>>>> 1) When I ran the script, I got
>>>> Error: needed directory /usr/lib/python2.4/config not found
>>>>
>>>
>>> I don't know anything about freeze.py but on 64-bit Red Hat distros
>>> (RHEL, Fedora, etc) it should be /usr/lib64/python2.4/config :-)
>>
>> This sounds a lot like a missing Python devel RPM.
>>
>> --
>> Marc-Andre Lemburg
>> eGenix.com
>>
>> Professional Python Services directly from the Source (#1, Nov 03 2009)
>>>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
>> ________________________________________________________________________
>>
>> ::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
>>
>>
>> eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
>> D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
>> Registered at Amtsgericht Duesseldorf: HRB 46611
>> http://www.egenix.com/company/contact/
>>
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Nov 03 2009)
>>> Python/Zope Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
::: Try our new mxODBC.Connect Python Database Interface for free ! ::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
http://www.egenix.com/company/contact/
More information about the Python-list
mailing list