[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Still Need HelpRe: [cobalt-users] mysql.h



> thanks to Jens I am further down the route of this one however,
> I have installed mysql via the pkg on the cobalt site.
> Subsequent to this I am trying to install a program that requires the
> mysql.h header file (cheers Jens). This is apparently not installed
> by the cobalt package and is part of the developer_src.
> src/sql.c:3208: undefined reference to `PQclear
(can't find mysql.h)
> the application I am trying to install is
> udmsearch-3.0.23
> any ideas?

Yep.

    On the Raq3 it did everything fine however I did not do the make
install.

    On the Raq2 I had the same thing.  it couldn't find mysql.h.  mysql.h is
located in at /usr/include/mysql/  In the udmsearch dir is a file called
configure.in.   Edit it and on line 285 update the lib directory to
/usr/lib/mysql/lib
In the file look for....

Which one DBMS do you want to use (please select only one):
  --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
                          install directory, default is to search through
                          a number of common places for the MySQL files.],
[
  if test "$withval" != "no"; then
        if test "$withval" = "yes"; then
                if test -f /usr/local/mysql/include/mysql/mysql.h; then
                        MYSQL_INCDIR=/usr/local/mysql/include/mysql
                        MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
                elif test -f /usr/include/mysql/mysql.h; then
                        MYSQL_INCDIR=/usr/include/mysql
                        MYSQL_LIBDIR=/usr/lib/mysql
Change the last line to
MYSQL_LIBDIR=/usr/lib/mysql/lib

This will get you by the error but it still didn't compile for me :( (on the
Raq2)

So I downloaded the current version from
http://search.mnogo.ru/Download/mnogosearch-3.1.8.tar.gz

and it compiled without a problem.  Again I did not do the make install.
In checking the configure.in on line 328 I noticed it still have the wrong
location of the libs so I changed it again only to find that it won't
compile :( fun fun fun...

So the answer to all this?  Get the latest version and you shouldn't have a
problem.

Zeffie