Smooth upgrade from 1.23.3 to 1.24.1 on gentoo

Forum for questions and support relating to the 1.24.x releases only.
Locked
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Smooth upgrade from 1.23.3 to 1.24.1 on gentoo

Post by kingofkya »

Smooth upgrade from 1.23.3 to 1.24.1

Just want to repeat me experiences with gentoo

First:
I stoped zoneminder synced package list removed 1.23.3 version of zoneminder, and reinstalled the new version of ffmpeg

Code: Select all

/etc/init.d/zoneminder stop
emerge --sync
emerge --unmerge zoneminder
emerge ffmpeg
emerge gcc
Second:
backup mysql from phpmyadmin
(although I did not need it)

Third:
I read the manual for am 3 times trying to find what to "./configure" it with (yes i missed the section on compiling twice)

Anyways I ended up with

Code: Select all

./configure --with-mysql --with-ffmpeg=/usr/bin/ffmpeg --with-webuser=apache --with-webgroup=apache --with-webdir=/var/www/zoneminder/htdocs/ --with-cgidir=/var/www/zoneminder/htdocs/cgi-bin/ --enable-mmap=no

Code: Select all

make install
NOTE: I turned of mapped memory because I did not see the right perl module in portage

Forth:
Changed zm.conf so it would connect to the db

Code: Select all

 nano /usr/local/etc/zm.conf
I changed ZM_DB_USER and ZM_DB_PASS

Used zmupdate which failed (i dont know why)
So used php my admin to run the zoneminder database update sql.

Fifth:
Checked to see if events came up and i could make videos.
Everything worked as expected and even mpeg streaming worked correctly

Started zm

Sixth:
Modified zmtrigger as shown HERE
restarted zoneminder

ENDNOTES:
Seams much faster than before
Mpeg Streaming never worked for me before this.
Compiling is easier than I predicted for a complex programs as this
scales much better in cell phone(blackberry anyways)

Thanks ZoneMinder community for helping get me started with zoneminder and getting things set up in 1.23.3 version.
Last edited by kingofkya on Wed Apr 01, 2009 12:13 am, edited 1 time in total.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Awesome :D
Though I was interested in why zmupdate might have failed, by chance was there any complaints by configure for any perl modules (excluding X10)?
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

Not that I can remember but it didn't really bug me because I knew what to do to get around it
tanner
Posts: 21
Joined: Thu Mar 22, 2007 10:17 pm

Post by tanner »

Thanks for this. I have just followed it (except I did not use --with-ffmpeg not --enable-mmap) and in the end everything works, including zmupdate.pl, I just needed the correct username and password. I also needed to edit /etc/apache2/vhosts.d/default_vhost.include to change localhost to zoneminder.

I say everything works except I can no longer see any images. I have the dreaded message

Sep 29 12:12:01 eye zma_m3[17512]: WAR [Waiting for capture daemon]
Sep 29 12:12:02 eye zmc_dvideo1[17658]: INF [Starting Capture]
Sep 29 12:12:02 eye zmc_dvideo1[17658]: ERR [Capture failure for frame 0: Device or resource busy]
Sep 29 12:12:02 eye zmc_dvideo1[17658]: ERR [Failed to prime capture of initial monitor]
Sep 29 12:12:02 eye zmdc[17461]: ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]

I can't see any shared memory error messages and I have full permissions on the /dev/video* devices. debug 9 isn't showing anything helpful (to me).
Locked