# Error in Geant4 Installation

**URL:** <https://geant4-forum.web.cern.ch/t/error-in-geant4-installation/13400>\
**Category:** Getting Started\
**Created:** [December 30, 2024, 3:39pm UTC](https://geant4-forum.web.cern.ch/t/error-in-geant4-installation/13400 "2024-12-30T15:39:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![IqbalHossain86](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/iqbalhossain86/32/8052_2.png) [@IqbalHossain86](https://geant4-forum.web.cern.ch/u/IqbalHossain86)\
**Post date:** [December 30, 2024, 3:39pm UTC](https://geant4-forum.web.cern.ch/t/error-in-geant4-installation/13400/1 "2024-12-30T15:39:37Z")

</div>

Please fill out the following information to help in answering your question, and also see [tips for posting code snippets](https://geant4-forum.web.cern.ch/t/how-to-post-code-snippets/9944). If you don’t provide this information it will take more time to help with your problem!

\_Geant4 Version:\_11.3.0  
\_Operating System:\_ubuntu  
_Compiler/Version:_  
\_CMake Version:\_3.22.1

* * *

Hello Everyone. Hope all of you are fine and doing well. I’m getting the following error during installation of Geant4. Can anyone please help me by telling how can I fix this error. Thanks in advance for your kind help.

CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):  
Could NOT find EXPAT (missing: EXPAT\_LIBRARY EXPAT\_INCLUDE\_DIR)  
Call Stack (most recent call first):  
/usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (\_FPHSA\_FAILURE\_MESSAGE)  
/usr/share/cmake-3.22/Modules/FindEXPAT.cmake:65 (FIND\_PACKAGE\_HANDLE\_STANDARD\_ARGS)  
cmake/Modules/G4OptionalComponents.cmake:69 (find\_package)  
cmake/Modules/G4CMakeMain.cmake:59 (include)  
CMakeLists.txt:49 (include)

– Configuring incomplete, errors occurred!

$ sudo apt install dnf install expat-devel  
[sudo] password for iqbal:  
Reading package lists… Done  
Building dependency tree… Done  
Reading state information… Done  
E: Unable to locate package install  
E: Unable to locate package expat-devel

Best Regards with Thanks  
Iqbal

---

<div class="post-metadata">

**Author:** ![mkelsey](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/mkelsey/32/49_2.png) [@mkelsey](https://geant4-forum.web.cern.ch/u/mkelsey)\
**Post date:** [December 30, 2024, 5:04pm UTC](https://geant4-forum.web.cern.ch/t/error-in-geant4-installation/13400/2 "2024-12-30T17:04:58Z")

</div>

> [@IqbalHossain86](#):
>
> see [tips for posting code snippets](https://geant4-forum.web.cern.ch/t/how-to-post-code-snippets/9944).

Please don’t use screenshots in place of plain text. It is unusable by screen readers, and cannot be copy-pasted by people trying to help you.

---

<div class="post-metadata">

**Author:** ![mkelsey](https://geant4-forum.web.cern.ch/user_avatar/geant4-forum.web.cern.ch/mkelsey/32/49_2.png) [@mkelsey](https://geant4-forum.web.cern.ch/u/mkelsey)\
**Post date:** [December 30, 2024, 5:56pm UTC](https://geant4-forum.web.cern.ch/t/error-in-geant4-installation/13400/4 "2024-12-30T17:56:40Z")

</div>

> [@IqbalHossain86](#):
>
> CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):  
> Could NOT find EXPAT (missing: EXPAT\_LIBRARY EXPAT\_INCLUDE\_DIR)

You may find information related to EXPAT in the [Geant4 Installation Guide](https://geant4-userdoc.web.cern.ch/UsersGuides/InstallationGuide/html/search.html?q=EXPAT&check_keywords=yes&area=default) useful, in particular the details under [Geant4 Build Options](https://geant4-userdoc.web.cern.ch/UsersGuides/InstallationGuide/html/installguide.html?highlight=expat#geant4-build-options). Reconfigure your CMake by specifying `-DGEANT4_USE_SYSTEM_EXPAT=OFF`.

---

<div class="post-metadata">

**Author:** ![system](https://geant4-forum.web.cern.ch/uploads/default/original/1X/ce519a43ebdf7ac48a98a03c6ad6eea013b68c46.png) [@system](https://geant4-forum.web.cern.ch/u/system)\
**Post date:** [January 29, 2025, 5:56pm UTC](https://geant4-forum.web.cern.ch/t/error-in-geant4-installation/13400/5 "2025-01-29T17:56:50Z")

</div>

Closed on January 29, 2025, 5:56pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
