Обсуждение: odbc for unix
Good morning. Please If you could answer this question. I would be so gratefull.
I want to use heterogeneous service from Oracle to integrate Oracle – Postgres.
And to use this, I need and ODBC driver installed in my unix server (AIX 7.1).
I downloaded this one psqlodbc-09.03.0300.tar.gz from your web page, from the route SRC.
And i’m applying this document:
Compiling psqlODBC on Unix
Following psqlODBC's move away from the main PostgreSQL source tree, Peter Eisentraut was kind enough provide a build environment for us which is now included in psqlODBC tarballs.
Installation
To install, just try something like:
% tar -zxvf psqlodbc-xx.xx.xxxx.tar.gz
% cd psqlodbc-xx.xx.xxxx
% ./configure
% make
% make install
But I get this error post apply ./configure
ZEUS:/opt/odbc/psqlodbc-09.03.0300>#./configure
checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/opt/odbc/psqlodbc-09.03.0300':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
My server is UNIX – AIX 7.1 and Im executing this one like ROOT.
Please could you help me with this? Thanks a lot!!!
On 07/15/2014 08:58 AM, Lizeth Solís wrote: > Good morning. Please If you could answer this question. I would be so > gratefull. > > I want to use heterogeneous service from Oracle to integrate Oracle – > Postgres. > > And to use this, I need and ODBC driver installed in my unix server (AIX > 7.1). > > I downloaded this one psqlodbc-09.03.0300.tar.gz from your web page, > from the route SRC. > > And i’m applying this document: > > *Compiling psqlODBC on Unix* > > Following psqlODBC's move away from the main PostgreSQL source tree, > Peter Eisentraut was kind enough provide a build environment for us > which is now included in psqlODBC tarballs. > > *Installation* > > To install, just try something like: > > % tar -zxvf psqlodbc-xx.xx.xxxx.tar.gz > > % cd psqlodbc-xx.xx.xxxx > > % ./configure > > % make > > % make install > > But I get this error post apply ./configure > > ZEUS:/opt/odbc/psqlodbc-09.03.0300>#./configure > > checking for a BSD-compatible install... config/install-sh -c > > checking whether build environment is sane... yes > > checking for a thread-safe mkdir -p... config/install-sh -c -d > > checking for gawk... no > > checking for mawk... no > > checking for nawk... nawk > > checking whether make sets $(MAKE)... yes > > checking whether to enable maintainer-specific portions of Makefiles... no > > checking for gcc... no The above is the problem. > checking for cc... no > > checking for cl.exe... no > > configure: error: in `/opt/odbc/psqlodbc-09.03.0300': > > configure: error: no acceptable C compiler found in $PATH Reiterated above. > > See `config.log' for more details Might want to look in above for more information. > > My server is UNIX – AIX 7.1 and Im executing this one like ROOT. > > Please could you help me with this? Thanks a lot!!! If you are going to compile from source you will need to have development tools installed, Not sure how you do that on AIX, but for now at least install gcc or its equivalent. > > -- Adrian Klaver adrian.klaver@aklaver.com
On 07/15/2014 11:58 PM, Lizeth Solís wrote: > See `config.log' for more details ^^^^^^^^^^^^^^^^ ? At a guess there's no compiler present, or it's not supported by psqlODBC. Since you're on a traditional UNIX you probably have the vendor's compiler (often outdated and broken), a preview edition of that compiler that just demands a license code when run, or no compiler at all. It's common to just use gcc to compile things on vendor UNIXes, so that may be an option. However, it can introduce problems if the ODBC driver manager and applications aren't also built with gcc. So if possible, first try to determine what they were built with and use the same compiler. To be more specific it'd be necessary to see your config.log, and probably know a lot more about AIX. (Please don't attach your config.log to a mail to the mailing list. If you want you can send it to a pastebin site or something instead, then link to it in a post.) -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services