标签:mkdir not found serve .so tar.gz source project str usr
系统环境:
Linux: Centos 7.0
SQL server: SQL2012R2
安装步骤:
1. 安装freetds
wget http://mirrors.ibiblio.org/freetds/stable/freetds-stable.tgz
tar xvzf freetds-stable.tgz
cd freetds-0.91/
./configure--prefix=/usr/local/freetds--with-unixodbc=/usr/local/unixODBC --with-tdsver=8.0
make && make install
出现问题如下:
执行./configure--prefix=/usr/local/freetds--with-unixodbc=/usr/local/unixODBC --with-tdsver=8.0命令报错,错误如下:
解决办法:
安装GCC软件套件
yum install gcc
执行make && make install出现报错sql.h not found,
解决办法:
编辑configure
vim ./configure
找到$with_unixodbc中的
test -r "$ODBC_INC/sql.h" || as_fn_error $? "sql.h not found" "$LINENO"
这段代码修改成
test -r "$ODBC_INC/sql.h" || as_fn_error $? "$ODBC_INC/sql.h not found" "$LINENO" 5
2. 安装unixodbc
Wget http://nchc.dl.sourceforge.net/project/unixodbc/unixODBC/2.3.4/unixODBC-2.3.4.tar.gz
tar xvzf unixODBC-2.3.4.tar.gz
cd unixODBC-2.3.4
mkdir /usr/local/unixODBC
./configure --prefix=/usr/local/unixODBC
make && make install
标签:mkdir not found serve .so tar.gz source project str usr
原文地址:https://www.cnblogs.com/xspbiubiubiu/p/9914867.html