Re: problem running np-distd

Le Dang Khoa <kenji_le-/[email protected]> Thu, 12 May 2005 01:04:59 -0700 (PDT)
Newsgroups gmane.network.net-policy.user
Message-ID <[email protected]>
--0-1693823283-1115885099=:81576
Content-Type: text/plain; charset=us-ascii

Hello, when I installed UnixODBC, libodbcpsql.so and libodbcpsqlS.so files were installed into /usr/local/lib directory. So I added to the /etc/odbcinst.ini file:
 
  [NetPolicyPg]
  Description     = Net-Policy ODBC connection to postgresql
  Driver  = /usr/local/lib/libodbcpsql.so
  Setup   = /usr/local/lib/libodbcpsqlS.so
  FileUsage       = 1
  ReadOnly        = No
  # END Net-Policy
 
And also modified [PostgresSQL]
 
[PostgreSQL]
 Description     = ODBC for PostgreSQL
 Driver          = /usr/local/lib/libodbcpsql.so
 Setup           = /usr/local/lib/libodbcpsqlS.so
 FileUsage       = 1
 
I also found the libodbcpsql.so and libodbcpsqlS.so files in /usr/lib. So I don't know why np-distd can not find odbc driver.
Hope to receive your reply soon!

Best regards,
Kenji Le


Wes Hardaker <[email protected]> wrote:
>>>>> On Wed, 11 May 2005 13:34:29 -0700 (PDT), Le Dang Khoa said:

Le> [root@localhost root]# np-distd -u postgres -p pass

Le> np-odbc: Error: createTheDataSource: Unable to find odbc driver, ''.

Le> np-odbc: : It should be configured according to install instructions.

Le> np-distd: Error: init_dbs: Unable to find/create DSN for ODBC Database access

Le> np-distd: ERROR: unable to initilize DB's

Does your /etc/odbcinst.ini file have something like this in it?

# BEGIN Net-Policy
[NetPolicyPg]
Description = Net-Policy ODBC connection to postgresql
Driver = /usr/lib/libodbcpsql.so
Setup = /usr/lib/libodbcpsqlS.so
FileUsage = 1
ReadOnly = No
# END Net-Policy


-- 
Wes Hardaker
Sparta, Inc.


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Net-policy-users mailing list
Net-policy-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/net-policy-users

		
---------------------------------
Discover Yahoo!
 Stay in touch with email, IM, photo sharing & more. Check it out!
--0-1693823283-1115885099=:81576
Content-Type: text/html; charset=us-ascii

<DIV>Hello, when I installed UnixODBC, libodbcpsql.so and libodbcpsqlS.so files were installed into /usr/local/lib directory. So I added to the /etc/odbcinst.ini file:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp; [NetPolicyPg]<BR>&nbsp; Description&nbsp;&nbsp;&nbsp;&nbsp; = Net-Policy ODBC connection to postgresql<BR>&nbsp; Driver&nbsp; = /usr/local/lib/libodbcpsql.so<BR>&nbsp; Setup&nbsp;&nbsp; = /usr/local/lib/libodbcpsqlS.so<BR>&nbsp; FileUsage&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 1<BR>&nbsp; ReadOnly&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = No<BR>&nbsp; # END Net-Policy</DIV>
<DIV>&nbsp;</DIV>
<DIV>And also modified [PostgresSQL]</DIV>
<DIV>&nbsp;</DIV>
<DIV>[PostgreSQL]<BR>&nbsp;Description&nbsp;&nbsp;&nbsp;&nbsp; = ODBC for PostgreSQL<BR>&nbsp;Driver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = /usr/local/lib/libodbcpsql.so<BR>&nbsp;Setup&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = /usr/local/lib/libodbcpsqlS.so<BR>&nbsp;FileUsage&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 1</DIV>
<DIV>&nbsp;</DIV>
<DIV>I also found the libodbcpsql.so and libodbcpsqlS.so files in /usr/lib. So I don't know why np-distd can not find odbc driver.<BR>Hope to receive your reply soon!</DIV>
<DIV><BR>Best regards,<BR>Kenji Le<BR><BR><BR><B><I>Wes Hardaker &lt;[email protected]&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">&gt;&gt;&gt;&gt;&gt; On Wed, 11 May 2005 13:34:29 -0700 (PDT), Le Dang Khoa <[email protected]>said:<BR><BR>Le&gt; [root@localhost root]# np-distd -u postgres -p pass<BR><BR>Le&gt; np-odbc: Error: createTheDataSource: Unable to find odbc driver, ''.<BR><BR>Le&gt; np-odbc: : It should be configured according to install instructions.<BR><BR>Le&gt; np-distd: Error: init_dbs: Unable to find/create DSN for ODBC Database access<BR><BR>Le&gt; np-distd: ERROR: unable to initilize DB's<BR><BR>Does your /etc/odbcinst.ini file have something like this in it?<BR><BR># BEGIN Net-Policy<BR>[NetPolicyPg]<BR>Description = Net-Policy ODBC connection to postgresql<BR>Driver = /usr/lib/libodbcpsql.so<BR>Setup = /usr/lib/libodbcpsqlS.so<BR>FileUsage = 1<BR>ReadOnly = No<BR># END Net-Policy<BR><BR><BR>-- <BR
 >Wes Hardaker<BR>Sparta,
 Inc.<BR><BR><BR>-------------------------------------------------------<BR>This SF.Net email is sponsored by Oracle Space Sweepstakes<BR>Want to be the first software developer in space?<BR>Enter now for the Oracle Space Sweepstakes!<BR>http://ads.osdn.com/?ad_id=7393&amp;alloc_id=16281&amp;op=click<BR>_______________________________________________<BR>Net-policy-users mailing list<BR>Net-policy-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org<BR>https://lists.sourceforge.net/lists/listinfo/net-policy-users<BR></BLOCKQUOTE><p>
		<hr size=1>Discover Yahoo!<br> 
Stay in touch with email, IM, photo sharing & more. <a href="http://us.rd.yahoo.com/evt=32659/*http://discover.yahoo.com/stayintouch.html">Check it out!</a>
--0-1693823283-1115885099=:81576--


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click