Tiny_TDS 0.5.1.rc1 with FreeTDS 0.91 - Gem failed to be compiled

54 views
Skip to first unread message

Omer Abramovici

unread,
May 16, 2013, 7:07:17 AM5/16/13
to rails-sqlse...@googlegroups.com
Hi All,

I upgraded freeTDS to 0.91 in order to have Domain authentication support, due to 'Arguments' errors with freeTDS 0.91+tiny_TDS 0.5.1 it was advised to upgrade to tiny_TDS 0.5.1.rc1.

so after the upgrade to freeTDS 0.91, I tried "gem install tiny_tds -v '0.5.1.rc1' " , but got:

looking for library directory /usr/local/share/compliance/.rbenv/versions/1.9.3-p374/lib ... yes
checking for main() in -liconv... no
looking for library directory /usr/local/share/compliance/.rbenv/versions/1.9.3-p374/lib/freetds ... no
looking for library directory /usr/local/share/compliance/.rbenv/lib ... no
looking for library directory /usr/local/share/compliance/.rbenv/lib/freetds ... no
looking for library directory /usr/local/lib ... yes
checking for main() in -liconv... no
looking for library directory /usr/local/lib/freetds ... no
looking for library directory /usr/lib ... yes
checking for main() in -liconv... no
-----
Can not find FreeTDS's db-lib or include directory.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/local/share/compliance/.rbenv/versions/1.9.3-p374/bin/ruby
        --with-iconv-dir
        --without-iconv-dir
        --with-iconv-include
        --without-iconv-include=${iconv-dir}/include
        --with-iconv-lib
        --without-iconv-lib=${iconv-dir}/lib
        --with-freetds-dir
        --without-freetds-dir
        --with-freetds-include=${freetds-dir}/include
        --with-freetds-lib=${freetds-dir}/lib
        --enable-lookup
        --disable-lookup
        --with-iconvlib
        --without-iconvlib
        --with-iconvlib
        --without-iconvlib
        --with-iconvlib
        --without-iconvlib
looking for library directory /usr/lib/freetds ... no
looking for library directory /root/lib ... no
looking for library directory /root/lib/freetds ... no


---------------------------------------------------------------------------------------------------------------------------

than i tried :
gem install tiny_tds -v '0.5.1.rc1' -- --with-freetds-include=/usr/local/include/freetds --with-freetds-lib=/usr/local/lib64

but got the same result ...

note that it doesn't happen for "gem install tiny_tds -v '0.5.1' " probably because there is no check in the extconf.rb for iconv.

tsql -C output is:
[root@centosTest compliance]# tsql -C
Compile-time settings (established with the "configure" script)
                            Version: freetds v0.91
             freetds.conf directory: /etc
     MS db-lib source compatibility: yes
        Sybase binary compatibility: yes
                      Thread safety: yes
                      iconv library: yes
                        TDS version: 4.2
                              iODBC: no
                           unixodbc: yes
              SSPI "trusted" logins: no
                           Kerberos: yes

If i check where is the include folder of freeTDS and freeTDS-devel is i get:
***FreeTDS***
/etc/freetds.conf
/etc/locales.conf
/etc/pool.conf
/usr/bin/bsqldb
/usr/bin/bsqlodbc
/usr/bin/datacopy
/usr/bin/defncopy
/usr/bin/fisql
/usr/bin/freebcp
/usr/bin/osql
/usr/bin/tdspool
/usr/bin/tsql
/usr/lib64/libct.so.4
/usr/lib64/libct.so.4.0.0
/usr/lib64/libsybdb.so.5
/usr/lib64/libsybdb.so.5.0.0
/usr/lib64/libtdsodbc.so.0
/usr/lib64/libtdsodbc.so.0.0.0

***FreeTDS-DEVEL***
/usr/include/bkpublic.h
/usr/include/cspublic.h
/usr/include/cstypes.h
/usr/include/ctpublic.h
/usr/include/odbcss.h
/usr/include/sqldb.h
/usr/include/sqlfront.h
/usr/include/sybdb.h
/usr/include/syberror.h
/usr/include/sybfront.h
/usr/include/tds_sysdep_public.h
/usr/include/tds_sysdep_public_64.h
/usr/lib64/libct.so
/usr/lib64/libsybdb.so
/usr/lib64/libtdsodbc.so


what am I missing ?

Thanks,
Omer


Reply all
Reply to author
Forward
0 new messages