installation problem mysql.h

Support and queries relating to all previous versions of ZoneMinder
Locked
kame50
Posts: 6
Joined: Fri Feb 17, 2006 5:14 pm

installation problem mysql.h

Post by kame50 »

Hi
I am trying to install ZoneMinder-1.22.0 but i got configure problem:

./configure --with-mysql=/usr/local/mysql \
--with-webdir=/usr/local/apache2/htdocs/zm \
--with-cgidir=/usr/local/apache2/cgi-bin \
--with-webuser=nobody \
--with-webgroup=nogroup



checking how to run the C++ preprocessor... g++ -E
checking mysql/mysql.h usability... no
checking mysql/mysql.h presence... no
checking for mysql/mysql.h... no
configure: error: zm requires mysql/mysql.h


i have no problems with installing 1.20.x versions....

mysql is intalled from the sources and it is in /usr/local/mysql

anyone knows what can i do to make works?
kame50
Posts: 6
Joined: Fri Feb 17, 2006 5:14 pm

.

Post by kame50 »

heh
my mysql/mysql.h is in /usr/local/mysql/lib/mysql/mysql.h

even if i point it in configure options :
./configure --with-mysql=/usr/local/mysql/lib/mysql \
--with-webdir=/usr/local/apache2/htdocs/zm \
--with-cgidir=/usr/local/apache2/cgi-bin \
--with-webuser=nobody \
--with-webgroup=nogroup

still got same error....
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

The path for mysql that configure is looking for is the prefix and not the full path to the header file.

Code: Select all

MYSQL_LIBS="-L${MYSQL_PREFIX}/${LIB_ARCH}/mysql"
MYSQL_CFLAGS="-I${MYSQL_PREFIX}/include"
Although it looks like you might have set a bit more than just the prefix when you built mysql with irregular paths.
You might have to patch ZM in order to get it to build. Did you try --with-mysql=/usr/local ?

Regards,
Corey
kame50
Posts: 6
Joined: Fri Feb 17, 2006 5:14 pm

.

Post by kame50 »

hmm
i am sorry my mysql.h is in /usr/local/mysql/include/mysql/mysql.h
whole mysql is in /usr/local/mysql

for me it is standard location for mysql when i install it from the source...
i had no problems with installing all previous zm versions (like 1.21.4 and
before)
i have 1.21.4 running on this machine... i've tried 1.21.3 with no problems
too...
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You might try changing that one line in configure from:
MYSQL_LIBS="-L${MYSQL_PREFIX}/${LIB_ARCH}/mysql"
to
MYSQL_LIBS="-L${MYSQL_PREFIX}/lib/mysql"

or setting the --with-extralibs="/usr/local/mysql/lib/mysql"

Other wise there might be some off in the test for the mysql libraries that is not picking upon your install settings.

Regards,
Corey
farmer
Posts: 3
Joined: Sat Feb 25, 2006 3:28 am

Post by farmer »

I have the same problem. I can only get this far on the build

checking mysql/mysql.h usability... no
checking mysql/mysql.h presence... no
checking for mysql/mysql.h... no
configure: error: zm requires mysql/mysql.h

Tried hacking configure, putting in the paths to the mysql lib dir, which is under /usr/local, and various combinations of switches. OS is Suse 10.0 with x86_64.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Can you look in config.log and seeing if there's anything in there that might shed some light on this? If so can you post it.
Phil
farmer
Posts: 3
Joined: Sat Feb 25, 2006 3:28 am

Post by farmer »

zoneminder wrote:Can you look in config.log and seeing if there's anything in there that might shed some light on this? If so can you post it.
Thanks. Here is the 1.22 config log. I downloaded 1.21.4 and it gets past the section that 1.22 errors out on, but then errors out with a libjpeg.a msg. 1.22 still errors out on mysql.h.

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by zm configure 1.22.0, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure --with-webdir=/usr/local/apache2/zm --with-cgidir=/usr/local/apache2/cgi-bin/zm --with-libarch=lib64 --with-mysql=/usr/local/mysql

## --------- ##
## Platform. ##
## --------- ##

uname -m = x86_64
uname -r = 2.6.13-15-default
uname -s = Linux
uname -v = #1 Tue Sep 13 14:56:15 UTC 2005

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/sbin
PATH: /opt/kde3/sbin
PATH: /opt/gnome/sbin
PATH: /root/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /bin
PATH: /opt/gnome/bin
PATH: /opt/kde3/bin
PATH: /usr/lib/mit/bin
PATH: /usr/lib/mit/sbin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1401: checking for a BSD-compatible install
configure:1456: result: /usr/bin/install -c
configure:1467: checking whether build environment is sane
configure:1510: result: yes
configure:1575: checking for gawk
configure:1591: found /usr/bin/gawk
configure:1601: result: gawk
configure:1611: checking whether make sets $(MAKE)
configure:1631: result: yes
configure:1888: WARNING: You can call configure with the --with-ffmpeg option.
This tells configure where to find the ffmpeg root directory within which are the libavcodec
and libavformat files that can be used to build true MPEG streaming into ZoneMinder. Ensure that
your copy of ffmpeg has installed libraries as well as binaries (use 'make installlib'). If you
are using a local install of ffmpeg you may have to remove or rename a previous real installation
as the headers and libraries from that will probably be picked up before your local copy.
e.g. --with-ffmpeg=/usr/local
configure:1919: WARNING: You can call configure with the --with-extralibs option.
Ordinarily you will need to use this option only when your copy of ffmpeg has been built
with support for additional formats and you would use this option to detail which additional
libraries ffmpeg was built with so that it is able to link successfully with ZoneMinder.
You will need to wrap this option in quotes if it contains any spaces.
e.g. --with-extralibs="-lmp3lame"
configure:1978: WARNING: You can call configure with the --with-webuser option.
This tells configure what the user name of the web user is if it is not the default of 'apache'.
e.g. --with-webuser=apache or --with-webuser=web
configure:1996: WARNING: You can call configure with the --with-webgroup option.
This tells configure what the group name of the web group is if it is not the default of 'apache'.
e.g. --with-webgroup=apache or --with-webgroup=web
configure:2016: WARNING: You can call configure with the --enable-debug=<yes|no> or --disable-debug option.
This tells configure whether to compile ZoneMinder with debug included. Although debug is included
by default it is not output unless explicitly switched on elsewhere. These checks may induce a
small penalty on performance and if you are after squeezing the maximum possible performance out
of ZoneMinder you may use this switch to prevent debug from being compiled in.
e.g. --enable-debug=yes or --disable-debug
configure:2079: checking for gcc
configure:2095: found /usr/bin/gcc
configure:2105: result: gcc
configure:2349: checking for C compiler version
configure:2352: gcc --version </dev/null >&5
gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2355: $? = 0
configure:2357: gcc -v </dev/null >&5
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,f95,java,ada --disable-checking --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-java-awt=gtk --disable-libjava-multilib --with-slibdir=/lib64 --with-system-zlib --enable-shared --enable-__cxa_atexit --without-system-libunwind --host=x86_64-suse-linux
Thread model: posix
gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)
configure:2360: $? = 0
configure:2362: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2365: $? = 1
configure:2388: checking for C compiler default output file name
configure:2391: gcc -L/usr/lib64 -L/usr/local/mysql/lib/mysql conftest.c >&5
configure:2394: $? = 0
configure:2440: result: a.out
configure:2445: checking whether the C compiler works
configure:2451: ./a.out
configure:2454: $? = 0
configure:2471: result: yes
configure:2478: checking whether we are cross compiling
configure:2480: result: no
configure:2483: checking for suffix of executables
configure:2485: gcc -o conftest -L/usr/lib64 -L/usr/local/mysql/lib/mysql conftest.c >&5
configure:2488: $? = 0
configure:2513: result:
configure:2519: checking for suffix of object files
configure:2540: gcc -c conftest.c >&5
configure:2543: $? = 0
configure:2565: result: o
configure:2569: checking whether we are using the GNU C compiler
configure:2593: gcc -c conftest.c >&5
configure:2599: $? = 0
configure:2603: test -z
|| test ! -s conftest.err
configure:2606: $? = 0
configure:2609: test -s conftest.o
configure:2612: $? = 0
configure:2625: result: yes
configure:2631: checking whether gcc accepts -g
configure:2652: gcc -c -g conftest.c >&5
configure:2658: $? = 0
configure:2662: test -z
|| test ! -s conftest.err
configure:2665: $? = 0
configure:2668: test -s conftest.o
configure:2671: $? = 0
configure:2682: result: yes
configure:2699: checking for gcc option to accept ANSI C
configure:2769: gcc -c -g -O2 conftest.c >&5
configure:2775: $? = 0
configure:2779: test -z
|| test ! -s conftest.err
configure:2782: $? = 0
configure:2785: test -s conftest.o
configure:2788: $? = 0
configure:2806: result: none needed
configure:2824: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: syntax error before 'me'
configure:2830: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2974: checking for style of include used by make
configure:3002: result: GNU
configure:3030: checking dependency style of gcc
configure:3120: result: gcc3
configure:3189: checking for g++
configure:3205: found /usr/bin/g++
configure:3215: result: g++
configure:3231: checking for C++ compiler version
configure:3234: g++ --version </dev/null >&5
g++ (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3237: $? = 0
configure:3239: g++ -v </dev/null >&5
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,f95,java,ada --disable-checking --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-java-awt=gtk --disable-libjava-multilib --with-slibdir=/lib64 --with-system-zlib --enable-shared --enable-__cxa_atexit --without-system-libunwind --host=x86_64-suse-linux
Thread model: posix
gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)
configure:3242: $? = 0
configure:3244: g++ -V </dev/null >&5
g++: '-V' option must have argument
configure:3247: $? = 1
configure:3250: checking whether we are using the GNU C++ compiler
configure:3274: g++ -c conftest.cc >&5
configure:3280: $? = 0
configure:3284: test -z
|| test ! -s conftest.err
configure:3287: $? = 0
configure:3290: test -s conftest.o
configure:3293: $? = 0
configure:3306: result: yes
configure:3312: checking whether g++ accepts -g
configure:3333: g++ -c -g conftest.cc >&5
configure:3339: $? = 0
configure:3343: test -z
|| test ! -s conftest.err
configure:3346: $? = 0
configure:3349: test -s conftest.o
configure:3352: $? = 0
configure:3363: result: yes
configure:3405: g++ -c -g -O2 conftest.cc >&5
configure:3411: $? = 0
configure:3415: test -z
|| test ! -s conftest.err
configure:3418: $? = 0
configure:3421: test -s conftest.o
configure:3424: $? = 0
configure:3450: g++ -c -g -O2 conftest.cc >&5
conftest.cc: In function 'int main()':
conftest.cc:16: error: 'exit' was not declared in this scope
configure:3456: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.22.0"
| #define PACKAGE_STRING "zm 1.22.0"
| #define PACKAGE_BUGREPORT "support@zoneminder.com"
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.22.0"
| #define ZM_DBG_OFF 1
| /* end confdefs.h. */
|
| int
| main ()
| {
| exit (42);
| ;
| return 0;
| }
configure:3405: g++ -c -g -O2 conftest.cc >&5
configure:3411: $? = 0
configure:3415: test -z
|| test ! -s conftest.err
configure:3418: $? = 0
configure:3421: test -s conftest.o
configure:3424: $? = 0
configure:3450: g++ -c -g -O2 conftest.cc >&5
configure:3456: $? = 0
configure:3460: test -z
|| test ! -s conftest.err
configure:3463: $? = 0
configure:3466: test -s conftest.o
configure:3469: $? = 0
configure:3494: checking dependency style of g++
configure:3584: result: gcc3
configure:3614: checking for a BSD-compatible install
configure:3669: result: /usr/bin/install -c
configure:3680: checking whether make sets $(MAKE)
configure:3700: result: yes
configure:3716: checking how to run the C preprocessor
configure:3751: gcc -E conftest.c
configure:3757: $? = 0
configure:3789: gcc -E conftest.c
conftest.c:15:28: error: ac_nonexistent.h: No such file or directory
configure:3795: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.22.0"
| #define PACKAGE_STRING "zm 1.22.0"
| #define PACKAGE_BUGREPORT "support@zoneminder.com"
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.22.0"
| #define ZM_DBG_OFF 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3834: result: gcc -E
configure:3858: gcc -E conftest.c
configure:3864: $? = 0
configure:3896: gcc -E conftest.c
conftest.c:15:28: error: ac_nonexistent.h: No such file or directory
configure:3902: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.22.0"
| #define PACKAGE_STRING "zm 1.22.0"
| #define PACKAGE_BUGREPORT "support@zoneminder.com"
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.22.0"
| #define ZM_DBG_OFF 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3946: checking for egrep
configure:3956: result: grep -E
configure:3961: checking for ANSI C header files
configure:3986: gcc -c -g -O2 conftest.c >&5
configure:3992: $? = 0
configure:3996: test -z
|| test ! -s conftest.err
configure:3999: $? = 0
configure:4002: test -s conftest.o
configure:4005: $? = 0
configure:4094: gcc -o conftest -g -O2 -L/usr/lib64 -L/usr/local/mysql/lib/mysql conftest.c >&5
conftest.c: In function 'main':
conftest.c:32: warning: incompatible implicit declaration of built-in function 'exit'
configure:4097: $? = 0
configure:4099: ./conftest
configure:4102: $? = 0
configure:4117: result: yes
configure:4152: checking for sys/types.h
configure:4168: g++ -c -g -O2 conftest.cc >&5
configure:4174: $? = 0
configure:4178: test -z
|| test ! -s conftest.err
configure:4181: $? = 0
configure:4184: test -s conftest.o
configure:4187: $? = 0
configure:4198: result: yes
configure:4152: checking for sys/stat.h
configure:4168: g++ -c -g -O2 conftest.cc >&5
configure:4174: $? = 0
configure:4178: test -z
|| test ! -s conftest.err
configure:4181: $? = 0
configure:4184: test -s conftest.o
configure:4187: $? = 0
configure:4198: result: yes
configure:4152: checking for stdlib.h
configure:4168: g++ -c -g -O2 conftest.cc >&5
configure:4174: $? = 0
configure:4178: test -z
|| test ! -s conftest.err
configure:4181: $? = 0
configure:4184: test -s conftest.o
configure:4187: $? = 0
configure:4198: result: yes
configure:4152: checking for string.h
configure:4168: g++ -c -g -O2 conftest.cc >&5
configure:4174: $? = 0
configure:4178: test -z
|| test ! -s conftest.err
configure:4181: $? = 0
configure:4184: test -s conftest.o
configure:4187: $? = 0
configure:4198: result: yes
configure:4152: checking for memory.h
configure:4168: g++ -c -g -O2 conftest.cc >&5
configure:4174: $? = 0
configure:4178: test -z
|| test ! -s conftest.err
configure:4181: $? = 0
configure:4184: test -s conftest.o
configure:4187: $? = 0
configure:4198: result: yes
configure:4152: checking for strings.h
configure:4168: g++ -c -g -O2 conftest.cc >&5
configure:4174: $? = 0
configure:4178: test -z
|| test ! -s conftest.err
configure:4181: $? = 0
configure:4184: test -s conftest.o
configure:4187: $? = 0
configure:4198: result: yes
configure:4152: checking for inttypes.h
configure:4168: g++ -c -g -O2 conftest.cc >&5
configure:4174: $? = 0
configure:4178: test -z
|| test ! -s conftest.err
configure:4181: $? = 0
configure:4184: test -s conftest.o
configure:4187: $? = 0
configure:4198: result: yes
configure:4152: checking for stdint.h
configure:4168: g++ -c -g -O2 conftest.cc >&5
configure:4174: $? = 0
configure:4178: test -z
|| test ! -s conftest.err
configure:4181: $? = 0
configure:4184: test -s conftest.o
configure:4187: $? = 0
configure:4198: result: yes
configure:4152: checking for unistd.h
configure:4168: g++ -c -g -O2 conftest.cc >&5
configure:4174: $? = 0
configure:4178: test -z
|| test ! -s conftest.err
configure:4181: $? = 0
configure:4184: test -s conftest.o
configure:4187: $? = 0
configure:4198: result: yes
configure:4215: checking how to run the C++ preprocessor
configure:4246: g++ -E conftest.cc
configure:4252: $? = 0
configure:4284: g++ -E conftest.cc
conftest.cc:25:28: error: ac_nonexistent.h: No such file or directory
configure:4290: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.22.0"
| #define PACKAGE_STRING "zm 1.22.0"
| #define PACKAGE_BUGREPORT "support@zoneminder.com"
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.22.0"
| #define ZM_DBG_OFF 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4329: result: g++ -E
configure:4353: g++ -E conftest.cc
configure:4359: $? = 0
configure:4391: g++ -E conftest.cc
conftest.cc:25:28: error: ac_nonexistent.h: No such file or directory
configure:4397: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.22.0"
| #define PACKAGE_STRING "zm 1.22.0"
| #define PACKAGE_BUGREPORT "support@zoneminder.com"
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.22.0"
| #define ZM_DBG_OFF 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4455: checking mysql/mysql.h usability
configure:4467: g++ -c -g -O2 conftest.cc >&5
conftest.cc:59:25: error: mysql/mysql.h: No such file or directory
configure:4473: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.22.0"
| #define PACKAGE_STRING "zm 1.22.0"
| #define PACKAGE_BUGREPORT "support@zoneminder.com"
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.22.0"
| #define ZM_DBG_OFF 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| # include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <mysql/mysql.h>
configure:4496: result: no
configure:4500: checking mysql/mysql.h presence
configure:4510: g++ -E conftest.cc
conftest.cc:25:25: error: mysql/mysql.h: No such file or directory
configure:4516: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.22.0"
| #define PACKAGE_STRING "zm 1.22.0"
| #define PACKAGE_BUGREPORT "support@zoneminder.com"
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.22.0"
| #define ZM_DBG_OFF 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <mysql/mysql.h>
configure:4536: result: no
configure:4571: checking for mysql/mysql.h
configure:4578: result: no
configure:4588: error: zm requires mysql/mysql.h

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_ZM_DB_HOST_set=
ac_cv_env_ZM_DB_HOST_value=
ac_cv_env_ZM_DB_NAME_set=
ac_cv_env_ZM_DB_NAME_value=
ac_cv_env_ZM_DB_PASS_set=
ac_cv_env_ZM_DB_PASS_value=
ac_cv_env_ZM_DB_USER_set=
ac_cv_env_ZM_DB_USER_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_mysql_mysql_h=no
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_g=yes
ac_cv_prog_egrep='grep -E'
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /usr/local/src/zm/missing --run aclocal-1.9'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /usr/local/src/zm/missing --run tar'
AUTOCONF='${SHELL} /usr/local/src/zm/missing --run autoconf'
AUTOHEADER='${SHELL} /usr/local/src/zm/missing --run autoheader'
AUTOMAKE='${SHELL} /usr/local/src/zm/missing --run automake-1.9'
AWK='gawk'
BINDIR=''
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CGI_PREFIX='/usr/local/apache2/cgi-bin/zm'
CPP='gcc -E'
CPPFLAGS=''
CXX='g++'
CXXCPP='g++ -E'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='grep -E'
EXEEXT=''
EXTRA_LIBS=''
FFMPEG_CFLAGS='-I/usr/include'
FFMPEG_LIBS='-L/usr/lib64'
FFMPEG_PREFIX='/usr'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS='-L/usr/lib64 -L/usr/local/mysql/lib/mysql '
LIBDIR=''
LIBOBJS=''
LIBS=''
LIB_ARCH='lib64'
LTLIBOBJS=''
MAKEINFO='${SHELL} /usr/local/src/zm/missing --run makeinfo'
MYSQL_CFLAGS='-I/usr/local/mysql/include'
MYSQL_LIBS='-L/usr/local/mysql/lib/mysql'
MYSQL_PREFIX='/usr/local/mysql'
OBJEXT='o'
PACKAGE='ZoneMinder'
PACKAGE_BUGREPORT='support@zoneminder.com'
PACKAGE_NAME='zm'
PACKAGE_STRING='zm 1.22.0'
PACKAGE_TARNAME='ZoneMinder'
PACKAGE_VERSION='1.22.0'
PATH_BUILD='/usr/local/src/zm'
PATH_SEPARATOR=':'
PERL=''
RUNDIR=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
SYSCONFDIR=''
TIME_BUILD='1141100731'
VERSION='1.22.0'
WEB_GROUP='apache'
WEB_PREFIX='/usr/local/apache2/zm'
WEB_USER='apache'
ZM_CONFIG=''
ZM_DB_HOST='localhost'
ZM_DB_NAME='zm'
ZM_DB_PASS='zmpass'
ZM_DB_USER='zmuser'
ZM_PID=''
ZM_RUNDIR=''
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_ct_STRIP=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/usr/local/src/zm/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_INTTYPES_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define PACKAGE "ZoneMinder"
#define PACKAGE_BUGREPORT "support@zoneminder.com"
#define PACKAGE_NAME "zm"
#define PACKAGE_STRING "zm 1.22.0"
#define PACKAGE_TARNAME "ZoneMinder"
#define PACKAGE_VERSION "1.22.0"
#define STDC_HEADERS 1
#define VERSION "1.22.0"
#define ZM_DBG_OFF 1
#endif
#ifdef __cplusplus
extern "C" void std::exit (int) throw (); using std::exit;

configure: exit 1
Fivern
Posts: 17
Joined: Tue Jun 20, 2006 11:01 am

Post by Fivern »

at the ./configure, add: CPPFLAGS="-I/usr/local/mysql/include", should do it!
Locked