Page 1 of 1

Centos 5.2 can't compile ZoneMinder-1.24.0

Posted: Wed Feb 18, 2009 2:10 pm
by gustavo
I have got CentOS-5.2 (from box) and I tried to compile ZM-1.24.0. The following occurs:

[root@host02 ZoneMinder-1.24.0]# ./configure --with-ffmpeg=/usr/lib --with-libarch=lib64 --with-mysql=/usr --with-webdir=/var/www/html/zoneminder --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr --with-extralibs="-lmp3lame" --with-webuser=apache --with-webgroup=apache --enable-mmap=yes --enable-debug=yes --enable-crashtrace=yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name...
configure: error: in `/usr/local/src/ZoneMinder-1.24.0':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.

config.log have the following out

configure:2840: $? = 0
configure:2847: g++ -v >&5
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enab
le-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,
c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0
/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)
configure:2851: $? = 0
configure:2858: g++ -V >&5
g++: '-V' option must have argument
configure:2862: $? = 1
configure:2885: checking for C++ compiler default output file name
configure:2907: g++ -I/usr/include -L/usr/lib64 -L/usr/lib64/mysql -lmp3lame conftest.cpp >&5
/usr/bin/ld: cannot find -lmp3lame
collect2: ld returned 1 exit status
configure:2911: $? = 1
configure:2949: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.24.0"
| #define PACKAGE_STRING "zm 1.24.0"
| #define PACKAGE_BUGREPORT "support@zoneminder.com"
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.24.0"
| #define ZM_MEM_MAPPED 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2955: error: in `/usr/local/src/ZoneMinder-1.24.0':
configure:2958: error: C++ compiler cannot create executables
See `config.log' for more details.

What do i do wrong? How to compile it?
Thanks in advance.

PS:
[root@host02 ZoneMinder-1.24.0]# rpm -aq |grep gcc
compat-gcc-34-c++-3.4.6-4
libgcc-4.1.2-42.el5
compat-gcc-34-3.4.6-4
compat-gcc-34-g77-3.4.6-4
libgcc-4.1.2-42.el5
gcc-gfortran-4.1.2-42.el5
gcc-4.1.2-42.el5
gcc-c++-4.1.2-42.el5

Posted: Wed Feb 18, 2009 2:46 pm
by zoneminder
It looks like you are missing libmp3lame but I'm not sure why you have included it in the configure line anyway.

Posted: Wed Feb 18, 2009 2:57 pm
by gustavo
I was install the following packages

yum install lame-devel twolame twolame-devel

and working fine.

Thanks for your time

Posted: Thu Feb 19, 2009 11:33 pm
by Normando
Hola Gustavo.

Para compilar el ffmpeg estas utilizando el paquete gcc34? Porque la versión de atrpms de ffmpeg no cuenta con los requisitos necesarios por zm.

Yo lo he logrado compilar con la opcion --cc=gcc34

Saludos