LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   postfix cannot find existing mysql directory (https://www.linuxquestions.org/questions/linux-server-73/postfix-cannot-find-existing-mysql-directory-701578/)

anarxi 02-02-2009 02:54 AM

postfix cannot find existing mysql directory
 
ok, I dont' get it at all:

i make files for postfix:

Code:

make makefiles CCARGS="-DHAS_MYSQL -I/usr/mysql/include/mysql \
AUXLIBS="-L/usr/mysql/lib/mysql -lmysqlclient

and then, make:

Code:

gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/mysql/include/mysql AUXLIBS=-L/usr/mysql/lib/mysql -g -O -I. -DLINUX2 -c argv.c
gcc: AUXLIBS=-L/usr/mysql/lib/mysql: No such file or directory
make: *** [argv.o] Error 1
make: *** [update] Error 1


now directories are there:

Code:

ls /usr/lib/mysql
libdbug.a    libmyisammrg.a    libmysqlclient.so        libmysqlclient_r.a  libmysqlclient_r.so.16      libmysys.a
libheap.a    libmysqlclient.a  libmysqlclient.so.16      libmysqlclient_r.la  libmysqlclient_r.so.16.0.0  libvio.a
libmyisam.a  libmysqlclient.la  libmysqlclient.so.16.0.0  libmysqlclient_r.so  libmystrings.a           

ls /usr/include/mysql
decimal.h  m_string.h      my_dbug.h    my_list.h        my_sys.h    mysql_embed.h    mysqld_error.h  sslopt-case.h
errmsg.h    my_alloc.h      my_dir.h    my_net.h        my_xml.h    mysql_time.h    plugin.h        sslopt-longopts.h
keycache.h  my_attribute.h  my_getopt.h  my_no_pthread.h  mysql.h      mysql_version.h  sql_common.h    sslopt-vars.h
m_ctype.h  my_config.h    my_global.h  my_pthread.h    mysql_com.h  mysqld_ername.h  sql_state.h    typelib.h


acid_kewpie 02-02-2009 03:06 AM

As i read that it looks like it's taking the WHOLE string as a path, not the actual path you want. in your code there are unmatched "'s which might be screwing things up, but don't seem to necessarily account for the exact error you posted.

anarxi 02-02-2009 06:08 AM

reinstaled mysql 5.0xx (was 5.1) everything works fine. might be an issue with libmysqlclient.so, with mysql 5.1 comes .so16 which gave me a lot of trouble. with older version and .so15 everything seems to be fine


All times are GMT -5. The time now is 09:34 PM.