I have made some changes to python.m4. PYLIBDIR trusted very much to
LIBPOSTFIX and it was forced to be set to "lib$LIBPOSTFIX". In this case you
didn't install your lib-files in "lib64".

I have added a test and detects if the directory
/usr/local/lib64/python2.4/config/ exists before setting PYLIBDIR. If not,
it is set to /usr/local/lib/python2.4/config/
and LIBPOSTFIX is ignored.

/Christian


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:owfs-
> [EMAIL PROTECTED] On Behalf Of Peter Kropf
> Sent: den 7 december 2006 06:40
> To: owfs-developers@lists.sourceforge.net
> Subject: Re: [Owfs-developers] I can't build with alternate python
> 2.4.3
> 
> Just to let you know, I ran
> 
> ./configure --with-python=/opt/python2.5/bin/python2.5
> 
> and it worked as expected. I don't think the problem is with 2.4.3 vs
> 2.5 but we'll have to dig a bit more into the configure script to
> figure out what's going on.
> 
> - Peter
> 
> 
> 
> On 12/6/06, Brad Clements <[EMAIL PROTECTED]> wrote:
> > I just did a csv co, bootstrap, and now I run configure with
> >
> >  ./configure --disable-owphp --disable-owperl --with-
> python=/usr/local/bin/python2.4
> >
> > But python doesn't get enabled. I know I've mentioned this problem on
> the list a
> > while back, and finally resorted to hacking configure.  But, has
> anyone looked at
> > why this doesn't work yet?
> >
> > Current configuration:
> >
> >     Deployment location: /opt/owfs
> >
> > Compile-time options:
> >                   Caching is enabled
> >                       USB is enabled
> >                       I2C is enabled
> >                    HA7Net is enabled
> >            Multithreading is enabled
> >     Parallel port DS1410E is enabled
> >         TAI8570 barometer is enabled
> >              Thermocouple is enabled
> >          Zeroconf/Bonjour is enabled
> >              Debug-output is enabled
> >                 Profiling is DISABLED
> >
> > Module configuration:
> >         owfs is DISABLED
> >      owhttpd is enabled
> >       owftpd is enabled
> >     owserver is enabled
> >       owcapi is enabled
> >         swig is enabled
> >       owperl is DISABLED
> >        owphp is DISABLED
> >     owpython is DISABLED
> >        owtcl is enabled
> >
> > I have an x86-64 machine. Python is compiled as a 64 bit executable.
> >
> > from config.log
> >
> > configure:22161: checking if owpython is enabled
> > configure:22194: result: yes (default)
> > configure:22222: result: Looking for location of Python executable
> > configure:22298: checking for Python prefix
> > configure:22301: result: /usr/local
> > configure:22303: checking for Python exec-prefix
> > configure:22306: result: /usr/local
> > configure:22313: checking for Python version
> > configure:22319: result: python2.4
> > configure:22324: checking for Python lib dir
> > configure:22331: result: lib64
> > configure:22336: checking for Python header files
> > configure:22346: result: -I/usr/local/include/python2.4 -
> I/usr/local/lib64/python2.4/config
> > configure:22350: checking for Python library
> > configure:22360: result: Not found
> > configure:22398: WARNING: Cannot find python library. Install python-
> devel package.
> > configure:22400: WARNING: OWPYTHON is disabled because python library
> is not found
> >
> > The actual location for PYLIB is
> /usr/local/lib/python2.4/config/libpython2.4.a
> >
> > On my system /usr/local/lib64 is empty
> >
> > and
> >
> > Python 2.4.3 (#1, Aug 22 2006, 17:41:07)
> > [GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2
> > Type "help", "copyright", "credits" or "license" for more
> information.
> > >>> import sys
> > >>> sys.lib
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in ?
> > AttributeError: 'module' object has no attribute 'lib'
> >
> > I try setting PYLIB directly on the command line, but that doesn't
> work UNLESS
> > I comment out this line in configure line 22230.
> >
> > PYLIB=
> >
> > It seems to me (other than upgrading to python 2.5) that there should
> be a way to
> > set the PYLIB path explicitly on the configure command line, and then
> only do all
> > the lib checking if the user hasn't specified it.
> >
> > however my configure-foo is low.. so I resort to commenting out the
> above line.
> >
> >
> >
> >
> >
> > --
> > Brad Clements,                [EMAIL PROTECTED]    (315)268-1000
> > http://www.murkworks.com
> > AOL-IM or SKYPE: BKClements
> >
> >
> >
> > ---------------------------------------------------------------------
> ----
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> > opinions on IT & business topics through brief surveys - and earn
> cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVD
> EV
> > _______________________________________________
> > Owfs-developers mailing list
> > Owfs-developers@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/owfs-developers
> >
> 
> -----------------------------------------------------------------------
> --
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVD
> EV
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to