问题描述
我正在尝试在Linux Mint 15上安装Geant4 10.00.在我创建的目录中有geant4解压缩的文件geant4.10.00.p01:
I'm trying to install Geant4 10.00 on Linux Mint 15. I have the unzipped geant4 file geant4.10.00.p01 in the directory I made:
/home/mickmau5/Geant4
/home/mickmau5/Geant4
以及所需的生成文件geant4.10.00-build.该站点通过安装过程 http://goo.gl/nzxpQG 进行.我在冗长的cmake命令部分出现此错误
along with the required build file geant4.10.00-build. This site goes throught the installation process http://goo.gl/nzxpQG . I'm at the lengthy cmake command part and getting this error
mickmau5@linuxmint ~/Geant4/geant4.10.00-build $ cmake -DCMAKE_INSTALL_PREFIX=/home/mickmau5/Geant4/geant4.10.00.p01-install /home/mickmau5/Geant4/geant4.10.00.p01
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (message):
Could NOT find EXPAT (missing: EXPAT_LIBRARY EXPAT_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindEXPAT.cmake:50 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/Modules/Geant4OptionalComponents.cmake:71 (find_package)
CMakeLists.txt:78 (include)
-- Configuring incomplete, errors occurred!
好像我应该下载一些东西.
Seems like I ought to download some things.
感谢您的帮助!
推荐答案
来自Geant4 文档:
如果设置为ON,则在外部安装Expat来构建Geant4.在这个在这种情况下,将在以下位置搜索Expat标头和库标准系统路径.如果这些不足以定位必需的Expat安装,请参阅高级EXPAT_INCLUDE_DIR和EXPAT_LIBRARY选项.
If set to ON, build Geant4 with an external install of Expat. In this case, the Expat headers and library will be searched for under the standard system paths. If these are not sufficient to locate the required Expat installation, see the Advanced EXPAT_INCLUDE_DIR and EXPAT_LIBRARY options.
虽然Expat已安装在绝大多数系统上,但可能在某些情况下会丢失.在这些情况下,只需切换此选项设置为OFF,Geant4将构建并使用其内部版本的外籍人士
Whilst Expat is installed on the vast majority of systems, it may be missing in certain instances. In these cases, simply switch this option to OFF and Geant4 will build and use its internal version of Expat.
要求:Expat库和标头.
REQUIRES : Expat library and headers.
这篇关于Geant4找不到Expat库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!