在我的 Mac OsX 上安装 channelflow
Posted
技术标签:
【中文标题】在我的 Mac OsX 上安装 channelflow【英文标题】:Installing channelflow on my Mac OsX 【发布时间】:2016-05-17 05:35:14 【问题描述】:我正在尝试按照本网站http://channelflow.org/dokuwiki/doku.php?id=docs:install 上的说明在我的 Mac OsX 上安装软件通道流。该站点指定必须首先在自己的系统上安装 fftw3、eigen 和 hdf5 usong fink。我已经在我的系统上成功安装了 fftw3 和 eigen,但无法使用 fink 安装 hdf5('fink install hdf5' 提到没有名为 hdf5 的包)。我使用https://www.hdfgroup.org/downloads/index.html 上的镜像安装了hdf5。但这在 usr/local 中安装了 hdf5,而“fink install”安装在 /sw 中(我认为)。
现在,安装 channelflow 给我以下错误。
MDOM18208-1:build kumarsambhava$ cmake -DCMAKE_INSTALL_PREFIX=~/channelflow ~/channelflow/trunk
-- configuring channelflow version 1.5.1
-- Build type: release
-- Basic system introspection...
-- Finding packages...
-- Found FFTW
-- FFTW_INCLUDE_DIR=/sw/include
-- FFTW_LIBRARY=/sw/lib/libfftw3.dylib
-- Adding /sw/include to include path...
-- Adding /sw/lib/libfftw3.dylib to libraries...
-- Found Eigen3
-- EIGEN3_INCLUDE_DIR=/sw/include/eigen3
-- Adding /sw/include/eigen3 to include path...
-- Found HDF5
-- HDF5 was not found.
-- Adding HDF5_LIBRARY-NOTFOUND to libraries...
-- Adding /libhdf5_cpp.so to libraries...
CMake Error at CMakeLists.txt:129 (CHECK_LIBRARY_EXISTS):
CHECK_LIBRARY_EXISTS Macro invoked with incorrect arguments for macro
named: CHECK_LIBRARY_EXISTS
CMake Error at CMakeLists.txt:135 (CHECK_LIBRARY_EXISTS):
CHECK_LIBRARY_EXISTS Macro invoked with incorrect arguments for macro
named: CHECK_LIBRARY_EXISTS
-- LIBS=/sw/lib/libfftw3.dylib;HDF5_LIBRARY-NOTFOUND;/libhdf5_cpp.so
-- INCLUDE_DIRS=
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
HDF5_INCLUDE_DIR (ADVANCED)
used as include directory in directory /Users/kumarsambhava/channelflow/trunk
used as include directory in directory /Users/kumarsambhava/channelflow/trunk
used as include directory in directory /Users/kumarsambhava/channelflow/trunk
used as include directory in directory /Users/kumarsambhava/channelflow/trunk
used as include directory in directory /Users/kumarsambhava/channelflow/trunk
used as include directory in directory /Users/kumarsambhava/channelflow/trunk
used as include directory in directory /Users/kumarsambhava/channelflow/trunk
used as include directory in directory /Users/kumarsambhava/channelflow/trunk
used as include directory in directory /Users/kumarsambhava/channelflow/trunk
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/channelflow
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/programs
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/examples
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/tests
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
used as include directory in directory /Users/kumarsambhava/channelflow/trunk/data
HDF5_LIBRARY (ADVANCED)
linked by target "chflow_static" in directory /Users/kumarsambhava/channelflow/trunk/channelflow
linked by target "chflow" in directory /Users/kumarsambhava/channelflow/trunk/channelflow
linked by target "symmetryop" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "seriesdist" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "pressure" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "poincare" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "seriesdist2" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "perturbfield" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "findsoln" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "makestokesmode" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "makebasis" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "seriesprops" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "L2Dist" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "projectseries" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "continuesoln" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "findsymmetries" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "couettePoincare" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "movieframes" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "arnoldi" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "L2IP" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "continuefields" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "fieldprops" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "fieldplots" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "field2ascii" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "projectfields" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "couette" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "randomfield" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "makeheatmode" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "symmetrize" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "diffop" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "interpsoln" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "fieldconvert" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "changegrid" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "ascii2field" in directory /Users/kumarsambhava/channelflow/trunk/programs
linked by target "addfields" in directory /Users/kumarsambhava/channelflow/trunk/programs
-- Configuring incomplete, errors occurred!
See also "/Users/kumarsambhava/channelflow/build/CMakeFiles/CMakeOutput.log".
【问题讨论】:
不是编程问题 - 试试 apple.stackexchange.com 或 unix.stackexchange.com ? 【参考方案1】:Cmake 找不到 hdf5 库。要解决此问题,请简要查看 <your channelflow path>/trunk/CMakeList.txt
:
在第 116、131 和 136 行中,您可以找到硬编码的 *.so
库。
您可以将后缀更改为 *.dylib
或在相应的库路径中创建符号链接。
【讨论】:
以上是关于在我的 Mac OsX 上安装 channelflow的主要内容,如果未能解决你的问题,请参考以下文章
如何在我的 Arduino Uno (Mac OSX) 上保持串行地址一致?
Android Studio 无法在 Mac OSX (Mavericks) 上加载 JVM
如何在 mac osx 10.11 El Capitan 上安装 php 7.4 版? [复制]