RHEL comes with Python2.3 installed. A program I need to install
requires Python2.4
So I got Python2.4 from source and compiled it up. I configured it
with --prefix=/usr --exec-prefix=/usr and --enable-unicode=ucs4 . I
then make'd it and then make altinstall so that it didn't overwrite
the /usr/bin/Python link to /usr/bin/Python2.3 .
Well, for some reason, the arch dependent files did NOT get placed
properly in /usr/lib64/Python2.4, they instead went to
/usr/lib/Python2.4.
Also, when I tried to load pysqlite:
$ Python2.4
>>from pysqlite2 import test
I get the following traceback:
Traceback (most recent call last):
File "setup.py", line 24, in ?
import glob, os, re, sys
File "/usr/lib64/python2.3/glob.py", line 4, in ?
import fnmatch
File "/usr/lib64/python2.3/fnmatch.py", line 13, in ?
import re
File "/usr/lib64/python2.3/re.py", line 5, in ?
from sre import *
File "/usr/lib64/python2.3/sre.py", line 97, in ?
import sre_compile
File "/usr/lib64/python2.3/sre_compile.py" , line 17, in ?
assert _sre.MAGIC == MAGIC, "SRE module mismatch"
AssertionError: SRE module mismatch
This basically means to me that Python2.4 is loading gloab.py from
/usr/lib64/Python2.3 insead of /usr/lib/Python2.4 (even thought I
wanted to install the related files in /usr/lib64/Python2.4)
Can someome please help!
Respectfully,
Christopher Taylor
Oct 18 '06
15 5562
Christopher Taylor schrieb:
>Ah, I see. The reason is pretty simple: Makefile.pre.in has
LIBDIR= $(exec_prefix)/lib
so it seems that LIBDIR isn't configurable.
So you would agree that this is a bug?
I personally think this is a bug in AMD64-Linux. Libraries should
be stored in /usr/lib, binaries in /usr/bin, etc. If they need
simultaneous installation of 32-bit binaries for compatibility,
they should store them in architecture-specific directories.
I'll post on Python-Dev for
further advice. I'd like to fix this for the x86_64 community.
The x86_64 community has been using Python for a while, and
apparently has solved this problem already. You should try
to find out how they did it.
Regards,
Martin
I personally think this is a bug in AMD64-Linux. Libraries should
be stored in /usr/lib, binaries in /usr/bin, etc. If they need
simultaneous installation of 32-bit binaries for compatibility,
they should store them in architecture-specific directories.
I disagree. From what I see, the error, as far as python is
considered, is not being able to specify the location where libs are
put, despite the fact that the --LIBDIR= option is listed. It just
happens to manifest itself in AMD64/EM64T Linux, specifically RH linux
where 64bit libs are put in /usr/lib64 and 32bit libs in /usr/lib.
The x86_64 community has been using Python for a while, and
apparently has solved this problem already. You should try
to find out how they did it.
Where might I go to look on how to get this working?
Respectfully,
Christopher Taylor
P.S. I posted on python-dev and I haven't seen my post show up yet,
nor any responces .... is that list moderated?
Christopher Taylor schrieb:
I disagree. From what I see, the error, as far as python is
considered, is not being able to specify the location where libs are
put, despite the fact that the --LIBDIR= option is listed. It just
happens to manifest itself in AMD64/EM64T Linux, specifically RH linux
where 64bit libs are put in /usr/lib64 and 32bit libs in /usr/lib.
Ok. One solution might be to remove the libdir option, then. Python
attempts to be "movable", i.e. the libraries are found relative to
the executable (via dirname(sys.exe cutable)+"../lib/..."). If
libdir is supported, this approach must be given up - or libdir must
be given up.
>The x86_64 community has been using Python for a while, and apparently has solved this problem already. You should try to find out how they did it.
Where might I go to look on how to get this working?
The Linux distributions already provide Python binaries (I believe
Redhat does, too). You could study what they do to achieve that.
P.S. I posted on python-dev and I haven't seen my post show up yet,
nor any responces .... is that list moderated?
No, it should show up automatically.
Regards,
Martin
Ok. One solution might be to remove the libdir option, then. Python
attempts to be "movable", i.e. the libraries are found relative to
the executable (via dirname(sys.exe cutable)+"../lib/..."). If
libdir is supported, this approach must be given up - or libdir must
be given up.
Well, honestly, seeings how LIBDIR doesn't do anything ... I can see
the argument for removing it.
However, I would like to propose a more flexible solution: Perhaps a
../configure parameter called LIBLOC or something like that so that
LIBDIR = $(EXEC_PREFIX)/$(LIBLOC). Of course, LIBLOC should default
to "lib". This way the flexibility you mentioned above can be
maintained and the 64bit community (which will eventually be the
entire community) can move forward with minimal hassle.
The Linux distributions already provide Python binaries (I believe
Redhat does, too). You could study what they do to achieve that.
Yes, this is true ... but they do not package the most up-to-date
version .. which I need.
Respectfully,
Christopher Taylor
Christopher Taylor schrieb:
>The Linux distributions already provide Python binaries (I believe Redhat does, too). You could study what they do to achieve that.
Yes, this is true ... but they do not package the most up-to-date
version .. which I need.
Sure. However, I still think they have solved the problem already -
if just for older versions. The build procedure hasn't changed that
much, so the solution might be applicable to the version you want
as well.
Regards,
Martin
Does anyone have any comments on my proposed solution?
However, I would like to propose a more flexible solution: Perhaps a
./configure parameter called LIBLOC or something like that so that
LIBDIR = $(EXEC_PREFIX)/$(LIBLOC). Of course, LIBLOC should default
to "lib". This way the flexibility you mentioned above can be
maintained and the 64bit community (which will eventually be the
entire community) can move forward with minimal hassle.
Respectfully,
Christopher Taylor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jose Vicente Nunez Z |
last post by:
Greetings,
I wrote a couple of custom dummy extensions in Python (one a pure Python
and the other a C) and i managed to compile and install them without a
problem:
$ make
python2 setup.py build
running build
|
by: Mathieu Malaterre |
last post by:
Hello,
I thought this would be easy but I guess I didn't get the distutil
feeling. I am trying to write a setup for install my package but I don't
understand how to do that.
organisation:
setup.py
/bin/
|
by: oliversl |
last post by:
Hi,
I have a stock RHEL4 server and not that the imap_open() function no
longer
works.
I have a local pop3 server running dovecot that I use to autenticate
with this line:
$imap_stream =
imap_open("{mailserver:995/pop3/notls/ssl/novalidate-cert}", $username,
$password, OP_HALFOPEN);
|
by: Reestit Mutton |
last post by:
I'm trying to get the mysqli object-oriented syntax to work in php. I
understand that I have to have at least version 5 of php - I've
therefore opted for version 5.1.4. The remainder of my setup is as follows
php 5.1.4
mysql 4.1.10a-2.RHEL4.1
httpd-2.0.52-12.2.ent
Redhat Enterprise Linux 4
To be able to configure and compile the source of php to work with
|
by: google |
last post by:
MySQL Server is version 4.1.7 (I know I should upgrade, and I will if
that is the problem but it has been working fine for 1.5 years now and
only recently has started to have this problem). Server is Linux
Redhat Enterprise 4. PHP is 4.4.4.
SQL STATEMENT:
==============
SELECT * FROM campaign_contact cc
LEFT JOIN optins_master co
ON cc.cc_cont_id=co.optin_id
| |
by: pssraju |
last post by:
Hi,
At present application was built on solaris 9 using sun studio 9 (Sun C++ 5.6) & rouguewave sorce pro 5. We are planning to port the same application onto SuSE Linux 9.5.0 using GCC 3.3.3 & RW source pro 9. My application heavily uses RW tools through wrapper classes on the top existing RW classes. RW libraries were built using gcc on linux platform and standalong RW examples are working fine. Since the application compilation is moving...
|
by: Eric B. |
last post by:
Hi,
I appologize if this is slightly OT, but I am really struggling to figure
out how to install Python2.4 on RHEL4. To make matters worse, the RHEL4
machine is a 64bit architecture.
I search pyvault, but they only have for .i386. Does anyone know where /
how I can find Python2.4 for RHEL4 x64?
If there is a better place to be asking this question, please let me know,
|
by: Luis Speciale |
last post by:
Hi u all :
I'm trying to build mod_python in Leopard 10.5.4 with a cvs version from
http://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk
I have
$ python
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
|
by: Luis Speciale |
last post by:
Hi
I'm trying to build mod_pyton on Leopard 10.5.4 on a Mac G5 with this
cvs version
http://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk
with this Python
python
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |