Hi, I have seen the other faq about this problem. Still I can't install ZM on my Redhat 9. After configure It reports that I miss Libjpeg.a. I can'f find the file in my system either.
Thanks
checking for gcc... gcc
checking for C compiler default output... 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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
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 how to run the C++ preprocessor... g++ -E
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking pcre.h usability... no
checking pcre.h presence... no
checking for pcre.h... no
checking whether round is declared... yes
checking whether strsignal is declared... yes
checking for jpeg_start_compress in -ljpeg... no
configure: error: zm requires libjpeg.a
[root@localhost zm-1.19.4]# ./configure --with-mysql=/usr/ --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/local
\checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: WARNING: You can call configure with the --with-lame option.
This tells configure where to find the Lame library which can be used by the ffmpeg libraries
to generate IE compatible MPEG audio streams. This option is only necessary if you have built
the ffmpeg package itself with the --enable-mp3lame option and if the normal link cannot
find the library. Using mp3lame is not necessary or of any benefit to ZoneMinder per se.
e.g. --with-lame=/use/local/lib
configure: 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: 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
checking for gcc... gcc
checking for C compiler default output... 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 style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
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 how to run the C++ preprocessor... g++ -E
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking pcre.h usability... no
checking pcre.h presence... no
checking for pcre.h... no
checking whether round is declared... yes
checking whether strsignal is declared... yes
checking for jpeg_start_compress in -ljpeg... no
configure: error: zm requires libjpeg.a
[root@localhost zm-1.19.4]# \
Again and still: Missing libjpeg.a
I don't know RH9, so you might want to hear someone's else opinion...
.. but here is mine:
look in /usr/lib if you find libjpeg.a
if not then you can install it using RH's package manager or directly from source:
download ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
then move to the directory where is the tar file and type
and off you go.
.. but here is mine:
look in /usr/lib if you find libjpeg.a
if not then you can install it using RH's package manager or directly from source:
download ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
then move to the directory where is the tar file and type
Code: Select all
tar -xvzf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure --enable-static --enable-shared --prefix=/usr &&
make &&
make install
cd ..
rm -rf jpeg-6b
Again and still: Missing libjpeg.a - RedHat and derivitives.
The FAQ advice is to see if you have your c++ compiler installed. I had gotten ffmpeg from source forge and compiled that so I thought that was OK.
Here is what I did to get the libraries working with WhiteBox Linux 3.0 respin 1 (tracks RedHat Enterprise 3.0):
ln -s /usr/lib/libjpeg.so.62.0.0 /usr/lib/libjpeg.so
ln -s /usr/lib/mysql/libmysqlclient.a /lib/libmysqlclient.a
It seems that those files are either not named the way ZoneMinder expects or are in the wrong place.
BTW libjpeg came from the libjpeg-6b-30.rpm
and libmysqlclient comes from mysql-devel-3.23.58-1.rpm
This gets me past the zmconfig.pl file but I still have no joy with make. I still get 236 errors related to the header files then it dies leaving 0 executables. Here are the error messages for the last fatal file:
In file included from zm_monitor.h:30,
from zmc.cpp:26:
zm_camera.h:66: virtual outside class declaration
In file included from zmc.cpp:26:
zm_monitor.h:97: 'Image' is used as a type, but is not defined as a type.
zm_monitor.h:98: 'Image' is used as a type, but is not defined as a type.
zm_monitor.h:117: syntax error before `*' token
zm_monitor.h:193: `ts_image' was not declared in this scope
zm_monitor.h:193: syntax error before `)' token
zm_monitor.h:282: `dump_image' was not declared in this scope
zm_monitor.h:282: invalid data member initialization
zm_monitor.h:282: (use `=' to initialize static data members)
zm_monitor.h:282: variable or field `DumpImage' declared void
zm_monitor.h:285: syntax error before `&' token
zm_monitor.h: In member function `void Monitor::TimestampImage(...) const':
zm_monitor.h:200: `ts_time' undeclared (first use this function)
zm_monitor.h:203: `ts_image' undeclared (first use this function)
zm_monitor.h: In member function `int Monitor::PostCapture()':
zm_monitor.h:241: `struct Monitor::Snapshot' has no member named `image'
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/home/howland/src/zm-1.19.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/howland/src/zm-1.19.4'
make: *** [all] Error 2
Is there something incompatable with my version of gcc (gcc-3.2.3-34, gcc-c++-ssa-3.5ssa-0.20030801.47)? It seems it does not like something about the class Image it gets from zm_Image.h and then it's all downhill from there.
Maybe it is about time to try the Live-CD.
Eric
Here is what I did to get the libraries working with WhiteBox Linux 3.0 respin 1 (tracks RedHat Enterprise 3.0):
ln -s /usr/lib/libjpeg.so.62.0.0 /usr/lib/libjpeg.so
ln -s /usr/lib/mysql/libmysqlclient.a /lib/libmysqlclient.a
It seems that those files are either not named the way ZoneMinder expects or are in the wrong place.
BTW libjpeg came from the libjpeg-6b-30.rpm
and libmysqlclient comes from mysql-devel-3.23.58-1.rpm
This gets me past the zmconfig.pl file but I still have no joy with make. I still get 236 errors related to the header files then it dies leaving 0 executables. Here are the error messages for the last fatal file:
In file included from zm_monitor.h:30,
from zmc.cpp:26:
zm_camera.h:66: virtual outside class declaration
In file included from zmc.cpp:26:
zm_monitor.h:97: 'Image' is used as a type, but is not defined as a type.
zm_monitor.h:98: 'Image' is used as a type, but is not defined as a type.
zm_monitor.h:117: syntax error before `*' token
zm_monitor.h:193: `ts_image' was not declared in this scope
zm_monitor.h:193: syntax error before `)' token
zm_monitor.h:282: `dump_image' was not declared in this scope
zm_monitor.h:282: invalid data member initialization
zm_monitor.h:282: (use `=' to initialize static data members)
zm_monitor.h:282: variable or field `DumpImage' declared void
zm_monitor.h:285: syntax error before `&' token
zm_monitor.h: In member function `void Monitor::TimestampImage(...) const':
zm_monitor.h:200: `ts_time' undeclared (first use this function)
zm_monitor.h:203: `ts_image' undeclared (first use this function)
zm_monitor.h: In member function `int Monitor::PostCapture()':
zm_monitor.h:241: `struct Monitor::Snapshot' has no member named `image'
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/home/howland/src/zm-1.19.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/howland/src/zm-1.19.4'
make: *** [all] Error 2
Is there something incompatable with my version of gcc (gcc-3.2.3-34, gcc-c++-ssa-3.5ssa-0.20030801.47)? It seems it does not like something about the class Image it gets from zm_Image.h and then it's all downhill from there.
Maybe it is about time to try the Live-CD.
Eric