View previous topic :: View next topic |
Author |
Message |
manywele l33t
Joined: 12 Jul 2003 Posts: 739 Location: Inside
|
Posted: Sun Sep 20, 2015 1:05 am Post subject: zoneminder fails configure checks but dependencies installed |
|
|
Trying to install zoneminder-1.28.1 and configure fails with
Code: | -- Looking for mysql/mysql.h
-- Looking for mysql/mysql.h - not found
CMake Error at CMakeLists.txt:266 (message):
zm requires MySQL headers - check that MySQL development packages are
installed
|
but I have mysql installed and it's in the right place
Code: | # ll /usr/include/mysql/mysql.h
-rw-r--r-- 1 root root 29K Feb 25 2015 /usr/include/mysql/mysql.h |
I get the same error if I unpack the tarball myself, run the bootstrap.sh script and then run configure. And yet I can't find anyone else with that error making me think it's something on my system and not a problem with zoneminder. No idea where to look though. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Sep 20, 2015 9:54 am Post subject: |
|
|
Look at /var/tmp/portage/(pkg-cat)/zoneminder-1.28.1/work/zoneminder-abi-(arch)/CMakeFiles
It's the cmake log, it should have the error, but you will see what test it has done to find that (and maybe why it has fail)
emerge --info may help too. |
|
Back to top |
|
|
manywele l33t
Joined: 12 Jul 2003 Posts: 739 Location: Inside
|
Posted: Sun Sep 20, 2015 3:06 pm Post subject: |
|
|
That file had the real error, thanks.
It seems that mysql-connector-c (package that owns the mysql header files) put some header files in /usr/include/mysql, some in /usr/include/mysql/mysql and some in /usr/include/mysql/mysql/psi but zoneminder's cmake script didn't know about the second mysql/ folder and was just looking for mysql/ and mysql/psi. Not sure if that's the fault of zoneminder or of mysql-connector-c. In any case I got it to find the headers and and complete the install. Thanks for the help. |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Mon Oct 05, 2015 6:14 am Post subject: |
|
|
manywele, how did you fix it? I just hit this same problem. |
|
Back to top |
|
|
manywele l33t
Joined: 12 Jul 2003 Posts: 739 Location: Inside
|
Posted: Wed Oct 07, 2015 3:08 am Post subject: |
|
|
The non-portage hacky way that's destined to break. I copied the mysql/psi directory into the place the configure script was looking for it.
Did you figure out which package is causing the problem in the first place? Is mysql-connector-c putting headers in the wrong place or is zoneminder looking for them in the wrong place? |
|
Back to top |
|
|
davidm Guru
Joined: 26 Apr 2009 Posts: 557 Location: US
|
Posted: Thu Oct 15, 2015 4:52 am Post subject: |
|
|
Thanks, that worked for compiling it. But it's very messy.
I'm not very well versed in the development side but based on the names of the directories like ../mysql/mysl it seems like a bug. |
|
Back to top |
|
|
annunaki2k2 Tux's lil' helper
Joined: 14 Oct 2003 Posts: 119 Location: Streatham, London, UK
|
Posted: Tue Oct 27, 2015 5:56 pm Post subject: |
|
|
Came across this problem myself today and found your post. I've put together a patch and new ebuild for it at the following bug report: https://bugs.gentoo.org/show_bug.cgi?id=564278
Feel free to test and post to the bug report if it works for you. _________________ The great thing about standards is there are so many to choose from..... |
|
Back to top |
|
|
|