Installation issues with ZM 1.28.1 and CentOS 6.6 (Minimal)

Forum for questions and support relating to the 1.28.x releases only.
Locked
UmuziDan
Posts: 2
Joined: Wed Apr 29, 2015 4:45 am

Installation issues with ZM 1.28.1 and CentOS 6.6 (Minimal)

Post by UmuziDan »

I'm trying to install the latest ZM onto a fresh, clean install of CentOS 6.6 with minimal configuration.

Here are the latest steps I've taken, in order. If any can help me out, I'd be much appreciative!
  • 1. Install CentOS 6.6 x64 with "Minimal" configurations
  • 2. Install VMware Tools if running as a VM
  • 4. Disable SELinux for ease of use by editing /etc/sysconfig/selinux and configuring:

    Code: Select all

    SELINUX=disabled
  • 5. Reboot
  • 6. Install RPMForge Yum Repository: (forum won't let me post the link as a new user)
  • 7. Install software dependencies:

    Code: Select all

    yum install gcc gcc-c++ wget mysql-devel mysql-server php php-mysql php-pear php-pear-DB php-mbstring bison bison-devel httpd make ncurses ncurses-devel libtermcap-devel sendmail sendmail-cf caching-nameserver sox newt-devel libxml2-devel libtiff-devel php-gd audiofile-devel gtk2-devel libv4l-devel ffmpeg ffmpeg-devel zlib zlib-devel openssl openssl-devel gnutls-devel php-process perl-Time-HiRes perl-CPAN pcre-devel libjpeg-devel perl-Date-Manip perl-libwww-perl perl-Module-Load perl-Net-SFTP-Foreign perl-Archive-Tar perl-Archive-Zip perl-Expect perl-MIME-Lite perl-Device-SerialPort
  • 8. Install several optional modules (do these one at a time):

    Code: Select all

    perl -MCPAN -e 'install Sys::Mmap'
    perl -MCPAN -e 'install MIME::Entity'
    perl -MCPAN -e 'install X10::ActiveHome'
  • 9. Download and untar Zoneminder:

    Code: Select all

    cd /usr/local/src
    wget  <insert link to latest ZM download tarball>
    tar xzvf v1.28*
    cd Zone*
  • 10. Configure ZoneMinder:

    Code: Select all

    ./bootstrap
    CXXFLAGS=-D__STDC_CONSTANT_MACROS ./configure --with-webdir=/var/www/html/zm  --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpassword ZM_SSL_LIB=openssl --with-extralibs="-L/usr/lib64 -L/usr/lib64/mysql -L/usr/local/lib" --with-libarch=lib64 --with-ffmpeg
This last step produces an error:

Code: Select all

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: WARNING: You can call configure with the --with-mysql option.
    This tells configure where to find the MySql C library and headers if config
ure cannot
    locate them automatically.
    e.g. --with-mysql=/usr/local or --with-mysql=/usr
configure: WARNING: You can call configure with the --with-mariadb option.
    This tells configure where to find the mariaDB C library and headers if conf
igure cannot
    locate them automatically.
    e.g. --with-mariadb=/usr/local or --with-mariadb=/usr
configure: WARNING: You can call configure with the --with-polkit option.
This tells configure where to place the polkit policy files.
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for POLKIT... configure: error: Package requirements (polkit-gobject-1)
 were not met:

No package 'polkit-gobject-1' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables POLKIT_CFLAGS
and POLKIT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Can anyone help me better understand this error? This is the 2nd time I've been able to produce it.
martinanth
Posts: 8
Joined: Tue Oct 22, 2013 10:47 am

Re: Installation issues with ZM 1.28.1 and CentOS 6.6 (Minim

Post by martinanth »

I am currently running CentOS 6.5 (minimal) as a VM, with Zoneminder installed. It looks after 4 IP camera's and works quite well.

First thing to do is check the URL below.
http://www.zoneminder.com/wiki/index.ph ... ed_distros

I do have a basic installation guide, which is obviously specific to me, but I would be happy to share with you.
Includes, email alert messages, iptables configuration, zoneminder filter configuration, access from the internet to zoneminder (I use no-ip.biz )

Start from the URL above, is the best suggestion I can make.
BiloxiGeek
Posts: 271
Joined: Tue Feb 11, 2014 2:04 pm

Re: Installation issues with ZM 1.28.1 and CentOS 6.6 (Minim

Post by BiloxiGeek »

You might want to look at the zmrepo setup also. I've used on SciLinux 6.5, 6.6 and 7.0 and it's worked quite nicely for me.

http://www.zoneminder.com/wiki/index.php/CentOS
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Installation issues with ZM 1.28.1 and CentOS 6.6 (Minim

Post by knight-of-ni »

checking pkg-config is at least version 0.9.0... yes
checking for POLKIT... configure: error: Package requirements (polkit-gobject-1)
were not met:

No package 'polkit-gobject-1' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables POLKIT_CFLAGS
and POLKIT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
This error means exactly what it says. You are missing the polkit package. Just install it, and off you go. However....
BiloxiGeek wrote:You might want to look at the zmrepo setup also. I've used on SciLinux 6.5, 6.6 and 7.0 and it's worked quite nicely for me.

http://www.zoneminder.com/wiki/index.php/CentOS
I recommend you follow BiloxiGeek's advice. Unfortunately, your system is no longer clean. The rpm's in rpmforge are known to conflict with zmrepo. You need to remove any rpm's from rpmforge before following the instructions to install zmrepo.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Locked