Installing 1.28.1 on Rapsberry Pi 2

Forum for questions and support relating to the 1.28.x releases only.
Locked
Laurence243
Posts: 14
Joined: Mon Aug 17, 2015 12:11 am

Installing 1.28.1 on Rapsberry Pi 2

Post by Laurence243 »

Okay, so I have 1.25.0 running but after setting it up to send me emails via SSMTP and adding a filter for alert frames >= 1, it is still not sending me email notifications. I installed ZoneMinder via a guide I found that used this version, so I am thinking maybe updating it will solve my problem as there is a bug in the zmfilters.pl system that has been fixed since.

So I downloaded it from here http://www.zoneminder.com/downloads, it downloaded as a tar.gz file.

I went to the Downloads folder and entered:
tar xvf ZoneMinder-1.28.1.tar.gz

this gave me a ZoneMinder-1.28.1 folder, I cd into this folder and try ./configure.......
pi@raspberrypi ~/Downloads/ZoneMinder-1.28.1 $ ./configure
bash: ./configure: No such file or directory

okay...
pi@raspberrypi ~/Downloads/ZoneMinder-1.28.1 $ make
make: *** No targets specified and no makefile found. Stop.

maybe this?
pi@raspberrypi ~/Downloads/ZoneMinder-1.28.1 $ install
install: missing file operand
Try `install --help' for more information.

going to try this now then I guess...
pi@raspberrypi ~/Downloads/ZoneMinder-1.28.1 $ sudo make install
make: *** No rule to make target 'install'. Stop.


I looked in the readme but it didn't say how to install the tar.gz version, only the .deb. What am I doing wrong?
Laurence243
Posts: 14
Joined: Mon Aug 17, 2015 12:11 am

Re: Installing 1.28.1 on Rapsberry Pi 2

Post by Laurence243 »

pi@raspberrypi ~ $ cd ./Downloads/
pi@raspberrypi ~/Downloads $ ls
ZoneMinder-1.28.1.tar.gz
pi@raspberrypi ~/Downloads $ tar zxf ./ZoneMinder-1.28.1.tar.gz
pi@raspberrypi ~/Downloads $ cd ./ZoneMinder-1.28.1/
pi@raspberrypi ~/Downloads/ZoneMinder-1.28.1 $ libtoolize --force
bash: libtoolize: command not found
pi@raspberrypi ~/Downloads/ZoneMinder-1.28.1 $ cd
pi@raspberrypi ~ $ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi ~ $
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Installing 1.28.1 on Rapsberry Pi 2

Post by iconnor »

apt-get install libtool
Laurence243
Posts: 14
Joined: Mon Aug 17, 2015 12:11 am

Re: Installing 1.28.1 on Rapsberry Pi 2

Post by Laurence243 »

Thank you, your help is greatly appreciated.


I've run into another roadblock though....

pi@raspberrypi ~/Downloads/ZoneMinder-1.28.1 $ export LD_LIBRARY_PATH="/usr/local/lib:/opt/libjpeg-turbo/lib:$LD_LIBRARY_PATH"
pi@raspberrypi ~/Downloads/ZoneMinder-1.28.1 $ DEB_HOST_GNU_TYPE=$(dpkg-architecture -qDEB_HOST_GNU_TYPE)
pi@raspberrypi ~/Downloads/ZoneMinder-1.28.1 $ DEB_BUILD_GNU_TYPE=$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)
pi@raspberrypi ~/Downloads/ZoneMinder-1.28.1 $ CXXFLAGS=" -DZM_FFMPEG_CVS -DHAVE_LIBCRYPTO -msse2 -I/usr/local/include"
pi@raspberrypi ~/Downloads/ZoneMinder-1.28.1 $ CXXFLAGS="$CXXFLAGS" ./configure --with-libarch=lib/$DEB_HOST_GNU_TYPE --disable-debug \
> --host=$DEB_HOST_GNU_TYPE --build=$DEB_BUILD_GNU_TYPE --with-mysql=/usr \
> --with-webdir=/var/www/zm --with-ffmpeg=/usr --with-cgidir=/usr/lib/cgi-bin \
> --with-webuser=www-data --with-webgroup=www-data --enable-crashtrace=no \
> --enable-mmap=yes ZM_SSL_LIB=openssl ZM_DB_USER=zm ZM_DB_PASS=zm
configure: WARNING: unrecognized options: --enable-crashtrace
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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... arm-unknown-linux-gnueabihf
checking host system type... arm-unknown-linux-gnueabihf
configure: WARNING: You can call configure with the --with-mariadb option.
This tells configure where to find the mariaDB C library and headers if configure 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 arm-linux-gnueabihf-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for POLKIT... no
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.
pi@raspberrypi ~/Downloads/ZoneMinder-1.28.1 $ make
make: *** No targets specified and no makefile found. Stop.
pi@raspberrypi ~/Downloads/ZoneMinder-1.28.1 $ sudo make install
make: *** No rule to make target 'install'. Stop.
pi@raspberrypi ~/Downloads/ZoneMinder-1.28.1 $
Laurence243
Posts: 14
Joined: Mon Aug 17, 2015 12:11 am

Re: Installing 1.28.1 on Rapsberry Pi 2

Post by Laurence243 »

Any ideas? I followed the guide exactly but it doesn't work.
Laurence243
Posts: 14
Joined: Mon Aug 17, 2015 12:11 am

Re: Installing 1.28.1 on Rapsberry Pi 2

Post by Laurence243 »

Ran and installed:

sudo apt-get install policykit-1

and

sudo apt-get install gobject-introspection

but I'm still getting the same error. Obviously I'm missing a package and I'm trying to figure it out for myself but I'm running out of ideas. That should have solved it, I would think ?
Laurence243
Posts: 14
Joined: Mon Aug 17, 2015 12:11 am

Re: Installing 1.28.1 on Rapsberry Pi 2

Post by Laurence243 »

Installed polkit-kde-1 and am getting the same error still.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Installing 1.28.1 on Rapsberry Pi 2

Post by knight-of-ni »

From the command line:

Code: Select all

sudo apt-get get install apt-file
sudo apt-file update
apt-file search polkit-gobject
Here are the results on my particular system:
abi-compliance-checker: /usr/share/abi-compliance-checker/modules/Targets/unix/descriptors/libpolkit-gobject.xml
libpolkit-gobject-1-0: /usr/lib/x86_64-linux-gnu/libpolkit-gobject-1.so.0
libpolkit-gobject-1-0: /usr/lib/x86_64-linux-gnu/libpolkit-gobject-1.so.0.0.0
libpolkit-gobject-1-0: /usr/share/doc/libpolkit-gobject-1-0/changelog.Debian.gz
libpolkit-gobject-1-0: /usr/share/doc/libpolkit-gobject-1-0/copyright
libpolkit-gobject-1-dev: /usr/lib/x86_64-linux-gnu/libpolkit-gobject-1.a
libpolkit-gobject-1-dev: /usr/lib/x86_64-linux-gnu/libpolkit-gobject-1.so
libpolkit-gobject-1-dev: /usr/share/doc/libpolkit-gobject-1-dev/changelog.Debian.gz
libpolkit-gobject-1-dev: /usr/share/doc/libpolkit-gobject-1-dev/copyright
These results tell me the exact name of the package I need to install for my distro (Ubuntu). You should follow the same steps for your distro to verify the package name is the same.

Why are you are trying to build from source when 1.28.x packages are available for the pi?? You are dong this the hard way.
ZoneMinder is not easy to build because of all its dependencies, even for those accustomed to building from source.
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/
Laurence243
Posts: 14
Joined: Mon Aug 17, 2015 12:11 am

Re: Installing 1.28.1 on Rapsberry Pi 2

Post by Laurence243 »

When I do sudo apt-get install zoneminder I get version 1.25.0 which doesn't send me email alerts, I think due to a bug in zmfilters.pl.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Installing 1.28.1 on Rapsberry Pi 2

Post by knight-of-ni »

You should search this forum for the other raspberry pi threads.
There you will find information on how to install the latest zoneminder packages for your raspberry pi.
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/
Laurence243
Posts: 14
Joined: Mon Aug 17, 2015 12:11 am

Re: Installing 1.28.1 on Rapsberry Pi 2

Post by Laurence243 »

Here is the output, not sure what to do with it though ?

Code: Select all

abi-compliance-checker: /usr/share/abi-compliance-checker/modules/Targets/unix/descriptors/libpolkit-gobject.xml
libpolkit-gobject-1-0: /usr/lib/arm-linux-gnueabihf/libpolkit-gobject-1.so.0
libpolkit-gobject-1-0: /usr/lib/arm-linux-gnueabihf/libpolkit-gobject-1.so.0.0.0
libpolkit-gobject-1-0: /usr/share/doc/libpolkit-gobject-1-0/changelog.Debian.gz
libpolkit-gobject-1-0: /usr/share/doc/libpolkit-gobject-1-0/copyright
libpolkit-gobject-1-dev: /usr/lib/arm-linux-gnueabihf/libpolkit-gobject-1.a
libpolkit-gobject-1-dev: /usr/lib/arm-linux-gnueabihf/libpolkit-gobject-1.so
libpolkit-gobject-1-dev: /usr/lib/arm-linux-gnueabihf/pkgconfig/polkit-gobject-1.pc
libpolkit-gobject-1-dev: /usr/share/doc/libpolkit-gobject-1-dev/changelog.Debian.gz
libpolkit-gobject-1-dev: /usr/share/doc/libpolkit-gobject-1-dev/copyright
And I'll do some searching on here. I added iconnor's PPA to my sources list but it always times out when I do apt-get update


added to /etc/apt/sources.list

Code: Select all

deb <removed because forum>/debian wheezy/
The forum won't let me post URLs so I can't link you the page I got the source from but it is github's Packages page for ZoneMinder, copy and pasted the deb line for wheezy into /etc/apt/sources.list

Code: Select all

W: Failed to fetch <removed because forum>/iconnor/zoneminder/ubuntu/dists/wheezy/main/source/Sources  404  Not Found

W: Failed to fetch <removed because forum>/iconnor/zoneminder/ubuntu/dists/wheezy/main/binary-armhf/Packages  404  Not Found
Laurence243
Posts: 14
Joined: Mon Aug 17, 2015 12:11 am

Re: Installing 1.28.1 on Rapsberry Pi 2

Post by Laurence243 »

Any idea why iconnor's setup 404's?
marco123
Posts: 25
Joined: Thu Mar 12, 2015 7:38 am

Re: Installing 1.28.1 on Rapsberry Pi 2

Post by marco123 »

Laurence243
Posts: 14
Joined: Mon Aug 17, 2015 12:11 am

Re: Installing 1.28.1 on Rapsberry Pi 2

Post by Laurence243 »

That link doesn't even have the deb extension to add to the sources list.

I have it added properly but it 404's at iconnor's repository. Why?
Locked