[egenix-users] compiling egenix-mx-experimental-0.8.0 on Solaris 8

M.-A. Lemburg mal at egenix.com
Tue Dec 2 19:47:33 CET 2003


Page, Bill wrote:
> Hello,
> 
> I am trying to compile and install mxTidy so that I
> can then install Epoz 0.7.1 for use under Plone.
> I am using
> 
>   gcc version 3.2.2
> 
> on Solaris 8.
> 
> The egenix-mx-base-2.0.5 package installs with
> no problem using
> 
>   cd egenix-mx-base-2.0.5
>   python setup.py install
> 
> but
> 
>   cd egenix-mx-experimental-0.8.0
>   python setup.py install
> 
> Gives the following error:
> 
> building extension "mx.Number.mxNumber.mxNumber" (required)
> checking for optional libraries
> gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.1
> -I/usr
> /local/include -c _configtest.c -o _configtest.o
> _configtest.c:1:17: gmp.h: No such file or directory
> _configtest.c:2:18: mpfr.h: No such file or directory
> failure.
> removing: _configtest.c _configtest.o
> could not find optional library 'mpfr' -- omitting it
> building 'mx.Number.mxNumber.mxNumber' extension
> gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -Imx/Number/mxNumber
> -I/usr/local/inc
> lude/python2.1 -I/usr/local/include -c mx/Number/mxNumber/mxNumber.c -o
> build/te
> mp.solaris-2.8-sun4u-2.1/mx/Number/mxNumber/mxNumber/mxNumber.o
> In file included from mx/Number/mxNumber/mxNumber.c:23:
> mx/Number/mxNumber/mxNumber.h:32:17: gmp.h: No such file or directory
> In file included from mx/Number/mxNumber/mxNumber.c:23:
> mx/Number/mxNumber/mxNumber.h:47: parse error before "mpz_t"
> mx/Number/mxNumber/mxNumber.h:47: warning: no semicolon at end of struct or
> unio
> n
> mx/Number/mxNumber/mxNumber.h:52: parse error before '}' token
> 
> ...
> 
> Apparently I am missing (or the include path is incorrect)
> for gmp.h (part of the gnu math package?).
> 
> Is this a prerequisit for mxTidy? Could there be anything
> else I am missing?

No, if you don't have GMP installed just edit mxEXPERIMENTAL.py
and comment out the mxNumber sections.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Software directly from the Source  (#1, Dec 02 2003)
 >>> Python/Zope Products & Consulting ...         http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::


More information about the egenix-users mailing list