Hey Samy;

re. could not find odbc.ini

This is reported by the ODBCConfig when it can not find the odbc.ini but 
it is usually looking for the User one (the one in your home dir) - so 
it goes on to create it and you should not get this message anymore. If 
you continue to get the message then it is more serious... perhaps you 
should verify the location of the system odbc.ini and odbcinst.ini (use 
find as root).

re. unable to find component name

This is probably because you have not specified the correct libraries 
for MyODBC support. The library names, for MyODBC (on my system) are;

- /usr/local/lib/libmyodbc-2.50.39.so   (driver)
- /usr/local/lib/libodbcmyS.so          (setup lib used by ODBCConfig)

You can register Drivers and Data Source Names using (in prefered order);

- ODBCConfig or gODBCConfig (graphical)
- odbcinst (command-line)
- text editor

You want to avoid the text editor because only the other two methods are 
  sure to modify the correct files besides - they help by prompting and 
validating etc.

The unixODBC documentation talks about all of this stuff.

Peter

BTW: Sounds like you have installed the source and the RPM binaries - 
you may have multiple copies of this stuff on your machine because, by 
default, source installs will usually drop stuff in /usr/local while 
binary RPM installs often drop stuff in /usr.



Samy Elashmawy wrote:

> Hi folks,
> 
> Having MyODBC Woes, and just cant get it working with
> unixODBC (odbc datasource manager). So far I have
> tried building it using the
> ./configure --with-unix)DBC=/usr/local
> --with-mysql-sources=/usr/loacal/mysql
> 
> I have aslo installed the rpms as well and can they do
> not work. Have used both the configure/make/install
> and bibary rpms for unixODBC as well. no go. Docs
> allude that you need a data source manager ie unixODBC
> and www.unixodbc.org/unixODBCsetup.html  under
> installing driver ststes you must compile the MyODBC
> driver and use the two flags/coinfigure flags
> otherwise it wont work.
> 
> when I start unixODBC ODBCConfig i get two errors 
> 
> 1/ could not find odbc.ini 
> 
> 2/ unable to find component name
> 
> both as root and normal user. It will not write/create
> a new odbc.ini file as well.
> 
> Which driver am I suposed to use ? *.so files right ?
> 
> which Setup file and what is there file extension ?
> are these the *.la files or what ?
> 
> Can you set it up with out the odbc manager ? 
> Any one have a sample file , ar som sample values that
> work. 
> 
> I am running a suse 7.2 box mysql , myodbc , applix
> and star office and realy want to get them to use  the
> mysql server.
> 
> thanks
> 
> Samy
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Great stuff seeking new owners in Yahoo! Auctions! 
> http://auctions.yahoo.com
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 
> 
> 
> 



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to