Page 1 of 1

ZoneMinder installation on Centos BlueOnyx 5108R

Posted: Tue Dec 17, 2013 10:50 am
by scummings
Hi Everyone,

First post newbie here... with hopefully a simple question to answer.

Has anybody managed to successfully install ZoneMinder (any version - I attempt 1.26.5) on a Blueonyx Distro? see: blueonyx.it

If so, as a realtively inexperienced Linux user, I would be interested in some guidance on how it's done.

So far I've got cmake install and attempting to 'cmake' the installation using the following:

cmake -DZM_DB_NAME="dbname" ZM_DB_PASS="password" ./

It reported the following error:

Code: Select all

Could not find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)
CMake error at CMakeLists.txt:224 (message):
  zm requires mysqlclient but is was not found on your system.
Any advice would be welcome as I'd love to get this working.

Many thanks,

Simon.

Re: ZoneMinder installation on Centos BlueOnyx 5108R

Posted: Tue Dec 17, 2013 1:33 pm
by Magic919
It's really two errors. It wants the MySQL client libs and also wants OpenSSL. Make sure they are installed and it should work. You can point it to those using the configure command, but may not have to.

Re: ZoneMinder installation on Centos BlueOnyx 5108R

Posted: Tue Dec 17, 2013 2:39 pm
by mastertheknife
Make sure you have the -dev (or -devel) versions for those two.

Re: ZoneMinder installation on Centos BlueOnyx 5108R

Posted: Tue Dec 17, 2013 2:57 pm
by scummings
Ok, thanks for looking... and responding.

MySQL Server is already installed on the box (as is MyPHPadmin) so should the client libs be there already - if not I'm trying to figure out which yum package to install for the client libs :(

Also, searching for the OpenSSL libs I did:

Code: Select all

find / -name openssl

/usr/bin/openssl
/usr/lib64/openssl

I've tried these cmake command lines without success:

Code: Select all

cmake -DZM_DB_NAME="dbname" ZM_DB_PASS="password" OPENSSL_LIBRARIES="/usr/bin/openssl" ./

cmake -DZM_DB_NAME="dbname" ZM_DB_PASS="password" OPENSSL_LIBRARIES="/usr/lib64/openssl" ./

cmake -DZM_DB_NAME="dbname" ZM_DB_PASS="password" OPENSSL_ROOT_DIR="/usr/bin/openssl"   ./

cmake -DZM_DB_NAME="dbname" ZM_DB_PASS="password" OPENSSL_ROOT_DIR="/usr/lib64/openssl"   ./
[/size]

Any more suggestions? All help much appreciated.

Thanks,

Simon.

Re: ZoneMinder installation on Centos BlueOnyx 5108R

Posted: Tue Dec 17, 2013 3:02 pm
by mastertheknife
Hi,

You don't need the OpenSSL options, cmake usually finds whatever it needs automatically.
Look for openssl-dev or openssl-devel package.

For mysqlclient, look for libmysqlclient-dev or mysqlclient-dev or libmysqlclient-devel
Its different from distro to another.

Re: ZoneMinder installation on Centos BlueOnyx 5108R

Posted: Tue Dec 17, 2013 3:08 pm
by mastertheknife
Hi,

On my CentOS 6.4 x86-64 box, the packages are named mysql-devel and openssl-devel.
Install those packages and you should be good to go!

Re: ZoneMinder installation on Centos BlueOnyx 5108R

Posted: Tue Dec 17, 2013 4:22 pm
by scummings
Hi all,

Following the installation of the opensll-devel and mysql-devel packages - the ZoneMinder installation now fails on the Perl requirements...

The bigger problem appears to be that installing the mysql-devel package, and a bunch of the Perl packages appears to have killed the Admin console of my BlueOynx Server :(

Oh dear - any suggestions :(

Re: ZoneMinder installation on Centos BlueOnyx 5108R

Posted: Thu Dec 26, 2013 6:55 pm
by knight-of-ni
Any reason why you chose not to use the RPM's available here?
http://www.zoneminder.com/forums/viewto ... =9&t=19119

If you prefer to build zoneminder yourself, then download the srpm and build your own rpm from that.

For the adventurous, you can view the latest specfile here:
https://github.com/ZoneMinder/ZoneMinde ... e.el6.spec

This will show you all the dependencies and how to build zoneminder from the command line.