首页 / 浏览问题 / 其他 / 问题详情
禹贡for PG缺少缺少libiconv
1EXP 2023年06月26日

CentOS Linux release 7.9.2009 + gcc 7.4 + cmake 3.19

Yukon v1.0.1 + PostgreSQL13

checking for xmllint... /home/3rd_inst/libxml2/bin/xmllint
configure: WARNING: could not locate Docbook stylesheets required to build the documentation
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for CUNIT... no
configure: WARNING: could not locate CUnit required for unit tests
checking iconv.h usability... no
checking iconv.h presence... yes
configure: WARNING: iconv.h: present but cannot be compiled
configure: WARNING: iconv.h:     check for missing prerequisite headers?
configure: WARNING: iconv.h: see the Autoconf documentation
configure: WARNING: iconv.h:     section "Present But Cannot Be Compiled"
configure: WARNING: iconv.h: proceeding with the compiler's result
checking for iconv.h... no
configure: error: Could not find iconv.h header. Please install libiconv and libiconv-devel.

 按照文档http://yukon.supermap.io/2.0-beta/appendix/appendixB.html#appendixb-label
依赖也都安装完成。

drwxr-xr-x. 5 root root 47 Jun 25 19:21 cgal
drwxr-xr-x. 6 root root 56 Jun 25 19:16 gdal
drwxr-xr-x. 5 root root 45 Jun 25 18:03 geos
drwxr-xr-x. 4 root root 34 Jun 25 22:21 json-c
drwxr-xr-x. 6 root root 56 Jun 26 10:53 libiconv
drwxr-xr-x. 6 root root 56 Jun 26 09:47 libxml2
drwxr-xr-x. 6 root root 56 Jun 25 16:55 proj
drwxr-xr-x. 5 root root 43 Jun 26 10:04 protobuf
drwxr-xr-x. 5 root root 43 Jun 26 10:18 protobuf-c
drwxr-xr-x. 5 root root 45 Jun 25 19:48 sfcgal
drwxr-xr-x. 6 root root 56 Jun 25 16:41 sqlite3

尝试1,把libiconv写入enable,source生效后,configure也会出现这个错误
尝试2,./configure --with-libiconv=/home/3rd_inst/libiconv 也是这个错误 

且无自定义路径。使用的是enable环境变量,把所有依赖放进环境变量中,source

1个回答

您好,关于 Yukon 源码编译的问题已在 Yukon4PgSQL 开源项目的 Issues 中提出,后续 Yukon 研发团队会在此 Issue 中回复解决方案,建议关注此 Issue "pg版源码编译,缺少libiconv"

希望可以帮到您。

2,248EXP 2023年06月26日
恩,那个是我发起的
...