Opened 12 years ago

Closed 12 years ago

#1901 closed defect (fixed)

PostGIS 2.0.0 - Errors during "make check" because of mathml

Reported by: davidMF Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.2
Component: postgis Version: 2.0.x
Keywords: history Cc:

Description

Hye. I've installed PostGIS 2.0.0 on RHEL6. I succeed in creating PostGIS extension but the check is not ok. I tried "make check" but it crashed with a lot of errors messages.

(PS : my conf in detail ⇒ POSTGIS="2.0.0 r9605" GEOS="3.3.2-CAPI-1.7.2" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.9.1, released 2012/05/15" LIBXML="2.7.7" LIBJSON="UNKNOWN" TOPOLOGY RASTER).

The first error: error : Operation in progress postgis-out.xml:11: warning: failed to load external entity "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd" %mathml;

Entity: line 1:

%mathml;

using_postgis_dataman.xml:1372: namespace error : Namespace prefix mml on math is not defined

<mml:math display="block">

… … The last one: using_postgis_dataman.xml:1494: element inlineequation: validity error : Element inlineequation content does not follow the DTD, expecting (alt? , (inlinegraphic+ | inlinemediaobject+ | mml:math)), got (math )

</inlineequation></emphasis></entry>

make[1]: * [check] Erreur 4 make[1]: « /var/lib/pgsql/distribs/POSTGIS/POSTGIS/postgis-2.0.0/doc » make: * [docs-check] Error 2

Thanks for your help. David.

Change History (7)

comment:1 by strk, 12 years ago

You'll need to either install the mathml2.dtd locally or to allow network access.

comment:2 by davidMF, 12 years ago

Sorry for my question, but I'm a newbie. This package is used by which extension ? GDAL ? Thanks.

comment:3 by davidMF, 12 years ago

Other question. Is it possible to install PostGIS and tests it without generating doc (make check —nodoc ?) ?? Thanks for all.

comment:4 by robe, 12 years ago

Are you building from SVN or tar ball? If building from tarball, you should be able to make check without generating docs, however you may need to set the —with-xsldir to something bogus: —with-xsldir=/pleaseno

so it registers as not found. See: #1779

Also you are trying to install an obsolete version. 2.0.1 came out recently which includes a lot of bug fixes:

http://www.postgis.org/news/20120622

Please try that one and see if you still have issues.

comment:5 by robe, 12 years ago

You should also be using GEOS 3.3.5 if at all possible.

comment:6 by davidMF, 12 years ago

I don't succeed in compiling because of security policies which don't allow acces to external web sites.

Today (5 hours ago), I tried compiling with Postgis 2.0.1 I got =⇒ POSTGIS="2.0.1 r9979" GEOS="3.3.2-CAPI-1.7.2" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.9.1, released 2012/05/15" LIBXML="2.7.6" LIBJSON="UNKNOWN" TOPOLOGY RASTER

'make was ok', but 'make check' not only.

Else, how can I install mathml2.dtd locally ? I got it with an unsecured wget access and I copied it in /usr/…. 'make' was ok but 'make check' gave me others errors. I'm not sure that just copy this file under this directory is sufficient …

I going to test the option you gave me (—with-xsldir=/pleaseno).

comment:7 by robe, 12 years ago

Keywords: history added
Resolution: fixed
Status: newclosed
Summary: PostGIS 2.0.0 - Errors during "make check"PostGIS 2.0.0 - Errors during "make check" because of mathml

issue resolved. pramsey killed our dependency on mathml.

Note: See TracTickets for help on using tickets.