Annexes:FreeTds
Révision datée du 30 janvier 2022 à 21:37 par Admin (discussion | contributions)
Téléchargez les sources et mettez-les dans /tmp :
# https://www.freetds.org/ # ftp://ftp.freetds.org/pub/freetds/stable/ # https://www.freetds.org/files/stable/freetds-1.3.6.tar.gz [root@vmsqwarebox ~]# su - mssql mssql@vmsqwarebox:/home/mssql () $ cd /applis/mssql/ mssql@vmsqwarebox:/applis/mssql () $ tar zxvf /tmp/freetds-1.3.6.tar.gz
Compilation (avec openssl, "yum install openssl-devel openssl" pour l'installer) :
mssql@vmsqwarebox:/applis/mssql () $ cd /applis/mssql/freetds-1.3.6 mssql@vmsqwarebox:/applis/mssql/freetds-1.2.13 () $ ./configure --prefix=/applis/mssql/freetds --with-openssl=/usr/lib64/openssl/engines checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes ... mssql@vmsqwarebox:/applis/mssql/freetds-1.3.6 () $ make Making all in include make[1]: Entering directory `/applis/mssql/freetds-1.3.6/include' make all-recursive make[2]: Entering directory `/applis/mssql/freetds-1.3.6/include' Making all in freetds make[3]: Entering directory `/applis/mssql/freetds-1.3.6/include/freetds' ... mssql@vmsqwarebox:/applis/mssql/freetds-1.3.6 () $ make install Making install in include make[1]: Entering directory `/applis/mssql/freetds-1.3.6/include' Making install in freetds make[2]: Entering directory `/applis/mssql/freetds-1.3.6/include/freetds' ...
Ménage :
$ rm -rf /applis/mssql/freetds-1.3.6 $ rm -f /tmp/freetds-1.3.6.tar.gz
Lien lib 64bits :
$ cd /applis/mssql/freetds $ ln -s lib lib64 $ ls -l |grep lib drwxr-xr-x 2 mssql dba 4096 Nov 23 09:38 lib lrwxrwxrwx 1 mssql dba 3 Nov 23 09:41 lib64 -> lib
Lien vers le freetds.conf ggénéré automatiquement :
cd /applis/mssql/freetds/etc mv freetds.conf freetds.conf.org ln -s /home/dbsqware/dbSQWare/SQWareCentral/etc_cust/freetds_dbsqware.conf freetds.conf