Summary: | ASTERISK-09803: configure failed using --with-mysqlclient=/usr/local/mysql | ||
Reporter: | Jin Ke Jiang (jjk) | Labels: | |
Date Opened: | 2007-07-05 01:20:55 | Date Closed: | 2011-06-07 14:02:51 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Addons/res_config_mysql |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | configure failed using asterisk-addons-1.4.2 with mysql-standard-4.1.18-pc-linux-gnu-i686 or mysql-5.0.41-linux-i686 ****** ADDITIONAL INFORMATION ****** also tried use ./configure only the system already has a mysql installed [asterisk@ngsw-dev3 ~]$ mysql_config Usage: /usr/lib/mysql/mysql_config [OPTIONS] Options: --cflags [-I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing] --include [-I/usr/include/mysql] --libs [-L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -lssl -lcrypto] --libs_r [-L/usr/lib/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -L/usr/lib -lssl -lcrypto] --socket [/var/lib/mysql/mysql.sock] --port [3306] --version [4.1.20] --libmysqld-libs [-L/usr/lib/mysql -lmysqld -lz -lpthread -lcrypt -lnsl -lm -lpthread -lrt] [asterisk@ngsw-dev3 ~]$ /usr/local/mysql/bin/mysql_config Usage: /usr/local/mysql/bin/mysql_config [OPTIONS] Options: --cflags [-I/usr/local/mysql/include -mcpu=pentiumpro] --include [-I/usr/local/mysql/include] --libs [-L/usr/local/lib -L/usr/local/mysql/lib -lmysqlclient -lz -lcrypt -lnsl -lm -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv] --libs_r [-L/usr/local/lib -L/usr/local/mysql/lib -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv] --socket [/tmp/mysql.sock] --port [3306] --version [4.1.18] --libmysqld-libs [-L/usr/local/lib -L/usr/local/mysql/lib -lmysqld -lz -lpthread -lcrypt -lnsl -lm -lpthread -lc -lnss_files -lnss_dns -lresolv -lc -lnss_files -lnss_dns -lresolv -lrt] System info: cat /etc/redhat-release CentOS release 4.5 (Final) uname -a Linux ngsw-dev3 2.6.9-55.EL #1 Wed May 2 13:52:16 EDT 2007 i686 i686 i386 GNU/Linux [root@ngsw-dev3 asterisk-addons-1.4.2]# ls /usr/src asterisk-1.2.12.1 asterisk-addons-1.4.2 kernels zaptel-1.4.3 asterisk-1.4.6 asterisk-addons redhat [root@ngsw-dev3 asterisk-addons-1.4.2]# pwd /usr/src/asterisk-addons-1.4.2 [root@ngsw-dev3 asterisk-addons-1.4.2]# ./configure --with-asterisk=/usr/src/asterisk-1.4.6 --with-mysqlclient=/usr/local/mysql checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for uname... /bin/uname checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for GNU make... make checking for grep... /bin/grep checking for basename... /bin/basename checking for dirname... /usr/bin/dirname checking for sh... /bin/sh checking for ln... /bin/ln checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for initscr in -lcurses... yes checking curses.h usability... yes checking curses.h presence... yes checking for curses.h... yes checking for initscr in -lncurses... yes checking for curses.h... (cached) yes checking for mysql_config... /usr/local/mysql/bin/mysql_config checking for mysql_init in -lmysqlclient... no configure: *** configure: *** The MySQL client installation on this system appears to be broken. configure: *** including --without-mysqlclient | ||
Comments: | By: Jin Ke Jiang (jjk) 2007-07-05 01:42:29 I found I didn't have mysql-devel on my system, after install the mysql-devel package it compile correctly. But still can't configure using alternative mysql package. By: Joshua C. Colp (jcolp) 2007-07-05 08:14:45 I don't know what you mean by other package, can you clarify a bit? By: Russell Bryant (russell) 2007-07-05 10:45:18 The configure script expects to find the "mysql_config" program in your PATH, and that it will provide the right information for how to build with the mysqlclient library. If you have an alternate installation, then you will have to adjust your PATH such that a different mysql_config will be found that provides the correct information. |