我有以下问题: 它以某种方式找不到该文件的ICU库,从而产生以下错误:
系统:OS X High Sierra
要编译:Cyrus SASL-2.1.26
clang: warning: /usr/local/icu/include: 'linker' input unused [-Wunused-command-line-argument]
In file included from lib/charset.c:48:
./lib/charset.h:61:10: fatal error: 'unicode/ucnv.h' file not found
#include "unicode/ucnv.h"
^~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [lib/lib_libcyrus_la-charset.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
使用的命令:
./configure OPENSSL_CFLAGS=/usr/local/libressl-2.5.5/include
OPENSSL_LIBS="/usr/local/libressl-2.5.5/lib -lssl -lcrypto"
JANSSON_CFLAGS=/usr/local/jansson-2.11/incluce
JANSSON_LIBS=/usr/local/jansson-2.11/lib ICU_CFLAGS=/usr/loca/icu/include
ICU_LIBS=/usr/local/icu/lib --prefix=/usr/local/cyrus-imapdb-3.0.8
--sysconfdir=/etc --enable-auth-sasldb --with-dbpath=/var/lib/sasl/sasldb2
--with-saslauthd=/var/run/saslauthd
按照此处的说明进行操作:http://www.linuxfromscratch.org/blfs/view/svn/postlfs/cyrus-sasl.html
./configure passes but make -j1 exits with the error shown above.
设置了bash_profile:
export PATH=/usr/local/icu/bin:$PATH
export LIBRARY_PATH=/usr/local/icu/lib:$LIBRARY_PATH
export MANPATH=/usr/local/icu/share/man:$MANPATH
感谢我的帮助,因为我的头发越来越白。