找不到以下ICU库:-i18n(必需) [英] The following ICU libraries were not found: -- i18n (required)

查看:840
本文介绍了找不到以下ICU库:-i18n(必需)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须构建miktex源代码.我从github安装源代码,它们为我提供了构建链接: https://miktex.org/howto/build-mac .

I have to build miktex source code. I install source code from github they give me link to build it: https://miktex.org/howto/build-mac.

我按照链接中给出的步骤进行操作.当我跑步

I follow the steps given in the link. When I run

cmake ../source

我遇到了错误:

INFOfribidi libs: /usr/local/Cellar/fribidi/1.0.5/lib/libfribidi.dylib
INFOfribidi incs:
/usr/local/Cellar/fribidi/1.0.5/include/fribidi;/usr/local/Cellar/fribidi/1.0.5/include
-- The following ICU libraries were not found:
--   i18n (required)
--   uc (required)
CMake Error at /usr/local/Cellar/cmake/3.12.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
    Failed to find all ICU components (missing: ICU_INCLUDE_DIR ICU_LIBRARY _ICU_REQUIRED_LIBS_FOUND)
Call Stack (most recent call first):  
  /usr/local/Cellar/cmake/3.12.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)  
  /usr/local/Cellar/cmake/3.12.2/share/cmake/Modules/FindICU.cmake:317 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:1032 (find_package)
-- Configuring incomplete, errors occurred! See also "/Users/afnisaeed/Desktop/CMakeFiles/CMakeOutput.log".

其他信息:

echo $CMAKE_PREFIX_PATH
/opt/icu4c:/opt/openssl:/opt/icu4c:/opt/qt:$ {brewprefix}/opt/icu4c:/opt/openssl:/opt/icu4c:/opt/qt:/usr/local/Cellar/qt5/5.7.0/

推荐答案

我对miktexfribidi一无所知,因此这可能毫无帮助,但是您的构建系统似乎有困难找到与ICU有关的东西-不管是什么.

I know nothing at all about miktex or fribidi so this may not be of any assistance at all, however your build system seems to be having difficulty finding something to do with ICU - whatever that is.

如果您运行:

brew info icu4c

它告诉您有关该软件包仅插入" 的全部内容,这表示已安装了它提供的内容(标头和库),但没有其他软件包可以在哪里找到它.然后为您提供以下具体建议:

it tells you a whole load of stuff about the package being "keg-only" which means the stuff it provides (headers and libraries) is installed, but not where any other package will find it. Then it gives you the following specific advice:

icu4c is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).

If you need to have icu4c first in your PATH run:
  echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.bash_profile
  echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.bash_profile

For compilers to find icu4c you may need to set:
  export LDFLAGS="-L/usr/local/opt/icu4c/lib"
  export CPPFLAGS="-I/usr/local/opt/icu4c/include"

For pkg-config to find icu4c you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"

因此,我怀疑您尚未完成最后两节,您需要执行以下操作:

So, I suspect you have not done the last 2 sections, and you need to do something like:

export LDFLAGS="${LDFLAGS} -L/usr/local/opt/icu4c/lib"
export CPPFLAGS="${CPPFLAGS} -I/usr/local/opt/icu4c/include"
export PKG_CONFIG_PATH=/usr/local/opt/icu4c/lib/pkgconfig:"$PKG_CONFIG_PATH"

这篇关于找不到以下ICU库:-i18n(必需)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆