Not Seeing Installations - CentOS 6.7 + WHM/cPanel

Forum for questions and support relating to the 1.28.x releases only.
Locked
suicid3
Posts: 4
Joined: Fri Dec 11, 2015 6:25 pm
Location: Usa
Contact:

Not Seeing Installations - CentOS 6.7 + WHM/cPanel

Post by suicid3 »

Hey there. I've been banging my head for days trying to get around these issues. When I attempt to install from the repo it complains the following
Error: Package: zoneminder-1.28.1-1.el6.x86_64 (zmrepo)
Requires: php
Error: Package: zoneminder-1.28.1-1.el6.x86_64 (zmrepo)
Requires: httpd
Error: Package: zoneminder-1.28.1-1.el6.x86_64 (zmrepo)
Requires: php-mysql
Given that my WHM/cPanel server has been running for quite some time I can assure you that apache and php are installed. Perhapse they don't install through the default locations, where could I determine where ZM is looking for / confirming these installs?

When I try to build from source with 'make' in /usr/local/src/ZoneMinder-1.25.0 I get the following -

In file included from zm_mpeg.h:28,
from zm_stream.h:27,
from zm_event.h:39,
from zm_zone.h:27,
from zm_monitor.h:26,
from zmc.cpp:28:
zmc.cpp: In function ‘int main(int, char**)’:
zmc.cpp:155: error: ‘Monitor’ was not declared in this scope
zmc.cpp:155: error: ‘monitors’ was not declared in this scope
zmc.cpp:160: error: ‘Monitor’ is not a class or namespace
zmc.cpp:160: error: ‘Monitor’ is not a class or namespace
zmc.cpp:168: error: ‘Monitor’ is not a class or namespace
zmc.cpp:168: error: ‘Monitor’ is not a class or namespace
zmc.cpp:172: error: ‘Monitor’ is not a class or namespace
zmc.cpp:172: error: ‘Monitor’ is not a class or namespace
zmc.cpp:176: error: ‘monitor’ was not declared in this scope
zmc.cpp:176: error: ‘Monitor’ is not a class or namespace
zmc.cpp:176: error: ‘Monitor’ is not a class or namespace
zmc.cpp:179: error: expected type-specifier before ‘Monitor’
zmc.cpp:179: error: expected ‘;’ before ‘Monitor’
zmc.cpp:235: error: ‘Monitor’ is not a class or namespace
zmc.cpp:295: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
In file included from zm_stream.h:27,
from zm_event.h:39,
from zm_zone.h:27,
from zm_monitor.h:26,
from zmc.cpp:28:
zm_mpeg.h: At global scope:
zm_mpeg.h:48: error: use of enum ‘PixelFormat’ without previous declaration
zmc.cpp: In function ‘void Usage()’:
zmc.cpp:30: error: redefinition of ‘void Usage()’
zmc.cpp:30: error: ‘void Usage()’ previously defined here
zmc.cpp: In function ‘int main(int, char**)’:
zmc.cpp:43: error: redefinition of ‘int main(int, char**)’
zmc.cpp:43: error: ‘int main(int, char**)’ previously defined here
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/usr/local/src/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/ZoneMinder-1.25.0'
make: *** [all] Error 2

Any ideas?
Thanks in advance :D
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Not Seeing Installations - CentOS 6.7 + WHM/cPanel

Post by knight-of-ni »

WHM/cPanel is oriented towards virtual users that install everything under each user's home folder.

That is not how ZoneMinder works. It is a system package which installs under /usr like every other system package.
If the underlying server is truly a clean installation of CentOS, installed from the original CentOS installation media, and is not some third party spin (not really CentOS), then you should be able to install ZoneMinder from a root command prompt, just like the instructions show.

ZoneMinder 1.25 isn't supported in this forum. You can try to posting under the ZoneMinder 1.25 forum, but I'm not sure how many people use that version as it is EOL.
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/
suicid3
Posts: 4
Joined: Fri Dec 11, 2015 6:25 pm
Location: Usa
Contact:

Re: Not Seeing Installations - CentOS 6.7 + WHM/cPanel

Post by suicid3 »

Thank you for the prompt reply knnniggett. I'm logged in through ssh as root and installing per the instructions for using the rpm repo.

I only mention 1.25 as building from source as all of the walkthroughs I've found regarding compiling from source seam to reference 1.25. Is there a more updated compile from source link for 1.28 that you could share? I greatly appreciate it :)

Thank you again
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Not Seeing Installations - CentOS 6.7 + WHM/cPanel

Post by knight-of-ni »

Current development is on github.
https://github.com/ZoneMinder/ZoneMinder

Instructions for compiling are on the site, although we discourage compiling from source due to its complexity.

I don't expect compiling from source to work either, if yum/rpm couldn't find basic packages such as php, httpd, etc on your system.
There is something different about your system, compared to a fresh install of CentOS using CentOS media, that is causing this.
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/
suicid3
Posts: 4
Joined: Fri Dec 11, 2015 6:25 pm
Location: Usa
Contact:

Re: Not Seeing Installations - CentOS 6.7 + WHM/cPanel

Post by suicid3 »

I believe it's in relation to how/where cPanel installs php, etc (i.e. EasyApache). I'll need to read more on how yum/rpm verifies dependencies and such. I'll take a look over at GitHub. Thank you for your assistance. I did install ZM on a local Ubuntu Server installation and was quite impressed, so I'm anxious to get this up and running :)

Thank you again
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Not Seeing Installations - CentOS 6.7 + WHM/cPanel

Post by knight-of-ni »

Rather than hack ZoneMinder to work in this environment, you might be better off trying to run ZoneMinder in a vm or in a Docker container.

Remember, even if you get ZoneMinder working, you will have to maintain the installation yourself, for all time through upgrades. However, if you install ZoneMinder into the environment in which it was intended, then installations and upgrades are just a matter of following the documentation.

Not trying to discourage you from a challenge, but the fact that you are using cpanel implies you are doing something that involves other users and/or paying customers. You'll want to keep their lives as painless as possible too.
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/
suicid3
Posts: 4
Joined: Fri Dec 11, 2015 6:25 pm
Location: Usa
Contact:

Re: Not Seeing Installations - CentOS 6.7 + WHM/cPanel

Post by suicid3 »

Agreed, i researched a bit yesterday and concluded that rather than swimming upstream i may as well float worth the current, given the multiple projects i already have commitments to.
I'd like to look further in a vm environment how to resolve the install. But for now going to load it in Ubuntu Server on my spare ESXi HP ProLiant.

Thank you for the response.
Locked