在FreeBSD 10.1上编译Erlang OTP时发生ODBC链接检查失败错误

yxyvkwin  于 2022-12-08  发布在  Erlang
关注(0)|答案(2)|浏览(171)

I am trying to compile Erlang OTP-R16B03-1 on FreeBSD 10.1 OS. When i run the ./configure command the output is

odbc           : ODBC library - header check failed

I have tried installing unixODBC, iODBC. Also /usr/ports/databases/unixODBC exists. The sql.h file is located in /usr/local/include .
I am still getting the link failed error. Any help will be useful
The log for ./configure |grep odbc command is as shown below

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
brvekthn

brvekthn1#

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

xkftehaa

xkftehaa2#

最后对我有用的是

apt-get install unixodbc-dev

然后

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

相关问题