error when trying to configure Zoneminder

Support and queries relating to all previous versions of ZoneMinder
Locked
BadFish
Posts: 25
Joined: Wed Apr 19, 2006 6:18 pm

error when trying to configure Zoneminder

Post by BadFish »

I am running fedora Core 4 and have httpd 2.0.54 and mysql 5.0.22
I and trying to run
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin ZM_DB_PASS=zmpass --with-mysql=/usr/local/mysql

however it always ends with the following:

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
Manwe
Posts: 16
Joined: Tue Nov 21, 2006 10:22 am

Post by Manwe »

Hi,

I'm quite new with this but for what you say it seems that you don't have installed the MySQL 5 development packages:

if you're using MySQL 5 try with:

apt-get install libmysqlclient15-dev

that should allow you to reach the next STOP ;)
abemeister
Posts: 2
Joined: Tue Nov 28, 2006 1:42 am
Location: Atlanta

error during configure

Post by abemeister »

I got past the previous problem but ran into this:

hecking 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... no
configure: error: zm requires openssl/md5.h

I could not run the make. I am trying to install on Mepis 6.0.

Thanks!
...and the answer is?
Manwe
Posts: 16
Joined: Tue Nov 21, 2006 10:22 am

Post by Manwe »

This one is:

apt-get install libssl-dev

there must be a doc with all these dependencies in the wiki.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You will find it in the Hints and Tips topic.

Cheers,
Corey
abemeister
Posts: 2
Joined: Tue Nov 28, 2006 1:42 am
Location: Atlanta

Using Mepis 6

Post by abemeister »

To get the configure to finish, I had to load the following libraries through the Synaptic Package Manager:

*** install MYSQL first
*** install Apache with ssl
*** add in "libmysqlclient15-dev"
*** add in "libpcrecpp0" I am not sure that I needed this.
*** add in "libssl-dev"


After all of that, the configure completed and I was able to do the make. The "Make" completed successfully but then I have problems creating the database. This is because I need to make sure that Mysql is set up correctly. I will continue.

I will also look at the Hints and Tips. If anyone did a Mepis install, please let me know.

Thanks all!
...and the answer is?
BadFish
Posts: 25
Joined: Wed Apr 19, 2006 6:18 pm

Post by BadFish »

Thanks for the info,
So i tried
apt-get install libmysqlclient15-dev
but I got this error:
# apt-get install libmysqlclient15-dev
-bash: apt-get: command not found


Then I tried using yum instead of apt-get and this is what I saw:

# yum install libmysqlclient15-dev
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: libmysqlclient15-dev
Nothing to do


So am I to assume that libmysqlclient15-dev is installed already?

Thanks,
BadFish
Posts: 25
Joined: Wed Apr 19, 2006 6:18 pm

Post by BadFish »

I also reinstalled mysql, I used the max version this time instead of the standard version. I still get the same error.

Thanks.
User avatar
ptast
Posts: 27
Joined: Fri Nov 24, 2006 2:41 am
Location: Vasa Finland 21E 63N

Post by ptast »

I used

Code: Select all

rpm -i path_to_libmysql_devel_for_FC4
If I remember correctly?
BadFish
Posts: 25
Joined: Wed Apr 19, 2006 6:18 pm

Post by BadFish »

Ok i think I have a better idea what the issue is now.

Correct me if i'm wrong.

ok so this error is telling me that the mysql header files can not be found.

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


Now I looked around and found the header file mysql.h it is in
/usr/local/mysql/includes/
however when I look at the error it seems to be looking for the file in
/usr/local/mysql/

is there a way for me to tell it in the ./configure to look for the header files in /include folder?

thanks.
BadFish
Posts: 25
Joined: Wed Apr 19, 2006 6:18 pm

Post by BadFish »

So anyone have any ideas? thought? opinions? about this?
User avatar
R2D2
Posts: 170
Joined: Tue Dec 27, 2005 5:02 pm
Location: Stuttgart, Germany

Post by R2D2 »

Is mysql instaled correctly?
Have you tried to execute mysql?

Code: Select all

# mysql
Locked