本文介绍了如何指出配置正确的icu路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Mac和Terminal的新手,所以这可能是一个愚蠢的问题.我正在尝试在mysrc/myfreeling中运行./configure,以便可以安装freeing,但出现此错误:

正在检查-licuuc中的主要内容...否

I'm a newcomer to macs and terminal in particular, so this may be a stupid question. I'm trying to run ./configure in mysrc/myfreeling so that I can install freeling but I get this error:

checking for main in -licuuc... no

找不到Unicode ICU库.
确保libicu是
已安装,可以在标准路径中找到.
您可能需要设置LDFLAGS来指定搜索路径.

现在,当我执行端口安装"时,它显示:

icu @ 49.1.2_0(活动)

所以我知道我有ICU.因此,我尝试了icu文件夹所在的env LDFLAGS =-L/opt/local/lib"和env LDFLAGS =-L/opt/local/lib/icu",但仍然出现相同的错误.如何知道配置如何访问icu?

Unicode ICU library not found.
Make sure libicu is
installed and can be found in a standard path.
You may need to set LDFLAGS to specify search path.

Now, when I do "port installed" it shows:

icu @49.1.2_0 (active)

So I know that I have icu. So I tried env LDFLAGS="-L/opt/local/lib" and env LDFLAGS="-L/opt/local/lib/icu" which is where the icu folder is located, but I still get the same error. How can I tell configure how to access icu?

推荐答案

好的,我知道了.我已经在MacPorts上安装了icu.我刚去做了一个手动安装,现在可以正常工作了.我不知道为什么/如何解决了这个问题,不知道是否有人有任何见识.

Okay, I got it working. I had installed icu with MacPorts. I just went and did a manual install and now its working. I'm not sure why/how this resolved the issue and would love to know if anyone has any insight.

这篇关于如何指出配置正确的icu路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-13 22:31