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> </DIV> <DIV> [NetPolicyPg]<BR> Description = Net-Policy ODBC connection to postgresql<BR> Driver = /usr/local/lib/libodbcpsql.so<BR> Setup = /usr/local/lib/libodbcpsqlS.so<BR> FileUsage = 1<BR> ReadOnly = No<BR> # END Net-Policy</DIV> <DIV> </DIV> <DIV>And also modified [PostgresSQL]</DIV> <DIV> </DIV> <DIV>[PostgreSQL]<BR> Description = ODBC for PostgreSQL<BR> Driver = /usr/local/lib/libodbcpsql.so<BR> Setup = /usr/local/lib/libodbcpsqlS.so<BR> FileUsage = 1</DIV> <DIV> </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 <[email protected]></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">>>>>> On Wed, 11 May 2005 13:34:29 -0700 (PDT), Le Dang Khoa <[email protected]>said:<BR><BR>Le> [root@localhost root]# np-distd -u postgres -p pass<BR><BR>Le> np-odbc: Error: createTheDataSource: Unable to find odbc driver, ''.<BR><BR>Le> np-odbc: : It should be configured according to install instructions.<BR><BR>Le> np-distd: Error: init_dbs: Unable to find/create DSN for ODBC Database access<BR><BR>Le> 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&alloc_id=16281&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