Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1afpaF-00027T-VZ for pgsql-odbc@arkaria.postgresql.org; Tue, 15 Mar 2016 14:04:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1afpaF-000273-EB for pgsql-odbc@arkaria.postgresql.org; Tue, 15 Mar 2016 14:04:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1afpaE-00026k-Q6 for pgsql-odbc@postgresql.org; Tue, 15 Mar 2016 14:04:27 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1afpa6-0003UK-GR for pgsql-odbc@postgresql.org; Tue, 15 Mar 2016 14:04:25 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id CB790207F4 for ; Tue, 15 Mar 2016 10:04:17 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Tue, 15 Mar 2016 10:04:17 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=I1xTyTtU4s/LD/7k1Uh7RucxpLk=; b=da2C74 SLxaPHHsaYtn7Y/Ra6XruXs0eMWbkimrsmvXTi9HGCLBgfWpdjw77jvtAfXO8q+1 +Fhav9dztxKbqLVxPAli9Ap7Fn/eyZzn7ovbVZtyNaOUIPsK5Sg5afnI7lCX74dE esH93KsWvyyI+tPJe6eyOKSEHJEJf5i/II0E0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=I1xTyTtU4s/LD/7 k1Uh7RucxpLk=; b=NAPOX5ACoy+kvuFj8FS6dQGVMzjAEm1ORIrqMmA8JENVESS 2GeSDoeY329dukxQz5I75+KvvyAkrJCl34dE7xhMGfq9loliMGDgJ14aWSwNDB4Z QcFitRGoxw+NkLzkvREqxyJwgen7nNIrnoFLk6O3KwlI6ZaSbI4zX/XvnVfQ= X-Sasl-enc: opVgkkb3E4UUzwn5nB5ik+bFVyy6AOT5WkCi90yE6Wok 1458050656 Received: from [192.168.1.2] (174-24-160-10.tukw.qwest.net [174.24.160.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 7B47EC00018; Tue, 15 Mar 2016 10:04:16 -0400 (EDT) Subject: Re: Problems installing Postgresql ODBC driver 32bits on Redhat 6.5 To: Laerte Antonio de Almeida Giraldelli , pgsql-odbc@postgresql.org References: <56E74456.3050806@aklaver.com> From: Adrian Klaver Message-ID: <56E8160B.3060901@aklaver.com> Date: Tue, 15 Mar 2016 07:02:51 -0700 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 03/15/2016 05:52 AM, Laerte Antonio de Almeida Giraldelli wrote: > Thanks Adrian, > > Here are the answers: > > - odbcinst.ini content: The below shows where it is located(/etc/odbcinst.ini), not what is in it. > > odbcinst -j > > unixODBC 2.2.14 > DRIVERS............: /etc/odbcinst.ini > SYSTEM DATA SOURCES: /etc/odbc.ini > FILE DATA SOURCES..: /etc/ODBCDataSources > USER DATA SOURCES..: /home/apvmh79/.odbc.ini > SQLULEN Size.......: 4 > SQLLEN Size........: 4 > SQLSETPOSIROW Size.: 2 > > - I have downloaded the odbc packages from: > > http://rpm.pbone.net/ > > unixODBC-2.2.14-12.el6_3.i686.rpm > postgresql-odbc-7.2.5-1.i386.rpm Any particular reason you are not using the RH repos? > > - When I copied content file /etc/odbc.ini to /home/apvmh79/.odbc.ini > > The error changed from: > [IM002][unixODBC]Missing server name, port, or database name in call to > CC_connect. > > To: > [28000][unixODBC]FATAL: no PostgreSQL user name specified in startup packet And there is a UserName in /home/apvmh79/.odbc.ini? > > The postgre server is 9.4 version. > > > > Att. > ------------------------------------------- > Laerte Antonio de A. Giraldelli > Gerência de Implantação > CPqD - Diretoria de Suporte à Decisão e Aplicações > Fone: +55 19 3705-7215 > laerteg@cpqd.com.br > www.cpqd.com.br > > "/When you make your mark in the world, watch out for guys with > erasers./" The Wall Street Journal. > > 2016-03-14 20:08 GMT-03:00 Adrian Klaver >: > > On 03/14/2016 11:49 AM, Laerte Antonio de Almeida Giraldelli wrote: > > Hello, please > > We are trying to do a postgre isql conexion . We tried to install > several RPM packages for postgresql-odbc 32bits, but we can't make a > test using isql. > > We have the environment below: > > SO:Redhat 6.5 > unixODBC-2.2.14-12.el6_3.i686 (installed) > When the pkg postgresql-odbc-7.0.2-17.i386.rpm was installed, It > returned this error: > > isql -v rep_teste > > [01000][unixODBC][Driver Manager]Can't open lib > '/usr/lib/psqlodbc.so' : > file not found > [ISQL]ERROR: Could not SQLConnect > > > Did you check if the file existed at the above location or anywhere? > > > When the pkg postgresql-odbc-7.2.5-1.i386.rpm was installed, the lib > above was installed, but we got the error: > > > Where was it installed? > > > isql -v rep_teste > > [IM002][unixODBC]Missing server name, port, or database name in > call to > CC_connect. > [ISQL]ERROR: Could not SQLConnect > > We guess the /etc/odbc.ini is correct: > > [rep_teste] > Description = PostgreSQL connection to SallyDB > Driver = PostgreSQL > Database = rep_teswte > Servername = vmhteste > UserName = teste > Password = 123456 > Port = 5432 > Protocol = 9.4 > ReadOnly = No > RowVersioning = No > ShowSystemTables = No > ConnSettings = > > We think there are a postgresql-odbc package mistake but we > can't find > the correct package. > > > What is in the odbcinst.ini file? > > What are repo(s) are you using to get the unixODBC and > postgresql-odbc packages? > > > We'll apprecciate any help. Thank !!. > > Att. > Laerte Antonio. > -------------------------------------------- > "/When you make your mark in the world, watch out for guys with > erasers./" The Wall Street Journal. > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc