Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: duane on April 21, 2015, 01:45:49 PM

Title: libiodbc.tcz
Post by: duane on April 21, 2015, 01:45:49 PM
I don't see libiodbc.tcz as an available install with TC 4 or 5.  I need to connect to an MSSQL db.   Any suggestions?
Title: Re: libiodbc.tcz
Post by: gerald_clark on April 21, 2015, 02:00:17 PM
Perhaps you could use ODBC.
Title: Re: libiodbc.tcz
Post by: duane on April 23, 2015, 09:07:43 AM
Not sure what you mean "perhaps you could use ODBC"

I'm using SQLAPI lib and it depends on libiodbc (or similar) to connect to an MSSQL database server using ODBC.
I've found source for libiodbc and built it on TC5 and installed it.  We're testing it now.

This library was previously available and I was wondering if there were plans to add it back.
Title: Re: libiodbc.tcz
Post by: Juanito on April 23, 2015, 09:28:21 AM
libiodbc is available in the tc-4.x repo - if it works with tc-5.x/tc-6.x it can be copied into those repos.

..or alternately you could submit the libiodbc you just compiled as an extension?
Title: Re: libiodbc.tcz
Post by: duane on April 23, 2015, 09:34:33 AM
Thanks.  I will test the one that I've built and if it works I can submit it.  I will also try the one from the TC4 repo.
Title: Re: libiodbc.tcz
Post by: duane on May 06, 2015, 09:10:37 AM
I have used the libiodbc.tcz from TC4 in TC5 and it seems ok.
Title: Re: libiodbc.tcz
Post by: Juanito on May 06, 2015, 09:25:05 AM
libiodbc from tc-4.x depends on libpng12, which is outdated - it can be copied to the tc-5.x/6.x repos, but it would be preferable to use the one that you built, which hopefully depends on libpng16?
Title: Re: libiodbc.tcz
Post by: duane on May 06, 2015, 09:34:49 AM
I was not able to get that one to work.  There was some issue with glibc.  I didn't have time to look at that but will revisit it when I do.

But are you sure about the libpng12?  I don't think that's installed on my controller.  I see a dependency on GTK2 that I assume is for the ui configuration tool that comes with this.  But I only see libpng16 on my controller.

Title: Re: libiodbc.tcz
Post by: Juanito on May 06, 2015, 09:46:31 AM
Code: [Select]
$ ldd /tmp/image/usr/local/lib/libdrvproxy.so | grep libpng12
        libpng12.so.0 => not found
$ ldd /tmp/image/usr/local/lib/libiodbcadm.so | grep libpng12
        libpng12.so.0 => not found

libiodbc copied to the 5.x/6.x repos, but please update if you can.
Title: Re: libiodbc.tcz
Post by: duane on May 06, 2015, 09:53:44 AM
Ok, Thanks for the follow up.