Overview
Features
Download
Documentation
Community
Add-Ons & Services

Building Data with CentOS 6.4 x64

Please post support and help requests here.

Building Data with CentOS 6.4 x64

Postby shane2 » 14 May 2013, 17:43

Hello,

I am trying to build Poco, and everything else builds fine, except the ODBC portion. I have the unixODBC and devel packages installed (using yum), but for some reason the build system cannot find the libs. I checked and they are in the lib64 folder.

There was a mention in the docs to edit the makefile if not found. I am still a n00b with using make. What do I need to edit in the makefile in order for it to build correctly?

Thanks for the help in advance!!

Regards,
Shane
shane2
 
Posts: 7
Joined: 08 Mar 2012, 15:01

Re: Building Data with CentOS 6.4 x64

Postby alex » 15 May 2013, 02:23

Code: Select all
$POCO_BASE/configure --odbc-lib=/path/to/odbc/lib --odbc-include=/path/to/odbc/include


EDIT: above is for 1.5.x, if you are using earlier version, try
Code: Select all
$POCO_BASE/configure --library-path=/path/to/odbc/lib --include-path=/path/to/odbc/include
alex
 
Posts: 1145
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Building Data with CentOS 6.4 x64

Postby shane2 » 15 May 2013, 14:51

Another n00b question...what file do I add that in? The "Makefile" in the Data folder?
shane2
 
Posts: 7
Joined: 08 Mar 2012, 15:01

Re: Building Data with CentOS 6.4 x64

Postby alex » 15 May 2013, 16:08

you run that from command line, eg:

Code: Select all
#cd /dir/where/poco/is
#export POCO_BASE=`pwd`
#./configure --odbc-lib=/path/to/odbc/lib --odbc-include=/path/to/odbc/include


For a n00b, a good place to start is Getting Started With The POCO C++ Libraries.
alex
 
Posts: 1145
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Building Data with CentOS 6.4 x64

Postby shane2 » 16 May 2013, 16:22

Thanks for the suggestion, but that didn't work. Still getting this compile error:

make[1]: Entering directory `/home/shane/Downloads/poco-1.4.6p1-all/Data/ODBC'
ODBC.make:49: *** No ODBC library found. Please install unixODBC or iODBC or specify ODBCLIBDIR and try again. Stop.
make[1]: Leaving directory `/home/shane/Downloads/poco-1.4.6p1-all/Data/ODBC'
make: *** [Data/ODBC-libexec] Error 2

I did verify that I have both the unixODBC and unixODBC-devel packages installed, but still no luck.

I did read through the getting started docs, but that didn't offer much for getting past this.
shane2
 
Posts: 7
Joined: 08 Mar 2012, 15:01


Return to Support

Who is online

Users browsing this forum: No registered users and 4 guests

cron