Message: Re: EXPAT library missing Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Note Re: EXPAT library missing 

Forum: Installation and Configuration
Re: None EXPAT library missing (Bethany)
Date: 08 Feb, 2013
From: Ben Morgan <Ben Morgan>

On Thu, 07 Feb 2013 18:35:10 GMT, Bethany wrote:
> Hi there, I have been doing a lot of reading to try to figure out what's
> going on with a few problems with my Geant install, and wanted to
> clarify something and ask advice on what to do to let things work
> properly.
> When I look at installation instructions for Geant, it says all I need
> is g++ compiler, Geant source code, cmake, make.
> However, both my previous install of Geant4.9.5.p01 and the new one I am
> trying to get working (Geant4.9.6.p01) both complain about not finding
> EXPAT. From my reading, it seems that this should be something that's
> internal to Geant, but that doesn't seem to be the case?
> First off, could someone let me know whether I need EXPAT installed on
> my computer?

We do ship EXPAT with Geant4 for use in cases where the system doesn't provide it - so the short answer is, no, you don't need it installed. On Linux though, the configuration defaults to searching for a system install of expat because it is generally, though not universally, a stock package in most distributions. That default is also used because if your application has other components that use EXPAT, you'll generally want Geant4 to link against that EXPAT, not the Geant4 internal one.

> The error I get looks like this: "Could NOT find EXPAT (missing:

In this case, your system (probably) does not have EXPAT installed, or at least not the development package. It's not completely clear what distribution you are running on, but the package will be named something like libexpat-devel, and you should have a in /usr/lib{64} and an expat.h in /usr/include.

Either install that package, or you can force Geant4 to build and use its internal EXPAT by adding -DGEANT4_USE_SYSTEM_EXPAT=OFF to your cmake arguments.

Hope that helps,


Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: EXPAT library missing   (Bethany - 25 Feb, 2013)
 Add Message Add Message
to: "Re: EXPAT library missing"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]