Configure halts on:
checking for mysql_init in -lmysqlclient... no
configure: error: zm requires libmysqlclient.a
I have read that I should install mysql, and devl from mysql.com and I have done this. The file is indeed on my system:
[root@video zm-1.21.4]# locate libmysqlclient.a
/usr/lib/mysql/libmysqlclient.a
I've been trying all sorts of things that I've read on google and have been messing with this all day (fyi; Fedora core 4)
Last login: Tue Dec 6 20:21:18 2005 from 192.168.0.19
[root@video ~]# ./bin/mysqladmin -u root password 8ql4q731
-bash: ./bin/mysqladmin: No such file or directory
[root@video ~]# locate mysqladmin
/usr/share/man/man1/mysqladmin.1.gz
/usr/bin/mysqladmin
[root@video ~]# ./usr/bin/mysqladmin -u root password 8ql4q731
-bash: ./usr/bin/mysqladmin: No such file or directory
[root@video ~]# cd /usr/bin/
[root@video bin]# ./mysqladmin
./mysqladmin Ver 8.41 Distrib 4.1.15, for redhat-linux-gnu on i386
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Administration program for the mysqld daemon.
Usage: ./mysqladmin [OPTIONS] command command....
-c, --count=# Number of iterations to make. This works with -i
(--sleep) only.
-#, --debug[=name] Output debug log. Often this is 'd:t:o,filename'.
-f, --force Don't ask for confirmation on drop database; with
multiple commands, continue even if an error occurs.
-C, --compress Use compression in server/client protocol.
--character-sets-dir=name
Directory where character sets are.
--default-character-set=name
Set the default character set.
-?, --help Display this help and exit.
-h, --host=name Connect to host.
-p, --password[=name]
Password to use when connecting to server. If password is
not given it's asked from the tty.
-P, --port=# Port number to use for connection.
--protocol=name The protocol of connection (tcp,socket,pipe,memory).
-r, --relative Show difference between current and previous values when
used with -i. Currently works only with extended-status.
-O, --set-variable=name
Change the value of a variable. Please note that this
option is deprecated; you can set variables directly with
--variable-name=value.
-s, --silent Silently exit if one can't connect to server.
-S, --socket=name Socket file to use for connection.
-i, --sleep=# Execute commands again and again with a sleep between.
--ssl Enable SSL for connection (automatically enabled with
other flags). Disable with --skip-ssl.
--ssl-key=name X509 key in PEM format (implies --ssl).
--ssl-cert=name X509 cert in PEM format (implies --ssl).
--ssl-ca=name CA file in PEM format (check OpenSSL docs, implies
--ssl).
--ssl-capath=name CA directory (check OpenSSL docs, implies --ssl).
--ssl-cipher=name SSL cipher to use (implies --ssl).
-u, --user=name User for login if not current user.
-v, --verbose Write more information.
-V, --version Output version information and exit.
-E, --vertical Print output vertically. Is similar to --relative, but
prints output vertically.
-w, --wait[=#] Wait and retry if connection is down.
--connect_timeout=#
--shutdown_timeout=#
Variables (--variable-name=value)
and boolean options {FALSE|TRUE} Value (after reading options)
--------------------------------- -----------------------------
count 0
force FALSE
compress FALSE
character-sets-dir (No default value)
default-character-set (No default value)
host (No default value)
port 3306
relative FALSE
socket (No default value)
sleep 0
ssl FALSE
ssl-key (No default value)
ssl-cert (No default value)
ssl-ca (No default value)
ssl-capath (No default value)
ssl-cipher (No default value)
user (No default value)
verbose FALSE
vertical FALSE
connect_timeout 43200
shutdown_timeout 3600
Default options are read from the following files in the given order:
/etc/my.cnf /var/lib/mysql/my.cnf ~/.my.cnf
The following groups are read: mysqladmin client
The following options may be given as the first argument:
--print-defaults Print the program argument list and exit
--no-defaults Don't read default options from any options file
--defaults-file=# Only read default options from the given file #
--defaults-extra-file=# Read this file after the global files are read
Where command is a one or more of: (Commands may be shortened)
create databasename Create a new database
debug Instruct server to write debug information to log
drop databasename Delete a database and all its tables
extended-status Gives an extended status message from the server
flush-hosts Flush all cached hosts
flush-logs Flush all logs
flush-status Clear status variables
flush-tables Flush all tables
flush-threads Flush the thread cache
flush-privileges Reload grant tables (same as reload)
kill id,id,... Kill mysql threads
password new-password Change old password to new-password, MySQL 4.1 hashing.
old-password new-password Change old password to new-password in old format.
ping Check if mysqld is alive
processlist Show list of active threads in server
reload Reload grant tables
refresh Flush all tables and close and open logfiles
shutdown Take server down
status Gives a short status message from the server
start-slave Start slave
stop-slave Stop slave
variables Prints variables available
version Get version info from server
[root@video bin]# ./mysqladmin -u root password 8ql4q731
./mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
[root@video bin]# yum install mysql
Setting up Install Process
Setting up repositories
updates-released 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do
[root@video bin]# yum -y update
Setting up Update Process
Setting up repositories
updates-released 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
http://mirror.averse.net/fedora/linux/c ... repomd.xml: [Errno 4] IOError: HTTP Error 404: Date: Wed, 07 Dec 2005 16:57:21 GMT
Server: Apache
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Trying other mirror.
base 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
No Packages marked for Update/Obsoletion
[root@video bin]# ps -x\
>
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.5/FAQ
PID TTY STAT TIME COMMAND
1 ? S 0:00 init [3]
2 ? SN 0:00 [ksoftirqd/0]
3 ? S< 0:00 [events/0]
4 ? S< 0:00 [khelper]
5 ? S< 0:00 [kthread]
7 ? S< 0:00 [kacpid]
67 ? S< 0:00 [kblockd/0]
70 ? S< 0:00 [khubd]
117 ? S 0:00 [pdflush]
118 ? S 0:00 [pdflush]
120 ? S< 0:00 [aio/0]
119 ? S 0:00 [kswapd0]
207 ? S< 0:00 [kseriod]
324 ? S< 0:00 [kmirrord]
337 ? S 0:00 [kjournald]
780 ? S<s 0:00 udevd
837 ? S< 0:00 [kgameportd]
1052 ? S< 0:00 [kauditd]
1136 ? S 0:00 [kjournald]
1395 ? Ss 0:00 syslogd -m 0
1397 ? Ss 0:00 klogd -x
1442 ? S<sl 0:00 auditd
1471 ? Ss 0:00 rpc.idmapd
1482 ? Ss 0:00 hcid: processing events
1484 ? Ss 0:00 sdpd
1505 ? S< 0:00 [krfcommd]
1622 ? Ss 0:00 /usr/sbin/automount --timeout=60 /misc file /etc/auto.misc
1672 ? Ss 0:00 /usr/sbin/automount --timeout=60 /net program /etc/auto.net
1683 ? Ss 0:00 /usr/sbin/acpid
1690 ? Ss 0:00 cupsd
1742 ? Ss 0:00 /usr/sbin/sshd
1758 ? Ss 0:00 sendmail: accepting connections
1772 ? Ss 0:00 gpm -m /dev/input/mice -t imps2
1779 ? Ss 0:00 crond
1792 ? Ss 0:00 /usr/sbin/atd
1808 ? Ss 0:00 hald --retain-privileges
1813 ? S 0:00 hald-addon-acpi
1824 ? S 0:00 hald-addon-storage
1836 tty1 Ss+ 0:00 /sbin/mingetty tty1
1837 tty2 Ss+ 0:00 /sbin/mingetty tty2
1838 tty3 Ss+ 0:00 /sbin/mingetty tty3
1839 tty4 Ss+ 0:00 /sbin/mingetty tty4
1840 tty5 Ss+ 0:00 /sbin/mingetty tty5
1841 tty6 Ss+ 0:00 /sbin/mingetty tty6
2008 ? Ss 0:00 sshd: root@pts/0
2010 pts/0 Ss 0:00 -bash
2067 pts/0 R+ 0:00 ps -x
[root@video bin]# cd $home
[root@video ~]# cd zm-1.21.4/
[root@video zm-1.21.4]# ll
total 1912
-rw-rw-r-- 1 601 601 39486 Oct 20 08:56 aclocal.m4
-rw-rw-r-- 1 601 601 229 Apr 11 2003 AUTHORS
-rw-rw-r-- 1 601 601 24 Dec 10 2002 ChangeLog
-rw-rw-r-- 1 601 601 2704 Oct 20 10:59 config.h.in
-rw-r--r-- 1 root root 35512 Dec 7 11:32 config.log
-rwxrwxr-x 1 601 601 214689 Dec 7 11:34 configure
-rw-rw-r-- 1 601 601 5758 Oct 20 08:56 configure.in
-rw-rw-r-- 1 601 601 17992 Dec 10 2002 COPYING
drwxrwxr-x 2 601 601 4096 Nov 24 05:00 db
-rwxrwxr-x 1 601 601 12123 Mar 24 2003 depcomp
-rw-rw-r-- 1 601 601 7831 Dec 10 2002 INSTALL
-rwxrwxr-x 1 601 601 5598 Dec 10 2002 install-sh
-rw-rw-r-- 1 601 601 483 May 24 2005 Makefile.am
-rw-rw-r-- 1 601 601 20381 Oct 20 08:56 Makefile.in
-rwxrwxr-x 1 601 601 10270 Mar 21 2003 missing
-rwxrwxr-x 1 601 601 722 Dec 10 2002 mkinstalldirs
-rw-rw-r-- 1 601 601 24 Dec 10 2002 NEWS
-rw-rw-r-- 1 601 601 233762 Nov 11 06:23 README
-rw-rw-r-- 1 601 601 354797 Nov 11 06:23 README.html
-rw-r--r-- 1 601 601 243487 Nov 11 06:22 README.pdf
-rw-r--r-- 1 601 601 527569 Nov 11 06:22 README.rtf
drwxrwxr-x 2 601 601 4096 Nov 11 07:08 scripts
drwxrwxr-x 2 601 601 4096 Nov 11 07:08 src
-rw-rw-r-- 1 601 601 24 Dec 10 2002 TODO
drwxrwxr-x 3 601 601 4096 Nov 11 07:08 web
-rw-rw-r-- 1 601 601 3331 Apr 13 2003 zmconfig_eml.txt
-rw-rw-r-- 1 601 601 1826 Apr 13 2003 zmconfig_msg.txt
-rwxrwxr-x 1 601 601 121194 Nov 7 07:08 zmconfig.pl.in
-rw-rw-r-- 1 601 601 130 Jan 3 2005 zm.conf.z
[root@video zm-1.21.4]# ./configure
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-mysql option.
This tells configure where to find the MySql C library and headers if configure cannot
locate them automatically..
e.g. --with-mysql=/usr/local or --with-mysql=/usr
configure: 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: 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: error: You must call configure with the --with-webdir option.
This tells configure where to install PHP and web files and scripts.
e.g. --with-webdir=/var/www/html or --with-mysql=/www/vhtdocs/<site>
[root@video zm-1.21.4]# ./configure --with-webdir=/var/www/html/ --with-cgidir=/var/www/cgi-bin/ --with-mysql=/usr/bin/ --with-ffmpeg=/usr/bin/ --with-lame=/usr/bin/
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-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 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 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... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking whether round is declared... yes
checking whether strsignal is declared... yes
checking whether MD5 is declared... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for dlsym in -ldl... yes
checking for mysql_init in -lmysqlclient... no
configure: error: zm requires libmysqlclient.a
[root@video zm-1.21.4]# ./configure --with-webdir=/var/www/html --with-cgidir=/var/www/cgi-bin
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-mysql option.
This tells configure where to find the MySql C library and headers if configure cannot
locate them automatically..
e.g. --with-mysql=/usr/local or --with-mysql=/usr
configure: 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: 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 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 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... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking whether round is declared... yes
checking whether strsignal is declared... yes
checking whether MD5 is declared... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for dlsym in -ldl... yes
checking for mysql_init in -lmysqlclient... no
configure: error: zm requires libmysqlclient.a
[root@video zm-1.21.4]# clear
[root@video zm-1.21.4]# ./configure --with-webdir=/var/www/html/ --with-cgidir=/var/www/cgi-bin/ --with-mysql=/usr/bin/ --with-ffmpeg=/usr/bin/ --with-lame=/usr/bin/
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-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 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 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... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking whether round is declared... yes
checking whether strsignal is declared... yes
checking whether MD5 is declared... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for dlsym in -ldl... yes
checking for mysql_init in -lmysqlclient... no
configure: error: zm requires libmysqlclient.a
[root@video zm-1.21.4]#