Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id BF889633283 for ; Tue, 27 Jul 2010 05:06:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 99605-04 for ; Tue, 27 Jul 2010 08:06:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [202.4.227.11]) by mail.postgresql.org (Postfix) with ESMTP id 9752F633145 for ; Tue, 27 Jul 2010 05:06:50 -0300 (ADT) Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by www.postnewspapers.com.au (Postfix) with ESMTP id 40D7B9F7F; Tue, 27 Jul 2010 16:06:45 +0800 (WST) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 8E4C9AE6F6; Tue, 27 Jul 2010 16:06:36 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IaQpP2W0iqt6; Tue, 27 Jul 2010 16:06:31 +0800 (WST) Received: from [10.1.1.6] (124-168-255-56.dyn.iinet.net.au [124.168.255.56]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id 3702FAE6FD; Tue, 27 Jul 2010 16:06:31 +0800 (WST) Message-ID: <4C4E9391.3040406@postnewspapers.com.au> Date: Tue, 27 Jul 2010 16:06:41 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: Ravi Katkar CC: "'pgsql-odbc@postgresql.org'" Subject: Re: ODBC and configure References: <46AC8D44F3AE1F4888F137837D0DF63508853EE010@INHYWEXMB2.infor.com> In-Reply-To: <46AC8D44F3AE1F4888F137837D0DF63508853EE010@INHYWEXMB2.infor.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/28 X-Sequence-Number: 10371 On 27/07/10 14:48, Ravi Katkar wrote: > 1. Downloaded the "odbctest.c" file from website and copied into unix machine > 2. Compile and run the file > Problem: > While running odbctest testPSQL earlier it was working fine, but now everytime its giving the below error: > odbctest: cannot connect to X server This isn't a PostgreSQL problem. Your 'odbctest.c' (where *did* you get that, anyway? What URL?) appears to be using a GUI toolkit that requires an X11 graphical environment. That's what "cannot connect to X server" refers to ; it's nothing to do with the PostgreSQL server. If you have an X11 server running on your local machine, connect to the machine odbctest is on using "ssh -X" to enable ssh X11 forwarding. Then odbctest should run over the SSH X11 tunnel. Otherwise, compile odbctest without any GUI requirements. Without some idea of where you got "odbctest.c" and what it is, I can't really help you with that. -- Craig Ringer