ubuntu 20 install Amber22 出现报错
-- Checking whether to use built-in libraries...
-- Looking for complex.h
-- Looking for complex.h - found
-- Looking for rl_initialize in libreadline.so
-- Looking for rl_initialize in libreadline.so - found
-- Found Readline: /usr/include
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (OpenMP_C)
does not match the name of the calling package (OpenMPFixed). This can
lead to problems in calling code that expects `find_package` result
variables (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
cmake/patched-cmake-modules/FindOpenMPFixed.cmake:408 (find_package_handle_standard_args)
cmake/hanjianwei/FindMKL.cmake:194 (find_package)
cmake/3rdPartyTools.cmake:227 (find_package)
CMakeLists.txt:206 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find OpenMP_C (missing: OpenMP_pthread_LIBRARY) (found version "4.5")
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (OpenMP_CXX)
does not match the name of the calling package (OpenMPFixed). This can
lead to problems in calling code that expects `find_package` result
variables (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
cmake/patched-cmake-modules/FindOpenMPFixed.cmake:408 (find_package_handle_standard_args)
cmake/hanjianwei/FindMKL.cmake:194 (find_package)
cmake/3rdPartyTools.cmake:227 (find_package)
CMakeLists.txt:206 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find OpenMP_CXX (missing: OpenMP_pthread_LIBRARY) (found version "4.5")
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args`
(OpenMP_Fortran) does not match the name of the calling package
(OpenMPFixed). This can lead to problems in calling code that expects
`find_package` result variables (e.g., `_FOUND`) to follow a certain
pattern.
Call Stack (most recent call first):
cmake/patched-cmake-modules/FindOpenMPFixed.cmake:408 (find_package_handle_standard_args)
cmake/hanjianwei/FindMKL.cmake:194 (find_package)
cmake/3rdPartyTools.cmake:227 (find_package)
CMakeLists.txt:206 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Could NOT find OpenMP_Fortran (missing: OpenMP_pthread_LIBRARY) (found version "4.5")
-- Performing Test SUPPORTS_NO_AS_NEEDED
-- Performing Test SUPPORTS_NO_AS_NEEDED - Success
-- Performing Test CMath_LINKS_WITHOUT_M
-- Performing Test CMath_LINKS_WITHOUT_M - Failed
-- Performing Test CMath_LINKS_WITH_M
-- Performing Test CMath_LINKS_WITH_M - Success
-- Found CMath: /usr/lib/x86_64-linux-gnu/libm.so
-- Could NOT find MKL (missing: MKL_INTERFACE_LIBRARY MKL_GFORTRAN_INTERFACE_LIBRARY MKL_GNU_THREADING_LIBRARY MKL_CORE_LIBRARY OpenMP_C_FOUND MKL_WORKS MKL_FORTRAN_WORKS)
-- hints given to look for KMMD in DIR:
-- found KMMD?: KMMD_LIB-NOTFOUND
-- found INCLUDES?:
-- Did not find an external KMMD library, should be able to use bundled. If you have a custom version then set the path with -DKMMD_DIR (missing: KMMD_LIB)
-- Cannot search for FFTW Fortran headers because the serial headers were not found
-- Could NOT find FFTW (missing: FFTW_LIBRARY_SERIAL FFTW_WORKS FFTW_INCLUDES_SERIAL FFTW_FORTRAN_WORKS)
-- Failed to find NetCDF interface for F77 (NetCDF_INCLUDES_F77 = NetCDF_INCLUDES_F77-NOTFOUND, NetCDF_LIBRARIES_F77 = NetCDF_LIBRARIES_F77-NOTFOUND)
-- Failed to find NetCDF interface for F90 (NetCDF_INCLUDES_F90 = NetCDF_INCLUDES_F90-NOTFOUND, NetCDF_LIBRARIES_F90 = NetCDF_LIBRARIES_F90-NOTFOUND)
-- Could NOT find NetCDF (missing: NetCDF_C_WORKS NetCDF_LIBRARIES NetCDF_INCLUDES)
-- Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR)
-- Could NOT find XBLAS (missing: XBLAS_LIBRARY XBLAS_C_WORKS XBLAS_FORTRAN_WORKS)
-- A library with BLAS API not found. Please specify library location.
-- LAPACK requires BLAS
-- A library with LAPACK API not found. Please specify library location.
-- The ARPACK library was not found. Please set ARPACK_LIBRARY to point to it. (missing: ARPACK_LIBRARY ARPACK_WORKS)
-- Could not find some or all of the five main APBS libraries. Please set APBS_GENERIC_LIB, APBS_ROUTINES_LIB,
APBS_PMGC_LIB, APBS_MG_LIB, APBS_MC_LIB, APBS_FEM_LIB, UMFPACK_LIB, and APBS_MALOC_LIB to point to the correct libraries (missing: APBS_API_LIB APBS_ROUTINES_LIB APBS_MG_LIB APBS_PMGC_LIB APBS_GENERIC_LIB APBS_FEM_LIB APBS_MC_LIB UMFPACK_LIB APBS_MALOC_LIB APBS_WORKS APBS_INCLUDES)
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
-- Could NOT find PUPIL (missing: PUPIL_MAIN_LIB PUPIL_BLIND_LIB PUPIL_TIME_LIB JNI_FOUND PUPIL_WORKS)
-- Could NOT find LIO (missing: LIO_G2G_LIBRARY LIO_AMBER_LIBRARY LIO_WORKS)
-- Could NOT find PLUMED (missing: PLUMED_LIBRARY PLUMED_KERNEL_LIBRARY PLUMED_INCLUDES PLUMED_WORKS) (Required is at least version "2.5")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
-- Checking for perl module Chemistry::Mol
-- Checking for perl module Chemistry::Mol - failed
-- Checking for perl module ExtUtils::MakeMaker
-- Checking for perl module ExtUtils::MakeMaker - found at /usr/share/perl/5.34/ExtUtils/MakeMaker.pm
-- Failed to find Perl modules: Chemistry::Mol (missing: PERLMODULES_CHEMISTRY_MOL_MODULE)
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR thread system program_options iostreams regex timer chrono filesystem graph)
-- Unable to build internal Boost without zlib and libbz2
CMake Error at cmake/3rdPartyTools.cmake:108 (message):
3rd party program boost is required to build Amber, but it is disabled
(likely because it was not found).
Call Stack (most recent call first):
cmake/3rdPartyTools.cmake:570 (set_3rdparty)
CMakeLists.txt:206 (include)
不知道你这个问题是否已经解决, 如果还没有解决的话:解决方案:
如果是在JavaScript中需要添加prompt来提示用户,可以使用以下代码实现:
var errorMessage = prompt("你好,请问您是在安装Amber22软件过程中遇到了问题吗?您能否详细描述一下报错的情况,以便我可以更好地给您提供解决方案呢?另外,您是否尝试过重新安装该软件或查阅相关的错误提示信息?谢谢!");
// 将errorMessage发送到服务器或者进行其他操作
如果是在网页中需要添加prompt,则可以使用以下代码实现:
<script>
var errorMessage = prompt("你好,请问您是在安装Amber22软件过程中遇到了问题吗?您能否详细描述一下报错的情况,以便我可以更好地给您提供解决方案呢?另外,您是否尝试过重新安装该软件或查阅相关的错误提示信息?谢谢!");
// 将errorMessage发送到服务器或者进行其他操作
</script>
注意,prompt弹窗会阻塞JavaScript代码的执行,直到用户完成输入并点击了确定按钮。因此,在使用prompt时需要注意页面的交互体验,避免造成用户等待时间过长的问题。另外,用户的输入值需要经过验证和过滤,避免恶意输入或不规范输入导致的安全问题或错误。