【问题标题】:ODBC link check failed error while compiling Erlang OTP on FreeBSD 10.1在 FreeBSD 10.1 上编译 Erlang OTP 时 ODBC 链接检查失败错误
【发布时间】:2021-07-22 07:52:58
【问题描述】:

我正在尝试在 FreeBSD 10.1 操作系统上编译 Erlang OTP-R16B03-1。当我运行./configure 命令时,输出是

odbc           : ODBC library - header check failed

我试过安装unixODBC、iODBC。 /usr/ports/databases/unixODBC 也存在。 sql.h 文件位于/usr/local/include

我仍然收到链接失败错误。任何帮助都会很有用

./configure |grep odbc命令的日志如下所示

config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
=== configuring in odbc/. (/root/otp_src_R16B03-1/lib/odbc/.)
checking for odbc in standard locations... -L/usr/local/lib
checking for SQLAllocHandle in -lodbc... no
configure: WARNING: "ODBC library - header check failed"
configure: WARNING: Check for large file support flags failed; getconf failed
odbc           : ODBC library - header check failed

【问题讨论】:

  • 查看lib/odbc/config.log 以获取更详细的错误消息。此外,this question 可能会有所帮助。

标签: erlang freebsd


【解决方案1】:

我在erlang 21 上遇到了同样的问题,但是当我从 github (erlang 22) 下载最新版本并尝试./configure 时,错误ODBC library - header check failed 再次出现,但在再次尝试make install 之后,一切都成功完成.

【讨论】:

    【解决方案2】:

    最终对我有用的是

    apt-get install unixodbc-dev
    

    然后

     otp_build configure --with-odbc=/usr/lib/x86_64-linux-gnu/
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-12-24
      • 1970-01-01
      • 2017-01-07
      • 1970-01-01
      • 2023-03-14
      • 1970-01-01
      • 2022-09-28
      • 2015-11-28
      相关资源
      最近更新 更多